html, body {
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    font-family: 'Pacifico', cursive;

}

html {
    background-image: url('sumobodybg.png');
    background-repeat: no-repeat;
    background-size: cover; /* Remplir toute la fenêtre, même si écrasé */
    background-position: center;
    background-attachment: fixed;
    color: #333;
}

.background-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}


@media (max-width: 768px) {
    html {
        background-attachment: scroll; /* fix cause des bugs sur mobile */
        background-size: cover; /* Ajuster l'image de fond pour couvrir l'écran */
    }
}



.palmier {
    position: absolute;
    font-size: 2rem;
    animation: floatUp linear forwards;
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) translateX(var(--drift)) rotate(var(--rotation));
        opacity: 0;
    }
}

.beach {
    position: absolute;
    font-size: 2rem;
    pointer-events: none;
    user-select: none;
    transform: translate(-50%, -50%);
    transform-origin: center;
    animation: popUp 2s ease-out forwards;
}

@keyframes popUp {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2) translateY(-50px);
        opacity: 0;
    }
}

.title{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
}

.subtitle {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.button-container{
    position: absolute;
    top: 0px;
    right: 5px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.btnHover{
    /* faire un effet de zoom sur le bouton au survol */
    transition: transform 0.3s ease;
}

.btnHover:hover {
    transform: scale(1.1);
}

.image-btn {
    width: 60px;
    height: 60px;
    margin: 5px;
}



.footer{
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
    user-select: none;
    width: 100%;
    text-align: center;
}