body {
    font-family: 'Space Mono', monospace;
    --font-monospace: 'Space Mono';
    background-color: #ffffff;
    /*#ECE3D4;*/
    scroll-behavior: smooth;
    /* padding-left: 10%;
    padding-right: 10%; */
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-family: 'Space Mono', monospace;
    --font-monospace: 'Space Mono';
    text-wrap: balance;
}

h1 {
    font-size: xxx-large;
    font-weight: bolder;
}

.projects,
.contact {
    padding-left: 10%;
    padding-right: 10%;
}

.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, #b8d8d8, #ffffff);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s;
}

.left-half,
.right-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #b8d8d8;
    z-index: 1;
}

.left-half {
    left: 0;
    transform-origin: left center;
    transform: scaleX(1);
    transition: transform 0.75s;
}

.right-half {
    right: 0;
    transform-origin: right center;
    transform: scaleX(1);
    transition: transform 0.75s;
}

.loading-content {
    color: #c05746;
    text-align: center;
    z-index: 2;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(236, 227, 212, 0) 100%);
    padding: 20px 0;
}

.sticky-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.menu-item {
    color: #4f6367;
    text-decoration: none;
    font-weight: bold;
    transition: text-decoration 0.2s ease;
}

.menu-item:hover {
    text-decoration: underline;
}


.presentation {
    padding-top: 2%;
    padding-bottom: 2%;
}

.description-name,
.projects-title {
    color: #c05746;
    padding-top: 25px;
}

.description-text {
    color: #4f6367;
    font-size: large;
    font-weight: normal;
}

.cards {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 0px;
}

.presentation {
    position: relative;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 2%;
    margin-bottom: 2%;
    padding-left: 2%;
    border: 5px solid #4f6367;
}

.card {
    background-color: #ffffff;
    cursor: pointer;
    flex: 1 1 calc(25% - 20px);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    border-bottom: 5px solid #4f6367;
    border-top: 5px solid #4f6367;
    border-left: 2.5px solid #4f6367;
    border-right: 2.5px solid #4f6367;
    /* border: 2px solid #372A15; */
    /* border-radius: 2%; */
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
    /* padding: 10px;  */
    text-decoration: none;
    color: #4f6367;
}

.card-left {
    background-color: #ffffff;
    cursor: pointer;
    flex: 1 1 calc(25% - 20px);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    border-bottom: 5px solid #4f6367;
    border-top: 5px solid #4f6367;
    border-left: 5px solid #4f6367;
    border-right: 2px solid #4f6367;
    /* border-top-left-radius: 2%; 
    border-bottom-left-radius: 2%; */
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
    /* padding: 10px; */
    text-decoration: none;
    color: #372A15;
}

.card-right {
    background-color: #ffffff;
    cursor: pointer;
    flex: 1 1 calc(25% - 20px);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    border-bottom: 5px solid #4f6367;
    border-top: 5px solid #4f6367;
    border-left: 2px solid #4f6367;
    border-right: 5px solid #4f6367;
    /* border-top-right-radius: 2%; 
    border-bottom-right-radius: 2%; */
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
    /* padding: 10px;  */
    text-decoration: none;
    color: #4f6367;
}

.card:hover,
.card-left:hover,
.card-right:hover {
    flex: 1 1 calc(65% - 20px);
    /* border-radius: 1%; */
}

.card-description-title {
    color: #4f6367;
    padding: 0px 0px 0px 10px;
}

.card-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10px;
    width: 50%;
}

.card-description {
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #4f6367;
}

.card:hover .card-description {
    opacity: 1;
}

.card-left:hover .card-description {
    opacity: 1;
}

.card-right:hover .card-description {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: auto;
    transition: none;
    /* margin: -10px 0 -12px -10px; */
    border-right: 5px solid #4f6367;
}

.card-menu {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #b8d8d8;
    height: 50px;
    width: 100%;
    z-index: 1;
    border-bottom: 5px solid #4f6367;
}



.email-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 5%;
    padding-top: 5%;
    padding-left: 2%;
    padding-bottom: 2%;
    padding-right: 50%;
    border: 5px solid #4f6367;
    background-color: #ffffff;
    /*width: 600px; */
}

.email-title {
    margin-bottom: 10px;
    color: #c05746;
}

.email {
    text-decoration: none;
    color: #4f6367;
    margin-bottom: 10px;
}

.email:hover {
    text-decoration: underline;
}

.contact {
    margin-bottom: 50px;
}

footer {
    border-top: 1px solid #C7A26B;
    padding-left: 10%;
    margin-bottom: 20px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(236, 227, 212, 0) 100%);
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    z-index: 1000;
}

.menu-icon {
    padding: 0px 10px 0px 0px;
}


@media (max-width: 600px) {
    header {
        margin-bottom: 15%;
    }

    h1 {
        font-size: x-large;
        font-weight: bolder;
    }

    .presentation {
        width: 80vw;
        margin: 0 auto;
    }

    .description {
        padding: 12px;
    }

    .description-text{
        padding-right: 12px;
        width: 85vw;
        padding-top: 5vh;
    }

    .email-title, .email{
        width: 85vw;
    }

    #description-presentation{
        width: 70vw;
    }

    .card,
    .card-left,
    .card-right {
        flex: 1 1 100%;
        margin-bottom: 20px;
        border: 5px solid #4f6367;
        height: 20vh;
        padding: 5vh 0 0 0;
    }

    .cards {
        flex-wrap: wrap;
    }

    .card-image {
        width: 55%;
        height: auto;
    }

    .card-description {
        opacity: 1;
    }

    .card-description-title {
        color: #4f6367;
        padding: 0px 0px 0px 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 60%;
    }

    /* .email-card {
        width: 100%;
    } */

    .projects {
        padding: 0 5vw;
    }

    .contact{
        padding: 0;
        width: 90vw;
        margin: 0 auto;
        margin-bottom: 10vh;
    }
}

.container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    z-index: 100000;
}

.half {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    font-weight: bold;
    background-color: #b8d8d8;
}

.left {
    left: 0;
    transform-origin: left center;
    transform: scaleX(1);
    transition: transform 0.75s;
}

.right {
    right: 0;
    transform-origin: right center;
    transform: scaleX(1);
    transition: transform 0.75s;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: #c05746;
    font-weight: bold;
    z-index: 1;
}