body {
    display: grid;
    grid-template-columns: 15% 70% 15%;
    grid-template-rows: 1fr 1fr 1fr;
    height: 100vh;
    margin: 0%;
}

*{
    font-family: 'Yuji Syuku';
}

.Title {
    position: relative;
}

.Nav {
    background-color: rgb(73, 31, 38);
    margin-left: 2%;
    margin-right: 2%;
    margin-top: 1%;
    border-radius: 45px;
    height: 4vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul{
    display: flex;
    list-style: none;
    padding: 0%;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 6vw;
}

li a{
    color: white;
    text-decoration: none;
    font-size: 1.2vw;
}

.MainPicture{
    width: 100%;
    margin-top: 0;
    display: block;
    border-radius: 0px;
}

h1 {
    color: rgb(0, 0, 0);
    position: absolute;
    top: -5%;
    left: 2%;
    font-size: 6vw;
    -webkit-text-stroke: 0.1vw;
    -webkit-text-stroke-color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0,0.3);
    padding: 5%;
    padding-bottom: 14%;
}

h2 {
    color: rgb(0, 0, 0);
    position: absolute;
    top: 40%;
    left: 14%;
    font-size: 3vw;
    -webkit-text-stroke: 0.05vw;
    -webkit-text-stroke-color: rgb(255, 255, 255);
}


main {
    margin-top: 5vh;
    margin-left: 2vw;
    margin-right: 2vw;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    column-gap: 1vw;
    padding-bottom: 5%;
}

h3 {
    grid-column-start: 1;
    grid-column-end: 4;
    text-align: center;
    color: white;
    font-size: 220%;
    margin-bottom: 1vh;
}

p{
    color: white;
    text-align: justify;
    grid-column-start: 1;
    grid-column-end: 4;
    margin-top: 1%;
}

hr{
    color: rgb(255, 255, 255);
    width: 40vw;
    margin-top: 3vh;
    margin-bottom: 3vh;
    grid-column-start: 1;
    grid-column-end: 4;
    border-radius: 80%;
}

.firstline{
    color: rgb(255, 255, 255);
    width: 15vw;
    grid-column-start: 1;
    grid-column-end: 4;
    border-radius: 80%;
    margin-top: 1%;
    margin-bottom: 1%;
}

h4{
    color: white;
}

.cards{
    margin-bottom: 20%;
    opacity: 0; 
    transform: translateY(50px);
    transition: all 0.6s ease-out;
    margin-top: 20%;
}

.cards.show {
    opacity: 1;
    transform: translateY(0);
}

button{
    border-radius: 20px;
    width: 100%;
    margin-top: 3%;
    margin-bottom: 2%;
    height: 5vh;
    border-color: white;
    background-color: rgb(38, 98, 78);
}

a{
    color: white;
    text-decoration: none;
}

.end{
    margin-top: 30%;
    margin-bottom: 30%;
    text-align: center;
    grid-column-start: 1;
    grid-column-end: 4;
    margin-bottom: 30%;
}

h5{
    color: white;
    font-size: 500%;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    margin: 0;
    padding: 0;
    opacity: 0;
}

h5.show {
    opacity: 1;
    transform: translateY(0);
}

footer{
    background-color: rgb(73, 31, 38);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    align-items: baseline;
}

.footercopyright{
    color: rgb(255, 255, 255);
    margin-left: 5%;
    margin-right: 5%;
    p{
        color: rgb(255, 255, 255);
        text-align: center;
        font-size: 80%;
        margin-bottom: 1%;
        margin-top: 2%;
    }
    li{
        font-size: 70%;
        text-align: center;
        list-style: none;
        margin-top: 1%;
    }
    ul{
        padding: 0;
        margin-top: 1%;
    }
}

.lastline{
    border: none;
    height: 1px;
    margin-top: 4%;
    margin-bottom: 5%;
    width: 70%;
    background-color: black;
}

.footermine{
    color: rgb(255, 255, 255);
    margin-left: 5%;
    margin-right: 5%;
    p{
        color: rgb(255, 255, 255);
        text-align: center;
        font-size: 80%;
        margin-bottom: 1%;
        margin-top: 7%;
    }
    li{
        font-size: 70%;
        text-align: center;
        list-style: none;
        margin-top: 1%;
    }
    ul{
        padding: 0;
        margin-top: 1%;
    }
}

@media (max-width: 1270px) {
    body {
        grid-template-columns: 15% 70% 15%;
    }

    main {
        column-gap: 5%;
    }
    

    h3 {
        font-size: 1.7rem;
    }

    button {
        height: 5vh;
    }

    .cards {
        margin-bottom: 15%;
    }
}

@media (max-width: 768px) {
    body {
        display: block;
    }

    main {
        display: block;
        margin: 5% 5%;
    }

    .Nav {
        height: auto;
        border-radius: 40px;
        margin-left: 20%;
        margin-right: 20%;
    }

    nav ul {
        flex-direction: column;
        gap: 2vh;
        a{
            font-size: 0.8rem;
        }
    }

    .MainPicture {
        display: none;
    }

    h1 {
        font-size: 15vw;
        position: relative;
        top: 0;
        left: 0;
        color: rgb(255, 255, 255);
        -webkit-text-stroke: 0.6vw rgb(255, 255, 255);
        text-align: center;
        background-image: url(Sidebackground.png);
        background-size: 50%;
        padding-bottom: 3%;
        margin-top: 0;
        margin-bottom: 0;
    }

    h2 {
        font-size: 5vw;
        position: relative;
        top: 0;
        left: 0;
        text-align: center;
        color: rgb(255, 255, 255);
        -webkit-text-stroke: 0px;
        margin-bottom: 5%;
        margin-top: 0%;
        padding-bottom: 3%;
        padding-top: 3%;
        background-color:rgba(62, 166, 113);
    }

    h3 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 2%;
    }

    p {
        margin-top: 2%;
        font-size: 1.2rem;
    }

    button {
        height: 3rem;
        font-size: 1.3rem;
        margin-top: 1%;
    }

    .cards {
        margin-top: 10%;
        margin-bottom: 10%;
    }

    footer {
        display: block;
        text-align: center;
        padding-top: 5%;
        padding-bottom: 2%;
    }
}