body {
    background-color: black;
    letter-spacing: 2%;
    cursor: url('../images/arrow-test2.png'), auto;
    filter: blur(0.2px);
    margin: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none;
}

.ui__top__screen.hidden,
.game__level.hidden,
.gameover__bg.hidden,
.landing__screen__button.hidden {
    display: none;
}

@font-face {
    font-family: "digital-7";
    src: url('../fonts/digital-7.ttf') format('ttf');
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "matrix";
    src: url('../fonts/matrix.ttf') format('ttf');
    font-style: normal;
    font-weight: 500;
}


@keyframes neon__glow {

    0%,
    25%,
    45%,
    75%,
    100% {
        text-shadow: 0 0 12px #7ff655;
    }

    12%,
    36%,
    55%,
    82% {
        text-shadow: 0 0 18px #5bbe38;
    }
}

@keyframes button__neon__glow {

    0%,
    25%,
    45%,
    75%,
    100% {
        text-shadow: 0 0 12px #7ff655;
        border: 0 0 12px #7ff655;
        box-shadow: 0 0 12px #5bbe38;
    }

    12%,
    36%,
    55%,
    82% {
        text-shadow: 0 0 18px #5bbe38;
        border: 0 0 18px #5bbe38;
        box-shadow: 0 0 18px #5bbe38;
    }
}

@keyframes pulse__neon__aura {

    0% {
        box-shadow: 0 0 12px #5bbe38;
    }

    50% {
        box-shadow: 0 0 15px #5bbe38, 0 0 10px white;
    }

    100% {
        box-shadow: 0 0 12px #5bbe38;
    }
}

@keyframes pulse__neon {

    0% {
        transform: scale(1);
        box-shadow: 0 0 12px #5bbe38;
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 25px #5bbe38, 0 0 10px white;
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 12px #5bbe38;
    }
}

@keyframes danger__neon {

    from {
        box-shadow: 0 0 12px #ca1c1c;
    }

    to {
        box-shadow: 0 0 25px #ca1c1c, 0 0 10px white;
    }
}

@keyframes background__landingpage {

    0%,
    25%,
    45%,
    75%,
    100% {
        background-image: url('../images/landing_screen-low_light.webp');
    }

    12%,
    36%,
    55%,
    82% {
        background-image: url('../images/landing_screen.webp');
    }
}


@keyframes fadeInUi {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOutUi {

    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.animate__in {
    animation: fadeInUi 0.5s ease-out forwards;
}

.animate__out {
    animation: fadeOutUi 0.5s ease-in forwards;
}


.background__matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: background__landingpage 6s infinite;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.ui__top__screen {
    position: relative;
    z-index: 1;
    opacity: 1;
    width: 100%;
    height: 100%;
}

.landing__screen {
    width: 100%;
}

.landing__screen__gridholder {
    display: grid;
    grid-template-columns: 6% auto 30% 6%;
}

.landing__screen__textsection {
    padding-top: 5rem;
    grid-column: 2;
    display: grid;
    grid-template-rows: auto;
}

.landing__screen__title {
    display: flex;
    font-size: 13rem;
    color: white;
    font-family: "matrix";
    animation: neon__glow 6s infinite alternate;
}

.landing__screen__title__small {
    font-size: 8rem;
    margin-top: -2rem;
}

.landing__screen__bodycopy {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: white;
    font-family: "digital-7";
    animation: neon__glow 4s infinite alternate;
    font-size: 1.5rem;
    line-height: 130%;
}

.landing__screen__cta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.landing__screen__button {
    padding: 1rem 2rem;
    color: white;
    font-family: "digital-7";
    font-size: 2rem;
    animation: button__neon__glow 6s infinite alternate;
    background-color: black;
    border: 2px solid;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.landing__screen__button:hover:not(:disabled) {
    background: white;
    color: rgb(8, 35, 8);
    box-shadow: 0 0 12px #5bbe38;
}

.landing__screen__button:disabled {
    border-color: #333333;
    color: #333333;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 12px #5bbe38;
    cursor: not-allowed;
    opacity: 0.5;
    animation: none;
}


.retro__dialogbox {
    background-color: rgba(0, 0, 0, 0.9);
    border: solid 2px #5bbe38;
    box-shadow: 0 0 12px #5bbe38;
    padding: 3rem 5rem;
    border-radius: 1rem;
    text-align: center;
    margin: auto;

    color: white;
    max-width: 600px;
}

.retro__dialogbox::backdrop {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(3px);
}

.dialog__title {
    font-family: 'matrix';
    font-size: 3rem;
    color: #5bbe38;
    margin-top: 0;
}

.cta__centered {
    justify-content: center;
}

.text__margin__bottom {
    margin-bottom: 1rem;
}

.text__margin__top {
    margin-top: 2rem;
}

.btn__margin__top {
    margin-top: 2rem;
}

.digital__text {
    color: white;
    font-family: 'digital-7';
}



#game__system {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
    background-image: url('../images/ecran-cathodique-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.game__level {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 1200px;
}

.game__main__title {
    font-family: "digital-7";
    color: white;
    font-size: 3.5rem;
    animation: neon__glow 4s infinite alternate;
    margin-top: 0;
    margin-bottom: 0.5rem;
    letter-spacing: 5px;
    text-align: center;
}

.game__status__message {
    font-family: "digital-7";
    color: white;
    font-size: 1.4rem;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid #333333;
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}


.btn__exit__corner {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    font-size: 1.5rem;
    padding: 0.8rem 1.5rem;
    z-index: 20;
}

.timer__corner {
    position: absolute;
    top: 2rem;
    right: 3rem;
    z-index: 50;
    color: white;
    font-family: "digital-7";
    font-size: 3.5rem;
    animation: neon__glow 4s infinite alternate;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 0.5rem 1rem;
    border: 2px solid #5bbe38;
    border-radius: 0.5rem;
}


.leaderboard__list {
    padding: 0;
    text-align: left;
    font-size: 1.8rem;
    line-height: 2.5rem;
    min-width: 300px;
}

.leaderboard__empty {
    color: #333333;
}

.btn__danger {
    color: red;
    border-color: red;
    animation: none;
    background-color: rgba(0, 0, 0, 0.9);
}

.btn__danger:not(:disabled) {
    background-color: red;
    color: black;
    box-shadow: 0 0 15px red;
}

.btn__warning {
    background-color: rgba(0, 0, 0, 0.9);
    color: #ff9900;
    border-color: #ff9900;
    animation: none;
}

.btn__warning:not(:disabled) {
    background-color: #ff9900;
    color: black;
    box-shadow: 0 0 15px #ff9900;
}

.text__warning__color {
    color: #ff9900;

}

.text__danger {
    color: red;
    font-family: 'digital-7';
}


footer {
    background-color: black;
    color: white;
    font-family: "digital-7";
    font-size: 1rem;
    margin-left: 6%;
    padding-bottom: 1rem;

}




.game__grid__cables {
    display: grid;
    grid-template-columns: repeat(20, 45px);
    grid-template-rows: repeat(14, 45px);
    gap: 3px;
    background-image: url("../images/background-game1.jpg");
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border: 2px solid #ccffcc;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
    animation: pulse__neon__aura 4s infinite;
    border-radius: 8px;
    margin: 0 auto;
}

.cell {
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, opacity 0.2s ease, box-shadow 0.5s ease-in;
}

.empty {
    background-color: transparent;
    cursor: default;
}

.cable7 {
    background-image: url('../images/cable-7-end.png');
    box-shadow: 0 0 10px #5bbe38;
    cursor: default;
}

.cable8 {
    background-image: url('../images/cable-8-end-wrong.png');
    box-shadow: 0 0 10px #ca1c1c;
    cursor: default;
}

.straight {
    background-image: url('../images/cable-1alt.png');
}

.angle {
    background-image: url('../images/cable-3-bottom-right.png');
}

.rot0 {
    transform: rotate(0deg);
}

.rot90 {
    transform: rotate(90deg);
}

.rot180 {
    transform: rotate(180deg);
}

.rot270 {
    transform: rotate(270deg);
}

.cell:hover:not(.empty):not(.cable7) {
    opacity: 0.8;
}





.grid__city {
    display: grid;
    grid-template-columns: repeat(40, 25px);
    grid-template-rows: repeat(25, 25px);
    background-image: url("../images/matrix-code.jpg");
    border: 2px solid #ccffcc;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    animation: pulse__neon__aura 4s infinite;
    margin: 0 auto;
}

.sky {
    background-color: #4caf50;
    opacity: 1;
}

.building {
    background-color: #1b5e20;
}

.sky.revealed {
    opacity: 0;
}

.building.revealed {
    background-color: #ccffcc;
    box-shadow: 0 0 5px #ccffcc;
}

.computer {
    background-color: #1b5e20;
}

.computer.active {
    background-color: #00ff41;
    box-shadow: 0 0 15px #00ff41;
    cursor: pointer;
    animation: pulse__neon 1s infinite;
    position: relative;
    z-index: 10;
}




#game3__password__input {
    background-color: black;
    border: 1px solid #333333;
    border-bottom: 3px solid #00ff41;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: 3rem;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#game3__password__input:focus {
    border-color: #00ff41;
    box-shadow: 0 10px 10px -10px #00ff41;
}

.game3__indicators__row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.game3__bulb {
    width: 40px;
    height: 40px;
    background-color: #333333;
    border: 2px solid #ca1c1c;
    box-shadow: 0 0 10px #ca1c1c inset, 0 0 10px #ca1c1c;
    transition: all 1s ease;
    animation: pulse__neon__aura;
    border-radius: 8px;
}

.game3__bulb.orange {
    background-color: #6b3b09;
    border: 2px solid #ff9900;
    box-shadow: 0 0 10px #ff9900 inset, 0 0 10px #ff9900;
}

.game3__bulb.green {
    background-color: black;
    border: 2px solid #00ff41;
    box-shadow: 0 0 10px #00ff41 inset, 0 0 10px #00ff41;
}

.game4__desktop__window {
    background-image: url('../images/pc-background.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px;
    border: 2px solid #ccffcc;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.game4__grid__folders {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    justify-items: center;
}

.folder__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease;
}

.folder__wrapper:hover {
    transform: scale(1.1);
}

.folder__icon {
    width: 70px;
    height: 50px;
    background-image: url('../images/folder.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.folder__name {
    font-family: 'Courier New', Courier, monospace;
    color: white;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
}

.folder__content__box {
    background-color: black;
    border: 1px dashed #ccffcc;
    padding: 20px;
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.virus__popup {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid red;
    box-shadow: 0px 0px 20px red;
    padding: 25px;
    text-align: center;
    width: 250px;
    pointer-events: auto;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    z-index: 1001;
    animation: danger__neon 0.1s infinite alternate;
    border-radius: 4px;
}

.virus__popup.inactive {
    border: 2px solid rgb(46, 8, 8);
    box-shadow: none;
    pointer-events: none;
    z-index: 1000;
    animation: none;
    opacity: 0.5;
}

.virus__popup p {
    color: white;
    font-family: "digital-7";
    font-size: 1.8rem;
    margin: 0 0 20px 0;
}

.virus__btn {
    font-family: "digital-7";
    font-size: 1.5rem;
    padding: 10px 30px;
    background-color: red;
    color: black;
    border: 1px solid red;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease-in;
}

.virus__btn:hover {
    background-color: white;
}




.gameover__bg {
    background-image: url('../images/game-over-screen.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 30;
    display: grid;
    grid-template-columns: 4fr 5fr;
    grid-template-rows: 1fr;
    align-items: center;
}

.gameover__content {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding-left: 10%;
    box-sizing: border-box;
}

.title__gameover {
    font-family: "matrix";
    font-size: 8rem;
    color: white;
    animation: neon__glow 6s infinite alternate;
    margin: 0;
}

.gameover__message {
    font-family: "digital-7";
    font-size: 3.5rem;
    color: white;
    animation: neon__glow 4s infinite alternate;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.gameover__signature {
    font-family: "digital-7";
    font-size: 2.5rem;
    color: #7ff655;
    animation: neon__glow 2s infinite alternate;
    font-style: italic;
    margin-bottom: 2rem;
}

.intro1__bg {
    background-image: url('../images/chairs.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 30;
    cursor: pointer;
}

.intro2__bg {
    background-image: url('../images/Morpheus-pills.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 30;
}

.game__intro__title {
    position: absolute;
    top: 15%;
    width: 100%;
    text-align: center;
    font-family: "digital-7";
    color: white;
    font-size: 3.5rem;
    animation: neon__glow 4s infinite alternate;
    padding: 0 2rem;
    box-sizing: border-box;
    margin: 0;
}

.game__intro__title__center {
    text-align: center;
    font-family: "digital-7";
    color: white;
    font-size: 3.5rem;
    animation: neon__glow 4s infinite alternate;
    padding: 0 2rem;
    box-sizing: border-box;
    margin: 0;
}

.pill__btn {
    position: absolute;
    width: 25%;
    height: 15%;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.8s ease-out;
    z-index: 40;
}

.pill__btn:hover {
    transform: scale(1.2);
}

.blue__pill__btn {
    bottom: 20%;
    left: 15%;
    background-image: url("../images/blue-pill.png");
}

.blue__pill__btn:hover {
    background-image: url("../images/blue-pill-glow.png");
}

.red__pill__btn {
    bottom: 20%;
    right: 15%;
    background-image: url("../images/red-pill.png");
}

.red__pill__btn:hover {
    background-image: url("../images/red-pill-glow.png");
}



.victory__bg {
    background-image: url("../images/neo-win.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.victory__content {
    align-items: self-start;
}

.victory__title {
    color: #7ff655;
    font-size: 8rem;
}

.victory__bodycopy {
    font-size: 2.5rem;
    color: white;
    animation: neon__glow 4s infinite alternate;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

#game__final__time {
    color: #7ff655;
    font-size: 3rem;
}

.popup__anim {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.popup__visible {
    opacity: 1;
}

.penalty__popup {
    position: absolute;
    top: 7.5rem;
    right: 3rem;
    z-index: 50;
    color: red;
    font-family: "digital-7";
    font-size: 2.5rem;
    animation: danger__neon 1s infinite alternate;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 0.5rem 1rem;
    border: 2px solid red;
    border-radius: 0.5rem;
}

.time__warning__popup {
    position: absolute;
    top: 2rem;
    left: 50%;
    z-index: 50;
    color: #ff9900;
    font-family: "digital-7";
    font-size: 3rem;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 0.5rem 2rem;
    border: 2px solid #ff9900;
    border-radius: 0.5rem;
}



.success__text {
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
}

.input__password__section {
    display: flex;
    justify-content: center;
    width: 100%;
}