@font-face {
    font-family: 'Athiti';
    src: url(../font/Athiti/Athiti-Regular.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AthitiB';
    src: url(../font/Athiti/Athiti-Bold.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Merienda';
    src: url(../font/Merienda/Merienda-Regular.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}


/*#########
    header
##########*/

body{
    margin: 0;
}
header{
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgb(252,252,252);
    background: linear-gradient(0deg, rgba(252,252,252,1) 56%, rgba(112,112,111,0.896796218487395) 100%);
    padding: 20px 0 20px 0;
}

header img{
    width: 20%;
}

heder img{
    width: 10vh;
}

header p{
    font-size: 30px;
    font-family: 'AthitiB';
    text-transform: uppercase;
}

header p:before, header p:after, h1:after, h2:after, h3:after, h1:before, h2:before, h3:before{
    content: "\002605";
    color: darkred;
}

header div:first-child{
    display: flex;
    flex-direction: column;
    align-items: center;
}

header nav{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #ebe2db;
}

header nav a{
    border: 1px solid black;
    width: 100%;
    text-align: center;
    font-family: 'AthitiB';
    font-size: 30px;
    text-decoration: none;
    color: black;
    padding: 10px 0 10px 0;
    font-weight: 100;
    transform: background-color 1s;
}

header nav a:hover{
    background-color: #4c4442;
}

/*
############
Footer
############
*/

footer{
    background-image: url('../img/images/footer-bg.jpg');
    text-align: center;
    color: white;
    font-family: 'Merienda';
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}

footer h4{
    border-bottom: 1px dashed white;
    width: 90%;
    margin: 50px auto 20px auto ;
}
footer p{
    font-family:'Athiti';
}

.social{
    display: flex;
    justify-content: space-around;
    font-size: 40px;
    width: 40%;
    margin-left: auto;
    margin-right: auto;
}

h1, h2, h3{
    font-family:'Merienda';
    text-align: center;
    font-size: 40px;
}

main{
    margin: 20px;
}

main img{
    width: 100%
}

main p{
    font-family: 'Athiti';
}


@media screen and (min-width: 780px){
    header nav{
        display: flex;
        flex-direction: row;
        }
    
    header nav a{
        border:none;
    }
}

@media screen and (min-width: 980px){
    header nav{
        background-color: inherit;
        width: 50%;
        justify-content: space-around;
    }
    header nav a{
        background-color: #ebe2db;
        width: 20%;
        
    }
    header{
        flex-direction: row;
        justify-content: space-around;
    }
}