@charset "UTF-8";

*{
    box-sizing: border-box;
}

body{
    position: relative;
    margin: 0;
    background: black;
    color: #2b2a27;
    display: grid;
    grid-template-columns: [left] 20px [main] 1fr [end] 20px [right];
    grid-template-rows: [header] auto [main] auto [aside] auto [footer] auto [bottom];
}

header {
    position: relative;
    grid-column-start: left;
    grid-column-end: right;
    grid-row-start: header;
    grid-row-end: main;
    margin-bottom: 100px;
    }
    header img {
    display: block;
    width: 100%;
    max-height: 100vh;
    }
    .top-title {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%,50px);
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,.5);
    font-size: 50px;
    font-family: 'Kaushan Script', cursive;
    }
   
nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    }
    nav a{
        text-decoration: none;
        color: #2b2a27;
    }
    nav ul {
    display: flex;
    background: rgba(255,255,255,.7);
    margin: 0;
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
    font-family: 'Kaushan Script', cursive;
    }
    nav li {
    text-align: center;
    padding: 10px 0;
    width: 80px;
    cursor: pointer;
    transition: all 1s;
    }
    nav li:hover {
    background: white;
    }
    nav.open {
        display: block;
    }

main {
    grid-column-start: main;
    grid-column-end: end;
    grid-row-start: main;
    grid-row-end: aside;
    margin-bottom: 100px;
    font-family: 'EB Garamond', serif;
    font-size: 15px;
    margin-top: 40px;
    }
    a {
        text-decoration: none;
        color: #2b2a27;
    }

    h1,h2 {
    color: white;
    text-align: center;
    font-family: 'Kaushan Script', cursive;
    }
    .plan {
    display: flex;
    width: 100%;
    max-width: 800px;
    margin: 2em auto;
    }
    .plan img {
    display: block;
    width: 200px;
    }
    .plan h2 {
    font-size: 20px;
    color: black;
    }
    .plan .comments {
    width: 100%;
    padding: 0 20px;
    background: #cccccc;
    }

aside {
    grid-column-start: main;
    grid-column-end: end;
    grid-row-start: aside;
    grid-row-end: footer;
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    }
    .news {
    max-width: 1000px;
    border-top: dashed 1px #cccccc;
    border-bottom: dashed 1px #cccccc;
    margin: 2em auto;
    padding: 1em 20px;
    color: white;
    }
    .news .topic {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 1em 0;
    border-left: solid 10px #cccccc;
    }
    .news .time {
    margin-right: 1em;
    }

    .btn {
        text-align: center;
        margin-bottom: 80px;
      }
      
      .btn a {
        display: inline-block;
        border: solid 1px white;
        font-size: 0.875rem;
        font-family: 'Kaushan Script', cursive;
        color: white;
        padding: 18px 60px;
        text-decoration: none;
      }

footer {
    grid-column-start: left;
    grid-column-end: right;
    grid-row-start: footer;
    grid-row-end: bottom;
    text-align: center;
    background: white;
    padding: 10px 0;
    font-family: 'EB Garamond', serif;
    font-size: 15px;
    }

    @media (max-width: 1024px) {
    .top-title {
    width: 400px;
    height: 400px;
    font-size: 40px;
    transform: translate(-50%,40px);
    }
    }

    @media (max-width: 840px) {
    .top-title {
    width: 300px;
    height: 300px;
    font-size: 35px;
    transform: translate(-50%,30px);
    }

    @media (max-width: 700px) {
        .plan {
        flex-direction: column;
        }
        .plan img {
        width: 100%;
        height: auto;
        }
        .plan .comments {
        padding: 20px;
        }
        }

    @media (max-width: 580px) {
    header {
    margin-bottom: 60px;
    }
    .top-title {
    width: 250px;
    height: 250px;
    transform: translate(-50%,25px);
    }
    }

    @media (max-width: 450px) {
    .top-title {
    width: 200px;
    height: 200px;
    font-size: 30px;
    transform: translate(-50%,20px);
    }
    }

    @media (max-width: 370px) {
    .top-title {
    width: 150px;
    height: 150px;
    font-size: 25px;
    transform: translate(-50%,15px);
    }
    }
}