body {
    margin: 0;
    background-color: #fff;
    overflow-x: hidden;
}

::selection {
    background-color: transparent;
}

::-moz-selection {
    background-color: transparent;
}

.highlighted {
    position: relative;
    display: inline-block;
    background-image: url('../img/highlight.png');
    background-size: 100% 300%;
    background-position: center;
    pointer-events: none;
}

@font-face {
    font-family: "Hermetico";
    src: url("../fonts/Hermetico-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Elite Math";
    src: url("../fonts/Elite-Math-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Typewriter";
    src: url("../fonts/Typewriter-215F.otf") format("opentype");
}

.navbar {
    position: fixed;
    z-index: 12;
    height: 100px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 100px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.navbar-img {
    position: fixed;
    height: 130px;
    z-index: 10;
}

.navbar-img.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(100px);
}

.navbar-logo {
    height: 70px;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 30px;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.hamburger-menu .line {
    border: 3px solid #000;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    background-color: #000;
}

.hamburger-menu.active .line1 {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 100%;
}

.hamburger-menu.active .line2 {
    opacity: 0;
}

.hamburger-menu.active .line3 {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 100%;
}

.navbar-menu {
    display: flex;
    gap: 30px;
}

.navbar-menu a {
    text-decoration: none;
    position: relative;
    color: #000;
}

.navbar-menu.active a {
    color: #000;
}

.navbar-menu span {
    font-family: "Hermetico";
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.navbar-menu.active span::after {
    background-color: #000;
}

.navbar-menu span::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: calc(100% - 15%);
    background-color: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-menu a:nth-of-type(2) span::after,
.navbar-menu a:nth-of-type(4) span::after {
    border-right: 1px solid #000;
}

.navbar-menu.active a:nth-of-type(2) span::after,
.navbar-menu.active a:nth-of-type(4) span::after {
    border-right: 1px solid #000;
}

.navbar-menu a:hover span::after {
    opacity: 1;
    animation: blink-cursor 1s steps(20, start) infinite;
}

@keyframes blink-cursor {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 200px;
    padding-bottom: 100px;
    padding-inline: 100px;
    background-color: #fff;
    z-index: 9;
    overflow: hidden;
    gap: 25px;
    max-width: 1080px;
    margin: 0 auto;
}

.container h1 {
    text-transform: uppercase;
    font-family: 'Hermetico';
    margin: 0;
}

.filter {
    cursor: pointer;
    background-color: transparent;
    border: none;
    outline: none;
    font-weight: 600;
    align-self: flex-end;
}

.container span {
    padding-top: 25px;
    font-family: 'Typewriter';
    text-align: center;
}

.videos {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    width: 100%;
    place-items: center center;
    gap: 50px;
}

.filter img {
    width: 12px;
}

.video-item {
    display: flex;
    height: 100%;
    width: auto;
    gap: 15px;
}

.prodcard {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.prodcard-picto {
    z-index: 10;
    position: absolute;
    display: flex;
    gap: 10px;
    width: 20%;
    height: 15%;
    right: 5%;
    bottom: 5%;
    justify-content: flex-end;
}

.prodcard-picto img {
    height: 100%;
    width: auto;
    filter: invert(100%) brightness(200%);
    max-height: 36px;
}

.prodcard-button, .prodcard-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.prodcard-button {
    opacity: 0;
    visibility: hidden;
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background-color: transparent;
    z-index: 1;
    cursor: pointer;
    border: none;
}

.prodcard-button img {
    width: 64px;
    transition: all 0.3s ease;
}

.prodcard-button img:hover {
    scale: 1.1;
}

.prodcard-overlay {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: #000;
    width: 100%;
    height: 100%;
}

.prodcard:hover .prodcard-button {
    opacity: 1;
    visibility: visible;
}

.prodcard:hover .prodcard-overlay {
    opacity: 0.3;
    visibility: visible;
}

.prodcard-cover {
    width: 100%;
}

.prodcard-firstlayer {
    position: absolute;
    width: calc(100% + 10px);
    max-width: 510px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    pointer-events: none;
    user-select: none;
}

.prodcard-layer {
    position: absolute;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: #fff;
    z-index: 9;
    min-height: 50px;
    height: auto;
    padding-bottom: 20px;
    font-family: "Typewriter";
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 20px;
    gap: 20px;
}

.footer-section {
    display: inline-block;
    padding: 0 20px;
}

.footer-section.about span {
    display: flex;
}

.footer-section.links h2 {
    text-align: center;
}

.footer-section.links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    list-style: none;
    padding: 0;
    white-space: nowrap;
    column-gap: 10px;
}

.footer-section.links ul li::before {
    display: inline-block;
    content: "\2013";
    margin-right: 3px;
    font-family: "Elite Math";
    font-weight: bold;
}

.footer-section.contact {
    white-space: nowrap;
}

.footer-section.contact a {
    text-decoration: none!important;
}

.footer-section h2 {
    margin-bottom: 10px;
    color: #000;
    font-family: "Hermetico";
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-section p {
    margin: 0 0 10px;
}

.footer-section a {
    color: #000;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section .social-icons {
    display: flex;
    gap: 10px;
}

.footer-section .social-icon {
    color: #333;
    width: 20px;
    height: 20px;
    font-size: 18px;
    text-decoration: none;
}

.footer-section .social-icon img {
    width: 100%;
    height: 100%;
}

.footer-section .social-icon img:hover {
    scale: 1.1;
}

footer img {
    height: 50px;
}

.copyright {
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    font-family: "Typewriter";
    font-size: 16px;
    min-width: 280px;
    padding: 15px;
}

.copyright .attribution {
    position: relative;
}

.copyright .attribution::before{
    content: "Coded by Charlie";
    color: #000;
    animation: words 20s infinite;
}

.copyright .attribution::after{
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    background-color: #fff;
    border-left: 2px solid #000;
    right: -8px;
    animation: cursor .8s infinite, typing 20s steps(20) infinite;
}

@keyframes cursor {
    to{
        border-left: 2px solid #ff7f5000;
    }
}

@keyframes words {
    0%,20% {
        content: "Coded by Charlie";
    }
    21%,40% {
        content: "Designed by Charlie";
    }
    41%,60% {
        content: "Coded by Charlie";
    }
    61%,80% {
        content: "Designed by Charlie";
    }
    81%,100% {
        content: "Propulsed by CVA Prod.";
    }
}

@keyframes typing {
    10%,15%,30%,35%,50%,55%,70%,75%,90%,95%{
        width: 0;
    }
    5%,20%,25%,40%,45%,60%,65%,80%,85%{
        width: calc(100% + 8px);
    }
}

@media screen and (max-width: 1150px) {
    .contact {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 1000px) {
    .navbar {
        padding-inline: 50px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .footer-section.contact .contact-content {
        align-items: center;
    }

    footer img {
        width: 80%;
        height: auto;
    }
}

@media screen and (max-width: 850px) {
    .hamburger-menu {
        display: flex;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-menu.hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        width: 300px;
        height: 350px;
        top: 80px;
        right: 0;
        flex-direction: column;
        background-image: url("../img/navbarbackground.png");
        background-position: center;
        background-size: 90% 100%;
        background-repeat: no-repeat;
        text-align: center;
        animation: slideIn 0.5s ease-out forwards;
    }

    @keyframes slideIn {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }

    @keyframes slideOut {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(100%);
        }
    }

    .navbar-menu span {
        font-size: 24px;
    }

    .client-logo {
        margin: 0 25px;
    }

    .contact-infos {
        text-align: center;
    }

    .map-overlay {
        width: 102%!important;
    }

    #map {
        width: 100%!important;
    }
}

@media screen and (max-width: 600px) {
    .container {
        padding-inline: 30px;
    }

    .footer-sections-combined {
        flex-direction: column!important;
    }

    .contact-container {
        min-width: 450px;
        min-height: 330px;
        height: 330px;
    }

    .contact-form {
        width: 310px;
        height: 250px;
        top: 35%;
    }

    .sender h2 {
        font-size: 18px;
        margin-block: 10px;
    }

    #envelopePaper {
        padding-bottom: 30px;
    }

    .recipient {
        padding-left: 0;
    }

    .contact-disclaimer {
        display: none!important;
    }

    .recipient-2 {
        display: flex!important;
    }
}

@media screen and (max-width: 450px) {
    .container {
        padding-top: 120px;
        overflow: hidden;
    }

    .hamburger-menu {
        width: 18px;
        height: 18px;
    }

    .navbar {
        padding-inline: 20px;
    }

    .contact {
        width: 80%;
        gap: 20px!important;
    }

    .contact-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: auto;
        height: auto;
    }

    .contact-container img {
        display: none!important;
    }

    .contact-form {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 280px;
    }

    .recipient {
        display: none;
    }

    .sender h2 {
        display: none;
    }

    #formSender {
        width: 100px;
        height: 50px;
        right: 0;
        bottom: 0;
        left: 50%;
        transform: translate(-50%);
    }

    .contact-infos {
        width: 80%;
    }

    .recipient-2 div:nth-child(1) {
        flex-direction: column;
        gap: 10px!important;
    }

    .recipient-2 div:nth-child(2) {
        margin-top: 10px;
    }
}