* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

body {
    padding: clamp(0.5rem, 1vw, 1rem);

    color: rgb(255 255 255 / 1);
    background-color: rgb(0 0 0 / 1);

    font-size: clamp(12px, 0.9vw, 16px);
}

.touch-none {
    touch-action: none;
}

#fullscreen-button {
    position: fixed;
    width: 3rem;
    height: 3rem;

    background-color: #ffffff6b;
    z-index: 1000000;

    top: 1.8rem;
    left: 1.8rem;

    border-radius: 0.8rem;
    cursor: pointer;
}

#fullscreen-button::after {
    content: '';
    display: block;
    margin: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);

    background-image: url(fullscreen.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

#fullscreen-button-checkbox:checked ~ #fullscreen-button::after {
    background-image: url(fullscreen_exit.svg);
}

#main {
    width: 100%;
    height: 100%;

    padding: clamp(0.75rem, 1.5vw, 1.25rem);

    border: 1px solid rgb(30 41 59 / 1);
    border-radius: clamp(18px, 2vw, 30px);

    background-image: linear-gradient(to bottom right, #040b16, #000);

    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    overflow: hidden;
}

/* Conteneur principal */
#main > div {
    width: 100%;
    height: 100%;

    display: flex;
    gap: clamp(0.75rem, 1vw, 1.25rem);

    overflow: hidden;
}

/* Colonnes */
#main > div > div {
    min-width: 0;
    min-height: 0;

    overflow: hidden;
}

/* Proportions responsive */
#main > div > div:nth-child(1) {
    flex: 5;
}

#main > div > div:nth-child(2) {
    flex: 3;
}

#main > div > div:nth-child(3) {
    flex: 2;
}

/* TABLETTE */
@media (max-width: 1200px) {
    body {
        font-size: 13px;
    }

    #main {
        padding: 0.75rem;
    }

    #main > div {
        gap: 0.75rem;
    }
}

/* PETITS ÉCRANS / TABLETTES PORTRAIT */
@media (max-width: 900px) {
    #main > div {
        flex-direction: column;
    }

    #main > div > div:nth-child(1),
    #main > div > div:nth-child(2),
    #main > div > div:nth-child(3) {
        flex: 1;
    }
}

/* Empêche les éléments Tailwind de déborder */
img,
svg,
canvas,
video {
    max-width: 100%;
    height: auto;
}

/* Textes très grands -> responsive */
.text-7xl {
    font-size: clamp(2rem, 5vw, 4.5rem) !important;
}

.text-6xl {
    font-size: clamp(1.5rem, 4vw, 3.75rem) !important;
}

.text-5xl {
    font-size: clamp(1.5rem, 3.5vw, 3rem) !important;
}

.text-4xl {
    font-size: clamp(1.2rem, 2.5vw, 2.25rem) !important;
}

.text-3xl {
    font-size: clamp(1rem, 2vw, 1.875rem) !important;
}

.text-2xl {
    font-size: clamp(0.95rem, 1.6vw, 1.5rem) !important;
}

.text-xl {
    font-size: clamp(0.85rem, 1.3vw, 1.25rem) !important;
}

/* Sliders responsive */
#steering-track {
    height: clamp(90px, 12vw, 144px) !important;
}