/* caca.css */

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #0a0a0a;
    font-family: 'Courier New', Courier, monospace;
    background-image: url('/images/damn2.jpg');
    background-size: cover;
    color: #dcdcdc;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.title {
    font-family: "Space Grotesk", sans-serif;
  	font-optical-sizing: auto;
  	font-weight: 700;
  	font-style: normal;
    text-align: center;
    margin-top: 50px;
    color: #ffcc00;
    font-size: 120px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
}

.sure, .expl {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 10px auto;
    padding: 0 15px;
    max-width: 800px;
    text-align: justify;
    color: aliceblue;
    font-style: italic;
}


.lore {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    padding: 0 15px;
    margin: 0 auto;
    max-width: 800px; /* <-- limite la largeur */
    color: #dcdcdc;
    line-height: 1.8;
    text-align: justify;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Pour les petits écrans */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .sure, .expl {
        font-size: 1rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .sure, .expl {
        font-size: 0.9rem;
    }
}


#scrim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease-in-out;
}

@keyframes invertFlash {
    0%   { filter: invert(1) brightness(3); transform: translate(0px, 0px); opacity: 1; }
    10%  { filter: invert(0); transform: translate(-5px, 2px); opacity: 0.2; }
    20%  { filter: invert(1); transform: translate(5px, -3px); opacity: 1; }
    30%  { filter: invert(0.5); transform: translate(-4px, 4px); opacity: 0.3; }
    40%  { filter: invert(1); transform: translate(3px, -5px); opacity: 1; }
    50%  { filter: invert(0); transform: translate(-3px, 1px); opacity: 0.2; }
    60%  { filter: invert(1); transform: translate(4px, -2px); opacity: 1; }
    70%  { filter: invert(0.3); transform: translate(-2px, 3px); opacity: 0.4; }
    80%  { filter: invert(1); transform: translate(2px, -1px); opacity: 1; }
    90%  { filter: invert(0); transform: translate(0px, 0px); opacity: 0.1; }
    100% { filter: none; transform: none; opacity: 0; }
}
