body {
    display: grid;
    grid-template-columns: 15% 70% 15%;
    grid-template-rows: 1fr 1fr 1fr;
    height: 100vh;
    margin: 0%;
}

.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;
    
}

h1 {
    color: rgb(0, 0, 0);
    position: absolute;
    top: -5%;
    left: 16%;
    font-size: 6.5vw;
    -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: 34%;
    font-size: 3vw;
    -webkit-text-stroke: 0.05vw;
    -webkit-text-stroke-color: rgb(255, 255, 255);
}


.Title {
    position: relative;
}

main {
    margin-top: 5vh;
    margin-left: 2vw;
    margin-right: 2vw;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    column-gap: 1vw;
    padding-bottom: 10%;
}

h3{
    color: white;
    grid-column-start: 1;
    grid-column-end: 6;
    text-align: center;
}

fieldset {
    grid-column-start: 2;
    grid-column-end: 5;
}

.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.popupbox {
    background: white;
    padding-left: 2vw;
    padding-right: 2vw;
    padding-top: 1vh;
    padding-bottom: 2vh;
    border-radius: 20px;
    width: 40vw;
    position: relative;
}

.close {
    float: right;
    font-size: 150%;
    cursor: pointer;
    margin-top: 1%;
}

h5{
    font-size: 200%;
    margin-bottom: 5%;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8)
}

p{
    text-align: center;
}

.popupbox::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -10%;
    width: 100%;
    height: 150%;
    background: url(Sparkle.gif);
    background-size: contain;
    opacity: 0.5
}

h3{
    color: white;
    font-size: 220%;
    margin-bottom: 1vh;
}

h4{
    color: white;
    font-size: 110%;
    grid-column-start: 1;
    grid-column-end: 6;
    text-align: center;
    margin-top: 0;
    margin-top: 1%;
    margin-bottom: 10%;
}

.button{
    color: black;
    width: 100%;
    background-color: white;
    border-radius: 45px;
    font-size: 80%;
    cursor: pointer;
    border-color: rgb(71, 161, 131);
}

.button:hover {
    background-color: rgb(220, 255, 243);
}

hr{
    color: rgb(255, 255, 255);
    width: 15vw;
    grid-column-start: 1;
    grid-column-end: 6;
    border-radius: 80%;
}

legend{
    color: white;
    font-size: 70%;
}

fieldset{
    border-radius: 5%;
    color: white;
}

input{
    background-color: white;
    border-radius: 5px;
    border-color: rgb(37, 67, 57);
}

textarea{
    background-color: white;
    border-radius: 5px;
    border-color: rgb(37, 67, 57);
}

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{
        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: rgb(0, 0, 0);
}

.footermine{
    color: rgb(255, 255, 255);
    margin-left: 5%;
    margin-right: 5%;
    p{
        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;
    }

}

@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: 13vw;
        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-top: 5%;
        padding-bottom: 5%;
        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;
    }


    footer {
        display: block;
        text-align: center;
        padding-top: 5%;
        padding-bottom: 2%;
    }
}

*{
    font-family: 'Yuji Syuku';
}

