@charset"UTF-8";
html{
    scroll-behavior: smooth;
}
body{
    position: relative;
    display: grid;
    grid-template-columns: [left]20px[main]1fr[end]20px[right];
    grid-template-rows: [header]auto[main]auto[footer]auto[bottom];
    margin:0;
    background-color: antiquewhite;
}
header{
    position: relative;
    grid-column-start: left;
    grid-column-end: right;
    grid-row-start: header;
    grid-row-end: main;
}
header img{
    display: block;
    height: 400px;
    width: 100%;
    object-fit: cover;
}
.top-title{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    font-size: 75px;
    font-family: serif;
    color: rgb(220, 220, 220);
    background-color: rgba(36, 17, 17, 0.6);
    width: 700px;
    max-width: 100%;
    height: 200px;
    transform: translate(-50%,0);
    top: 30%;
    left: 50%;
}
nav{
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 95;
}
nav img{
    display: block;
    float: left;
    height: calc(142px / 3);
    cursor: pointer;
}
nav ul{
    display: flex;
    font-size: 1.2rem;
    padding: 0;
    list-style: none;
    margin: 0 20px 0 40px;
    color: rgb(163, 163, 163);
    justify-content: flex-end;
}
nav li{
    text-align: center;
    transition: all 1s;
    cursor: pointer;
}
nav li:hover{
    background-color: rgba(0, 0, 0, 0.9);
}
.menub{
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 100;
}
.menub i{
    display: block;
    position: absolute;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 30px;
    height: 5px;
    background-color: white;
    transition:all .5s;
}
.menub i:first-child{
    top: 10px;
}
.menub i:nth-child(2){
    top: 50%;
}
.menub i:last-child{
    top: 30px;
}
.menub.open i:first-child{
    top: 50%;
    transform: translate(-50%,-50%)rotate(45deg);
}
.menub.open i:nth-child(2){
    opacity: 0;
}
.menub.open i:last-child{
    top: 50%;
    transform: translate(-50%,-50%)rotate(-45deg);
}
.menu{
    display: none;
    position: fixed;
    top: 40px;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    transition: all .5s;
    z-index: 90;
    background-color: rgba(0, 0, 0, 0.7);
}
.menu.open{
    right: 0;
}
.menu ul{
    font-size: 1.4rem;
    margin: 30px 0 0 0;
    padding: 0;
    list-style: none;
}
.menu li{
    padding: 5px 0;
    text-align: center;
    cursor: pointer;
    transition: all 1s;
}
.menu li:hover{
    background-color: rgba(0, 0, 0, 0.9);
}
main{
    grid-column-start: main;
    grid-column-end: end;
    grid-row-start: main;
    grid-row-end: footer;
    margin: 20px 0 30px 0;
}
@media screen and (max-width:850px){
    nav ul{
        margin: 0 10px 0 40px;
    }
}
@media screen and (max-width:590px){
    .menub{
        display: block;
    }
    .menu{
        display: block;
    }
    nav{
        height: 40px;
    }
    nav ul{
        display: none;
    }
    nav img{
        height: 40px;
    }
    .top-title{
        font-size: 55px;
        width: 100%;
    }
    body{
        grid-template-columns: [left]5px[main]1fr[end]5px[right];
    }
    main{
        margin: 5px 0;
    }
}
footer{
    grid-column-start: left;
    grid-column-end: right;
    grid-row-start: footer;
    grid-row-end: bottom;
    text-align: center;
    background-color: rgb(30, 30, 30);
    color: white;
    padding: 10px 0;
}
a{
    text-decoration: none;
    color: black;
}
.menu a{
    width: 100%;
    height: 100%;
}
.menu a,nav a{
    display: block;
    transition: all 1s;
    color: rgba(163,163,163);
}
nav li a{
    padding: 10px 20px;
}
.menu a:hover,nav a:hover{
    color: white;
}
.small{
    font-size: smaller;
}
.small a{
    text-decoration: underline;
    transition: .5s;
}
a{
    transition: all .5s;
}
a:hover{
    color: blue;
}
.box{
    background-color: white;
    width: 90%;
    margin: 0 auto;
    height: fit-content;
    padding: 20px;
    padding-top: 0.1px;
    border-radius: 10px;
    font-size: 18px;
    line-height: 35px;
}
@media screen and (max-width:480px){
    .box{
        padding: 10px;
        padding-top: 0.1px;
    }
}