/* Modal */

body {
    background-color: #667788;
    color: white;
}

.projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.projects h2 {
    font-size: 4rem;
    font-weight: 500;
}

.projects .helper-text {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-align: center;
}

.projects .section .row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
}

.projects .section .box {
    position: relative;
    border-radius: 5px;
    width: 25vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 22px;
    box-shadow: 0 0 8px black;
    background-color: #21607C;
}

.projects .section .box .content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.projects .section .box img {
    max-width: 100%;
    max-height:250px;
}

.projects .section .box .stack {
    width: 75%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /* justify-content: space-evenly; */
    gap: 4px;
    align-items: center;
}

.projects .section .box .stack > * {
    flex: 1 1 0;
    width: 0;
}

.projects .section .box .controls {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background: black; */
    /* background: rgba(0,0,0,0.33); */
}

.projects .section .box .controls button {
    background: none;
    border: 1px solid white;
    border-radius: 5px;
    padding: 10px 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;

    display: none;
    opacity: 0;
}

.projects .section .box .controls:hover {
    background: rgba(0,0,0,0.33);
    transition: background 0.2s ease-in-out;
}

.projects .section .box .controls:hover > * {
    display: block;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.projects .section .box .controls button:hover {
    background: white;
    color: black;
    transition: all 0.2s ease-in-out;
}

.modal {
    display: none;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    color: black;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto 0 auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.modal-header .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 1em;
}

.modal-content h2 {
        font-size: 2rem;
        font-weight: 500;
}

.modal-content .close {
    color: #aaa;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    width: fit-content;
    height: fit-content;
}

.modal-content .close:hover {
    color: black;
    cursor: pointer;
}

.modal .modal-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* .modal .modal-body img {
    max-width: 100%;
    margin: 1em 0;
} */




/* Image Carousel */


.image-carousel {
    /* width: 5rem; */
    max-width: 800px;
    margin: 0 auto;
    /* position: relative; */
}

.image-carousel .images {
    position: relative;
}

.image-carousel img {
    width: 100%;
}

.image-carousel .controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.image-carousel .controls button {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.1s;
}

.image-carousel .controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transition: all 0.1s;
}

.dots {
    display: flex;
    flex-direction:row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
}

.dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgb(180, 180, 180);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.1s;
}

.dots .dot:hover {
    background-color: rgb(100, 100, 100);
    transition: all 0.1s;
}

.dots .dot.active {
    background-color: rgb(72, 71, 71);
}


@media screen and (max-width: 768px) {
    .projects .section {
        width: 100%;
    }
    .projects .section .row {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 25px;
    }
    
    .projects .section .box {
        position: relative;
        border-radius: 5px;
        max-width: 80%;
        margin: 0 auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 22px;
        box-shadow: 0 0 8px black;
        background-color: #21607C;
    }
}