/* All the pages. ⬇⬇⬇
================================================== */

/*-------------------------⬇⬇⬇ Body ⬇⬇⬇-------------------------*/
body {
    background-image: linear-gradient(#63e48f, #c2f3cf);
    background-image: url("../images/background.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    font-size: larger;
    width: 100%;
    margin: auto;
    text-align: justify;
}
/*-------------------------⬆⬆⬆ Body ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Header ⬇⬇⬇-------------------------*/
header {
    height: 4rem;
}
/*-------------------------⬆⬆⬆ Header ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Nav ⬇⬇⬇-------------------------*/
nav > ul {
    position: fixed;
    width: 100%;
    min-height: 2.5rem;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    list-style-type: none;
    background-color: rgba(25, 81, 41, 0.7);
}

nav > ul > li > a {
    display: block;
    padding: 0.6rem 1rem 0.6rem 1rem;
    color: white;
    text-decoration: none;
}

nav > ul > li > a:hover {
    background-color: rgb(0, 59, 55);
}

nav > ul > li > a:focus {
    outline: none;
    padding: 0.4rem 0.8rem 0.4rem 0.8rem;
    border: 0.2rem solid rgb(9, 150, 237);
}
/*-------------------------⬆⬆⬆ Nav ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Nav for Mobile ⬇⬇⬇-------------------------*/
nav > div {
    display: none;
}

.display-mobile {
    display: block;
    position: relative;
}
/*-------------------------⬆⬆⬆ Nav for Mobile ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Main ⬇⬇⬇-------------------------*/
main {
    margin: 0 auto 0 auto;
    padding: 0 3rem 0 3rem;
    width: calc(1550px - 6rem);
    min-height: calc(100vh - 19.3rem);
    background-image: linear-gradient(#63e48f, #c2f3cf);
}

main > p {
    width: 95%;
    margin: auto;
    white-space: pre-line;
    font-size: x-large;
    line-height: 1.3;
}
/*-------------------------⬆⬆⬆ Main ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Titles in Main ⬇⬇⬇-------------------------*/
h1 {
    margin-top: 0;
    padding-top: 1rem;
    text-align: center;
}

main h2 {
    margin-bottom: 0;
    text-align: center;
    font-size: xx-large;
}

main h3 {
    text-align: center;
    font-size: x-large;
    font-style: italic;
}

main h5 {
    margin: 1rem 0 0 0;
    padding-bottom: 1rem;
    font-size: larger;
    text-align: right;
}
/*-------------------------⬆⬆⬆ Titles in Main ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Links in Main ⬇⬇⬇-------------------------*/
main a {
    color: #003229;
    background-color: transparent;
    text-decoration: none;
}

main a:hover {
    color: #12569f;
    background-color: transparent;
    text-decoration: none;
}
/*-------------------------⬆⬆⬆ Links in Main ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Italic ⬇⬇⬇-------------------------*/
.italic {
    font-style: italic;
}
/*-------------------------⬆⬆⬆ Italic ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Text Align Center ⬇⬇⬇-------------------------*/
.text-align-center {
    text-align: center;
}
/*-------------------------⬆⬆⬆ Text Align Center ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Images in Description ⬇⬇⬇-------------------------*/
/* All the classes that starts with "images-" === [class^="images-"] */
[class^="images-"] {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

[class^="images-"] > img {
    min-width: 10rem;
    max-height: 25rem;
    margin: 0.5rem;
}

.images-1 > img { max-width: calc((100% - 1rem) / 1); }
.images-2 > img { max-width: calc((100% - 2rem) / 2); }
.images-3 > img { max-width: calc((100% - 3rem) / 3); }
.images-4 > img { max-width: calc((100% - 4rem) / 4); }
.images-5 > img { max-width: calc((100% - 5rem) / 5); }
.images-6 > img { max-width: calc((100% - 6rem) / 6); }
.images-7 > img { max-width: calc((100% - 7rem) / 7); }
.images-8 > img { max-width: calc((100% - 8rem) / 8); }
.images-9 > img { max-width: calc((100% - 9rem) / 9); }
.images-10 > img { max-width: calc((100% - 10rem) / 10); }
/*-------------------------⬆⬆⬆ Images in Description ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Grid for Menu ⬇⬇⬇-------------------------*/
#grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

#grid section {
    display: flex;
    margin: 0.5rem;
}

#grid div {
    text-align: left;
}

#grid img {
    width: 13rem;
    margin-right: 0.5rem;
}

#grid span {
    font-style: italic;
}

#grid h2 {
    text-align: left;
    margin: 0 auto 0.5rem auto;
}
/*-------------------------⬆⬆⬆ Grid for Menu ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Table at end of Description ⬇⬇⬇-------------------------*/
table {
    width: 100%;
    margin: auto;
}

caption {
    font-size: xx-large;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

table,
th,
td {
    border: solid rgb(37, 129, 37) 2px;
    border-collapse: collapse;
}

td {
    word-break: break-all;
}

.table-title {
    background-image: linear-gradient(rgb(129, 232, 143), rgb(42, 192, 104));
}
/*-------------------------⬆⬆⬆ Table at end of Description ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Footer ⬇⬇⬇-------------------------*/
footer {
    height: 3rem;
    margin-top: 1rem;
    color: white;
    background-color: rgb(55, 61, 71);
}

footer > p {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: large;
    text-align: center;
}

footer > p > a {
    color: white;
    text-decoration: none;
}

footer > p > a:hover {
    color: gainsboro;
}
/*-------------------------⬆⬆⬆ Footer ⬆⬆⬆-------------------------*/

/*-------------------------⬇⬇⬇ Loader ⬇⬇⬇-------------------------*/
#loader-div {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#loader {
    border: 1.6rem solid rgb(0, 59, 55);
    border-radius: 50%;
    border-top: 1.6rem solid #c2f3cf;
    width: 12rem;
    height: 12rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/*-------------------------⬆⬆⬆ Loader ⬆⬆⬆-------------------------*/

@media screen and (max-width: 1565px) {
    /*-------------------------⬇⬇⬇ Body, Header, Main, Footer ⬇⬇⬇-------------------------*/
    body, header, main, footer {
        min-width: 250px;
    }
    /*-------------------------⬆⬆⬆ Body, Header, Main, Footer ⬆⬆⬆-------------------------*/

    /*-------------------------⬇⬇⬇ Main ⬇⬇⬇-------------------------*/
    main {
        padding: 0 2rem 0 2rem;
        width: calc(100% - 4rem);
    }
    /*-------------------------⬆⬆⬆ Main ⬆⬆⬆-------------------------*/

    /*-------------------------⬇⬇⬇ Grid for Menu ⬇⬇⬇-------------------------*/
    #grid h2 {
        font-size: larger;
    }
    /*-------------------------⬆⬆⬆ Grid for Menu ⬆⬆⬆-------------------------*/

    /*-------------------------⬇⬇⬇ AD ⬇⬇⬇-------------------------*/
    .google-ad {
        width: 98%;
    }
    /*-------------------------⬆⬆⬆ AD ⬆⬆⬆-------------------------*/
}

@media screen and (max-width: 650px) {
    /*-------------------------⬇⬇⬇ Grid for Menu ⬇⬇⬇-------------------------*/
    #grid {
        grid-template-columns: 1fr;
    }

    #grid img {
        max-width: calc(100vw - 18rem);
        max-height: 10rem;
    }

    #grid h2,
    #grid span {
        overflow: hidden;
        display: -webkit-box;
        max-width: calc(100vw - 10rem);
        -webkit-box-orient: vertical;
    }

    #grid h2 {
        -webkit-line-clamp: 1;
    }

    #grid span {
        -webkit-line-clamp: 4;
    }
    /*-------------------------⬆⬆⬆ Grid for Menu ⬆⬆⬆-------------------------*/
}

@media screen and (max-width: 450px) {
    /*-------------------------⬇⬇⬇ Main ⬇⬇⬇-------------------------*/
    main {
        padding: 0 1rem 0 1rem;
        width: calc(100% - 2rem);
    }
    /*-------------------------⬆⬆⬆ Main ⬆⬆⬆-------------------------*/

    /*-------------------------⬇⬇⬇ Grid for Menu ⬇⬇⬇-------------------------*/
    #grid section {
        margin: 0.2rem 0 0.2rem 0;
    }

    #grid img {
        max-width: calc(100vw - 18rem);
        min-width: 8rem;
        max-height: 10rem;
    }

    #grid span {
        -webkit-line-clamp: 3;
    }
    /*-------------------------⬆⬆⬆ Grid for Menu ⬆⬆⬆-------------------------*/
}

@media screen and (max-width: 510px) {
    /*-------------------------⬇⬇⬇ Nav ⬇⬇⬇-------------------------*/
    nav > ul {
        display: none;
    }

    nav > div {
        height: 4rem;
        display: flex;
        align-items: center;
        padding-left: 1rem;
        color: white;
        background-color: rgba(25, 81, 41, 0.7);
        cursor: pointer;
    }
    /*-------------------------⬆⬆⬆ Nav ⬆⬆⬆-------------------------*/

    /*-------------------------⬇⬇⬇ Table at end of Description ⬇⬇⬇-------------------------*/
    th {
        min-width: 5rem;
        word-break: break-all;
    }
    /*-------------------------⬆⬆⬆ Table at end of Description ⬆⬆⬆-------------------------*/
}

/*-------------------------⬇⬇⬇ AD ⬇⬇⬇-------------------------*/
.google-ad {
    max-width: calc(1550px - 6rem);
    text-align: center;
    margin: 1rem auto 0.5rem auto;
}

.google-ad * {
    max-height: 10rem;
}
/*-------------------------⬆⬆⬆ AD ⬆⬆⬆-------------------------*/

/* All the pages. ⬆⬆⬆
================================================== */
