body {
    font-family: 'Inknut Antiqua', serif;
    background-color: #f3f0e5;
    margin: 0;
    padding: 0;
}

.navbar {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    padding: 10px 10px 10px 35px;
    background-color: #f3f0e5;
}

.toggle-button {
    display: none;
    font-size: 2.5em;
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #b13d3d;
    margin-right: 20px;
}

.navbar-links {
    display: flex;
    gap: 20px;
}

.navbar-links a {
    text-decoration: none;
    font-size: 3em;
    color: #b13d3d;
    transition: color 0.3s;
    margin: 20px;
}

.navbar-links a:nth-child(1) {
    color: #81161C;
}

.navbar-links a:nth-child(2) {
    color: #CC1D33;
}

.navbar-links a:nth-child(3) {
    color: #c96a4d;
}

.navbar-links a:nth-child(4) {
    color: #d68a4d;
}

.navbar-links a:hover {
    color: #000;
}

select {
    margin-left: 5vw;
}

.mainbody {
    font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji";
    margin-left: 5vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

select {

    width: 200px;
    height: 50px;
    font-size: 1.5em;
    border-radius: 10px;
}

.tooltip {
    font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji";
}

.project-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji";
    margin: 100px 15%;
    line-height: 1.5;
    margin-bottom: 200px;
}

.project-text h2 {
    margin-top: 50px;
    font-size: 2.5vw;
    align-self: flex-start;
}

.project-text p {
    font-size: 1.7vw;
}

.project-text img {
    width: 600px;
    align-self: center;
}

.project-text li {
    font-size: 1.7vw;
}

/* Adjust layout for smaller screens */
@media (max-width: 1559px) {
    .mainbody {
        margin-left: 5vw;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    #project {
        flex: 1 1 calc((100% - 40px) / 3);
        /* Three items per row */
        max-width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 1083px) {
    #project {
        flex: 1 1 calc((100% - 20px) / 2);
        /* Two items per row */
        max-width: calc((100% - 20px) / 2);
    }

    .project-text img {
        width: 100vw;
    }

    .project-text h2 {
        font-size: 6.5vw;
    }

    .project-text p {
        font-size: 4.5vw;
    }

    .project-text li {
        font-size: 4.5vw;
    }
}

@media (max-width: 720px) {
    #project {
        flex: 1 1 100%;
        /* One item per row */
        max-width: 100%;
    }
}

/* .projects {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-left: 10vw;
    margin-right: 10vw;
    margin-bottom: 150px;
    justify-content: flex-start;
    align-items: center;
}

#project {
    flex-grow: 1;
    height: 300px;
    width: 500px;
    min-height: 200px;
    max-width: 500px;
    border: 1px solid black;
    border-radius: 25px;
}


*/
@media (max-width: 1023px) {
    .navbar {
        flex-direction: column;
        align-items: flex-end;
    }

    .toggle-button {
        display: block;
    }

    .navbar-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: height 0.5s ease-out;
    }

    .navbar-links a {
        margin: 10px;
        width: auto;
        text-align: right;
        padding-right: 15px;
        margin-right: 15px;
        opacity: 0;
        height: 1.5em;
        font-size: 2em;
        transform: translateY(-20px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    }

    .navbar-links.active {
        height: auto;
        /* To smoothly transition the height to fit the content */
        margin-bottom: 20px;
    }

    .navbar-links.active a {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.1s;
    }

    .navbar-links.active a:nth-child(2) {
        transition-delay: 0.25s;
    }

    .navbar-links.active a:nth-child(3) {
        transition-delay: 0.4s;
    }

    .navbar-links.active a:nth-child(4) {
        transition-delay: 0.55s;
    }

    .projects {
        flex-direction: column;

        margin-left: 10vw;
        margin-right: 10vw;
        width: 80vw;
        justify-content: center;
        align-items: center;
    }

    #project {
        min-width: 80vw;
        min-height: 80vw;
    }

}