/* Body */

body {
    background-color: #f5f5f5;
    font-family: Lekton;
    color: #222121;
    overflow-y: scroll;
}

* {
    box-sizing: border-box;
}

/* Titles and text */

.nameTitle {
    font-size: 3rem;
    margin-top: 25vh;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.sectionTitle {
    font-size: 2rem;
}

.runText {
    font-size: 3.4rem;
}

p.sProjects {
    float: right;
}

h3.h3Projects {
    float: right;
}

/* Containers */

.container {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.box {
    display: none;
    background-color: white;
    font-size: 1rem;
    color: black;
    width: 95vh;
    height: 100%;
    margin-top: 5vh;
    padding: 1.25rem;
    text-align: justify;
    line-height: 1.563rem;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 20fr 1fr;
    column-gap: 0.93rem;
}

/* Menu */

.menu {
    background-color: white;
    width: 75vh;
    margin-top: 0.5vh;
    border-radius: 1.25rem;
    padding: 0.938rem;
    text-transform: uppercase;
    text-align: center;
    align-items: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

menuItem:hover {
    background-color: #f5f5f5;
}

/* List customisation */

ul.custom-list li::before {
    content: "- ";
}

ul.custom-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

/* Highlight/button customisation */

button {
    color: #222121;
    background-color: transparent;
    border: none;
    font-family: inherit;
    font-size: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.highlight {
    display: inline;
    background-color: #008F11;
    font-size: 0.8rem;
    color: #f5f5f5;
    text-transform: uppercase;
    width: fit-content;
    border: 0;
    padding-left: 0.313rem;
    padding-right: 0.313rem;
}

.learnMore {
    display: inline;
    background-color: rgb(219, 219, 219);
    font-size: 0.8rem;
    color: #222121;
    text-transform: uppercase;
    width: fit-content;
    border: 0;
    padding-left: 0.313rem;
    padding-right: 0.313rem;
}

/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fadeIn {
    animation: fadeIn 0.2s linear forwards;
}

.slide-up {
    transform: translateY(-200px);
}

.slide-down {
    transform: translateY(0px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #f5f5f5;
    margin: 5vh auto;
    padding: 1.875rem;
    width: 70%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 3rem;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Images */

img.imgProjects {
    float: left;
    margin-top: 0.938rem;
}

/* Others */

i {
    color: #008F11;
}

hr {
    border: 0;
}

a {
    color: #008F11;
}

a:hover {
    color: #222121;
}

/* Responsive */
@media screen and (min-width:390px) and (max-width:499px) {
    .menu {
        width: 43vh;
        font-size: 0.6rem;
    }

    .nameTitle {
        font-size: 1.5em;
        margin-bottom:0.5vh;
    }

    .runText {
        font-size: 0.8rem;
        margin-top: 1vh;
    }

    .box {
        width: 48vh;
        font-size: 0.6rem;
        margin-top: -11vh;
        line-height: 1rem;
    }

    .container {
        margin-top: 13vh;
    }

    .sectionTitle {
        font-size: 1.3rem;
    }

    .highlight,
    .learnMore {
        font-size: 0.5rem;
        padding-right: 0.4rem;
        padding-left: 0.4rem;
    }

    .grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .sProjects {
        float: none;
        margin-bottom: -8vh;
    }

    .modal-content {
        width: 48vh;
        font-size: 0.7rem;
    }
}

@media screen and (min-width:500px) {
    .menu {
        width: 55vh;
        font-size: 0.875rem;
    }

    .nameTitle {
        font-size: 2.188rem;
    }

    .runText {
        font-size: 1.063rem;
        margin-top: 1vh;
    }

    .container {
        margin-top: 10vh;
    }

    .box {
        width: 55vh;
        font-size: 0.9rem;
        margin-top: -10vh;
    }

    .sectionTitle {
        font-size: 1.7rem;
    }
}

@media screen and (min-width:651px) and (max-width:720px) {
    .menu {
        width: 70vh;
    }

    .nameTitle {
        font-size: 2.5rem;
    }

    .runText {
        font-size: 1.4rem;
        margin-top: 2vh;
    }

    .container {
        margin-top: 10vh;
    }

    .box {
        width: 78vh;
        margin-top: -10vh;
        font-size: 0.9rem;
    }

    .sectionTitle {
        font-size: 1.7rem;
    }
}

@media screen and (min-width:721px) and (max-width:992px) {
    .menu {
        width: 70vh;
    }

    .nameTitle {
        font-size: 2.5rem;
    }

    .runText {
        font-size: 1.6rem;
        margin-top: 2vh;
    }

    .container {
        margin-top: 10vh;
    }

    .box {
        width: 80vh;
        margin-top: -10vh;
    }
}

@media screen and (min-width: 993px) and (max-width:1300px) {
    .menu {
        width: 75vh;
    }

    .nameTitle {
        font-size: 3rem;
    }

    .runText {
        font-size: 2.2rem;
        margin-top: 2vh;
    }

    .container {
        margin-top: 10vh;
    }

    .box {
        width: 80vh;
        margin-top: -10vh;
        font-size: 0.9rem;
    }

    .sectionTitle {
        font-size: 1.7rem;
    }
}

@media screen and (min-width: 1301px) {
    .menu {
        width: 80vh;
        font-size: 1rem;
    }

    .nameTitle {
        font-size: 3rem;
    }

    .runText {
        font-size: 2.9rem;
        margin-top: 1vh;
    }

    .container {
        margin-top: 10vh;
    }

    .box {
        width: 100vh;
        margin-top: -10vh;
    }
}