@import url('https://fonts.googleapis.com/css2?family=Fredoka&family=Playfair+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=Roboto&display=swap');

html{
    --bg_color: #F7F5E1;
    --light_brown: rgba(173, 102, 19, 0.6);
    --brown: #AD6613;
    --yellow: #EAE8A7;
    --light_yellow: #e8e7cc;
    font-size: 62.5%;
}

body{
    background-color: var(--bg_color);
    font-family: 'Playfair Display', serif;
    line-height: 3.2rem;
}

.container{
    display: grid;
    grid-template-areas:"header"
                        "main"
                        "footer";
    width: 100%;
    height: 100vh;
    justify-items: center;
    align-items: center;
    row-gap: 4rem;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.05rem solid var(--light_brown);
    width: 90%;
    margin: 2rem auto 0 auto;
    padding: 1.5rem 0 1.5rem 0;
    grid-area: header;
}


.logo{
    max-width: 20rem;
}

.logo img{
    filter: invert(43%) sepia(44%) saturate(1059%) hue-rotate(357deg) brightness(92%) contrast(88%);
    max-width: 100%;
}

.container_menu{
    display: block;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bg_color);
    overflow: auto;
    box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.25);
    z-index: 1000;
    visibility: hidden;
}

.menu_points{
    display: block;
}

.container_menu li{
    list-style: none;
}


a{
    text-decoration: none;
    cursor: pointer;
}

a:hover{
    color: var(--brown);
}

a:visited, a:active, a:link{
    color: #000;
}

.container_menu a{
    display: block;
    width: 100%;
    color: #000;
    box-sizing: border-box;
    padding: 2rem 6rem;
}

.container_menu li{
    margin: 0 auto;
    font-size: 2.4rem;
    border-bottom: 0.05rem solid var(--brown);
    cursor: pointer;
    transition: 0.5s background-color;
    text-align: center;
}

.container_menu li:hover, .container_menu a:focus{
    background-color: var(--brown);
}

.btn_menu{
    border: 0;
    background-color: var(--bg_color);
    color: black;
    font-family: 'more vert';
}

.btn_menu:hover{
    cursor: pointer;
}

.btn_close{
    border: none; 
    background-color: transparent; 
}

.btn_close:hover{
    cursor:pointer;
    transform:  scale(1.15);
}

.btn_admin{
    padding: 1rem;
}

.btn_admin a{
    color: var(--brown);
    text-decoration: underline;
    font-size: 1.8rem;
    font-weight: 400;
}

.btn_admin a:visited{
    color: var(--brown);
}

.pattern_button{
    border-radius: 2rem;
    border: none;
    background-color: var(--brown);
    box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.25);
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    color: var(--bg_color);
    padding: 2rem;
    transition: 0.5s all;
    font-weight: 700;
    width: 100%;
    margin-top: 2rem;
}

.pattern_button:hover{
    background-color: var(--yellow);
    color: var(--brown);
    cursor: pointer;
}

.pattern_input{
    background-color: var(--yellow);
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.2rem 0.4rem 0 rgba(0, 0, 0, 0.25);
    display: block;
    margin: 1rem 0;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
}

.pattern_title{  
    width: 30rem;
    text-align: center;
    margin: 0 auto 4rem auto;
    font-size: 4rem;
    font-weight: 500;
    line-height: normal;
}

.pattern_title::after{
    margin-top: 2rem;
    display: block;
    content: '';
    width: 8rem;
    height: 0.1rem;
    background-color: var(--brown);
    color: var(--brown);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.pattern_label{
    color: #000;
    text-align: left;
    font-size: 1.8rem;
}

.pattern_textarea{
    resize: none;
    width: 100%;
    min-height: 15rem;
    border-radius: 2rem;
    margin: 2rem 0;
}


main{
    width: 90%;
    grid-area: main;
}

.message_error{
    display: flex;
    width: 100%;
    background-color: #ff8484;
    color: #7a0000;
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    line-height: normal;
    border: 0.05px solid #bd0f0f;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 1rem;
    margin: 1rem 0;
    align-items: center;
}

.button_close_message{
    background-color: transparent; 
    border: none;
    cursor: pointer;
}
.message_success{
    display: flex;
    width: 100%;
    background-color: #84ffbb;
    color: #01462b;
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    line-height: normal;
    border: 0.05px solid rgb(15, 189, 53);
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 1rem;
    margin: 1rem 0;
    align-items: center;
}

dialog::backdrop{
    background-color: #000;
    opacity: 0.75;
}

.container_loader{
    display: none;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.75)
}

.background_loader{
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFF;
    width: 50%;
    height: 50%;
    border-radius: 2rem;
    gap: 2rem;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    padding: 2rem;
}


.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #000; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 4s linear infinite;
   
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer{
    grid-area: footer;
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    border-top:  0.05rem solid var(--light_brown);
}

.footer_container{
    display: flex;
    margin-top: 2rem;
}

.footer_container > div{
    flex: 1;
    text-align: center;
}

.div_img_footer{
    position: relative;
    margin-top: -8.6rem;
    max-width: 20rem;
}

.img_footer{
    max-width: 100%;
    filter: grayscale(80%) sepia(37%);
    -webkit-filter: grayscale(80%) sepia(37%);
    -moz-filter: grayscale(80%) sepia(37%); 
    object-fit: cover;
}

footer a{
    font-size: 1.6rem;
}

footer a:hover{
    color: var(--brown);
}

.title_ul_footer{
    margin-bottom: 2rem;
    font-weight: bold;
    font-size: 1.8rem;
}
.ul_icons ul{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ul_icons ul li{
    max-width: 6rem;
}

.ul_icons img{
    max-width: 100%;
    object-fit: cover;
}

.copyright{
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: lighter;
    font-size: 1.1rem;
    width: 20rem;
    margin: 0 auto;
    line-height: normal;
    margin-bottom: 2rem;
}
.link_portfolio{
    padding: 1rem 0;
    border-top: solid 0.05rem var(--light_brown);
    text-align: center;
    font-weight: lighter;
    background-color: var(--yellow);
}
.link_portfolio a{
    font-size: 1.1rem;
}

.link_portfolio a:hover{
    font-size: 1.4rem;
}

@media screen and (min-width: 320px) and (max-width:480px){
    footer a{
        font-size: 1rem;
    }

    .footer_container{
        gap: 2rem;
    }
    .title_ul_footer{
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .ul_icons img{
        max-width: 4.22rem;
    }

    .div_img_footer{
        display: none;
    }
    .copyright{
        font-size: 0.8rem;
    }
}