@font-face {
    font-family: Agency FB;
    src: url(../Fonts/Agency_FB.ttf);
}

body {
    color: #8a2be2;
    font-family: Agency FB;
    font-size: 3vh;
    background-image: url(../Images/Background/spacebackground.gif);
}

img {
    max-width: 100%;
    max-height: 100%;
}

#title {
    top: 3%;
    position: absolute;
    left: 30%;
    text-shadow: 2px 2px white;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 5fr 10fr 10fr 10fr 10fr 10fr 10fr 0.1fr;
    grid-auto-columns: 1fr;
    gap: 10px 1%;
    grid-auto-flow: row;
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
    grid-template-areas:
        "header header header header header"
        "main main main main foot"
        "p2 p2 p2 p1 foot"
        "p4 p3 p3 p3 p6"
        "p7 p5 p5 p5 p5"
        "p8 p8 p8 p9 p9"
        "p11 p10 p10 p10 p10";
    margin: 0 auto;
    margin-top: 8%;
    margin-left: 22%;
    width: 60%;
    height: 170vh;
}

.header {
    grid-area: header;
    background-color: aqua;
        border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    width: 100%;
    height: 100%;
}

#header_img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    background-position: 57% 50%;
    background-image: url('../Images/Background/purpskybg.jpg');
    border-radius: 8px;
}

.p1 {
    grid-area: p1;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
}

.p2 {
    grid-area: p2;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    overflow: auto;
}

.main {
    grid-area: main;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    overflow: auto;
}

.p3 {
    grid-area: p3;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    overflow: auto;
}

.p4 {
    grid-area: p4;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    overflow: auto;
}

.p5 {
    grid-area: p5;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    overflow: auto;
}

.p6 {
    grid-area: p6;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    overflow: auto;
}

.p7 {
    grid-area: p7;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    overflow: auto;
}

.p8 {
    grid-area: p8;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    overflow: auto;
}

.p9 {
    grid-area: p9;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    overflow: auto;
}

.p10 {
    grid-area: p10;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    overflow: auto;
}

.p11 {
    grid-area: p11;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    overflow: auto;
}

.foot {
    grid-area: foot;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    border: #8a2be2 2px solid;
    border-radius: 10px;
    scrollbar-width: none;
    overflow: auto;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media only screen and (max-width: 640px) {
    .container {
        display: flex;
        flex-flow: column;
        position: relative;
        width: 95%;
        right: 19%;
        margin-top: 3%;
        font-size: 2vh;
    }

    .header {
        height: 45%;
        order: 1;
    }

    .main {
        order: 2;
    }

    .p1 {
        display: none
    }

    .p2 {
        height: 25%;
        order: 3;
        height: 150%;
    }

    body {
        font-size: 3vh;
    }

    ul {
        margin-left: 28%;
    }

    .p3 {
        order: 4;
    }

    .p4 {
        display: none;
    }

    .p5 {
        order: 5;
    }

    .p6 {
        display: none;
    }

    .p7 {
        display: none;
    }

    .p8 {
        order: 6;
    }

    .p9 {
        order: 7;
    }

    .p10 {
        order: 8;
    }

    .p11 {
        display: none;
    }

    .foot {
        order: 9;
    }

    #title {
        display: none;
    }
}