/* 🌟 GLOBAL STYLES - Exclusif à Dropletter */
body {
    font-family: "Arial", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to bottom, rgb(0,0,16), rgb(16,0,0));
    margin: 0;
	overflow: auto;
	padding-bottom: 6rem;
}

a {
    text-decoration: none;
}

/* 🌟 HEADER */
.dropletter-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 20vh;
    background: linear-gradient(to right, #e2e2fd, #a2c0fa, #e2e2fd);
    box-shadow: 0px 0.5rem 0.8rem rgba(0, 0, 0, 0.2);
    padding: 1rem;
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
}

.app-header {
    display: flex;
    flex-direction: row; /* Always arrange items horizontally */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    gap: 2.5rem; /* Spacing between elements */
    height: 100%; /* Ensure the container takes full height */
}

.header-icon {
    width: 8vw;
    max-width: 5rem;
    height: auto;
    /* Removed margin-top to keep vertical alignment */
}

.header-title {
    width: 30vw;
    max-width: 25rem; /* ✅ Évite qu'elle devienne trop grande */
    display: flex; /* Use flexbox to control alignment */
    align-items: center; /* Center the title content vertically */
    height: auto;
    animation: float 5s infinite ease-in-out;
    /* Optionally, remove or adjust align-self if not needed */
}


/* Animation pour flotter légèrement */
@keyframes float {
    0% { transform: translateY(0rem); }
    50% { transform: translateY(-0.25rem); }
    100% { transform: translateY(0rem); }
}

/* 🌟 LANGUAGES */
.lang-select {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.flag {
    width: 2.5rem;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

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

/* 🌟 CONTENU PRINCIPAL */
.dropletter-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    text-align: center;
}

.dropletter-content h2{
	color: #00EE22;
	text-align: center;
}
	


/* 🌟 Conteneur principal des carrés animés */
.background-boxes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* 🌟 Style des carrés animés */
.animated-square {
    position: absolute;
    width: 120px; /* Taille carrée */
    height: 120px;
    border-radius: 20px; /* Coins arrondis */
    opacity: 0.4; /* Transparence */
    backdrop-filter: blur(10px); /* Effet de flou */
    animation-duration: 12s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-direction: alternate; /* ✅ Fait un aller-retour fluide */
}

/* 🌟 Animations */
@keyframes move-up-left {
    from { transform: translate(0, 0); }
    to { transform: translate(-40px, -40px); }
}

@keyframes move-up-right {
    from { transform: translate(0, 0); }
    to { transform: translate(40px, -40px); }
}

@keyframes move-down {
    from { transform: translate(0, 0); }
    to { transform: translate(0px, 50px); }
}





/* 🌟 INTRODUCTION */
.game-intro {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.game-btn {
    width: 2rem; 
    height: auto;
    vertical-align: middle;
    margin-right: 0.4rem;
}



/* 🌟 GAME MODES */
.game-modes {
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ Centre les modes horizontalement */
     /* ✅ Assure un bon alignement du texte */
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
    padding: 1rem;
}

.mode {
    background: #fff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0px 0.5rem 1rem rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    max-width: 700px;
    margin: 1rem auto;
}



/* 🌟 Style des boîtes semi-transparentes pour le texte */
.text-box {
    background: rgba(0, 0, 0, 0.6); /* ✅ Noir semi-transparent */
    padding: 1.5rem;
    border-radius: 12px; /* ✅ Bords arrondis */
    color: white; /* ✅ Texte blanc pour un bon contraste */
    box-shadow: 0px 0.5rem 1rem rgba(0, 0, 0, 0.3); /* ✅ Légère ombre */
    max-width: min(90vw, 50rem); /* ✅ Responsive : max 50rem (~800px) mais s'adapte en % */
    margin: 1rem auto; /* ✅ Centre la box */
	text-align: left; /* texte aligné à gauche */
	margin-left: auto;
    margin-right: auto;
}

.text-box strong{
	font-style: italic;
}


.text-box ul li img.game-btn {
    width: 2rem;
    height: auto;
    margin-right: 0.5rem;
}

.text-box h3 {
    color: cyan; /* Couleur cyan pour les titres */
    text-transform: uppercase; /* Majuscules */
    text-align: center; /* Titre centré */
}


.text-box p, .text-box ul {
    text-align: left; /* Texte aligné à gauche */
    color: white; /* Texte blanc clair */
    line-height: 1.5; /* Espacement amélioré */
}




/* 🌟 STYLE GÉNÉRAL DES RÈGLES */
.main-rules {
    text-align: left;
    max-width: 60ch;
    margin: 0 auto;
}

.main-rules h3 {
    text-align: center;
    color: #FFD700; /* Jaune Or */
    font-size: 1.6rem;
    margin-bottom: 1rem;
}



.rule-button {
    display: flex;
    flex-direction: column; /* ✅ Met l'icône au-dessus du texte */
    align-items: center; /* ✅ Centre le tout */
    text-align: center; /* ✅ Aligne le texte sous l’icône */
    gap: 0.5rem; /* ✅ Espacement entre le bouton et son texte */
    margin-bottom: 1rem; /* ✅ Sépare chaque bouton */
}

/* ✅ Ajuste la taille des boutons pour éviter qu’ils soient trop petits/grands */
.rule-button img {
    width: min(15vw, 3rem); /* ✅ Responsive : max 3rem mais s’adapte en 15vw */
    height: auto;
}

/* ✅ Style de la séparation */
.rule-divider {
    width: 60%; /* ✅ Barre incomplète pour un effet léger */
    height: 1px;
    background: rgba(255, 255, 255, 0.2); /* ✅ Séparation subtile */
    margin: 1rem auto; /* ✅ Centre la barre */
}

.rule-button .dropper-icon {
    max-width: unset;
    width: 1.2rem;
}








.game-btn {
    width: 2.5em;  /* Taille adaptable en fonction du texte */
    height: auto;
}

/* 🌟 STYLE SAUVEGARDE */
.rule-save {
    text-align: center;
    font-style: italic;
    color: #FFD700; /* Jaune Or */
}



/* 🌟 Style des icônes Dropper */
.dropper-requirement {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}

.dropper-icon {
    width: 1.2em; /* Taille ajustable avec le texte */
    height: auto;
	display: inline-block;
	margin-left: 0.5em;
	vertical-align: middle;
	
	
}





/* ✅ Adaptation pour petits écrans */
@media screen and (max-width: 768px) {
    .text-box {
        padding: 1rem;
        font-size: 0.9rem;
    }
	
	
	.main-rules {
        max-width: 90%;
    }


    .game-btn {
        width: 2.5em;
    }

    .dropper-icon {
        width: 1em;
    }
	
}

/* 🌟 Modification de la couleur du texte */
.text-box h2, .text-box h3 {
    color: #ffcc00 ; /* ✅ Titre en jaune clair pour un bon contraste */
}

.mode h3 {
    color: cyan; /* ✅ Couleur cyan */
    text-transform: uppercase; /* ✅ Met en MAJUSCULES */
    font-weight: bold; /* ✅ Renforce la lisibilité */
}

.text-box p {
    color: #ffffff; /* ✅ Texte en blanc */
}


.text-box p {
    text-align: left;
}

/* 🌟 BOUTON DE TÉLÉCHARGEMENT */
.download {
    margin-top: 2rem;
	 text-align: center;
}

.download h2 {
    font-size: 1.5rem;
    color: #00EE22;
}

.download .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4a90e2, #8e44ad);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 2rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
	text-align: center;
}

.download .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0.3rem 0.7rem rgba(0, 0, 0, 0.3);
}


/* 🌟 FOOTER */
.dropletter-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 6vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #000000DD, #111111DD, #000000DD);
    box-shadow: 0px -0.4rem 0.6rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    z-index: 1000;
}

/* ✅ Assure que l'icône est bien après le texte et reste alignée */
.contact {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* ✅ Espace correct entre le texte et l'icône */
}

/* ✅ Style du texte */
.contact p {
    font-family: "Oswald", "Poppins", Arial, sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #007BFF;
	text-shadow: 0.05em 0.05em 0.2em rgba(255,255,255,0.2);
    margin: 0;
}

/* ✅ Icônes Privacy & Mail : Taille et effet hover */
.privacy-icon img,
.mail-icon img {
    width: 2rem; /* Taille uniforme */
    height: auto;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.privacy-icon,
.mail-icon {
    margin-left: 1rem; /* Espacement entre les icônes */
}


.privacy-icon:hover img,
.mail-icon:hover img {
    transform: scale(1.2);
}

.privacy-icon:hover img {
    content: url("../images/main/privacy_icon_hover.png");
}

.mail-icon:hover img {
    content: url("../images/main/mail_logo_hover.png");
}

/* ✅ Lien de contact */
.contact a {
    color: #007BFF;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.contact a:hover {
    transform: scale(1.1);
    color: #0056b3;
}






.screenshot {
    width: 20vw;
    max-width: 200px;
    border-radius: 12px; /* Coins arrondis */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.3); /* Contour léger */
}

.screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.5);
}

/* 🌟 Lightbox (affichage en grand) */
/* 🌟 Fullscreen Image (Effet d'agrandissement au clic) */
.fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
}

/* 🌟 Image en plein écran */
.fullscreen-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(255, 255, 255, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

/* 🌟 Effet d'apparition */
.fullscreen.show .fullscreen-content {
    transform: scale(1);
    opacity: 1;
}





/* 🌟 RESPONSIVE - MOBILE */
@media screen and (max-aspect-ratio: 1/1) {
    .dropletter-header {
        height: 12vh;
    }

    .header-title {
        width: 55vw;
        max-width: 25rem;
    }

    .header-icon {
        width: 8vw;
        max-width: 7rem;
    }

    .game-intro, .mode p, .modes-summary {
        font-size: 1rem;
    }

    .download h2 {
        font-size: 1.3rem;
		text-align: Center;
    }

    .download .btn {
        font-size: 1.1rem;
    }
	
	
	    /* FOOTER MOBILE */
    footer {
        height: 6vh;
        padding: 1vh;
    }


	.contact img {
        width: 1.5rem; /* ✅ Icône de contact plus grande */
    }
	
}

/* 🌟 RESPONSIVE - LANDSCAPE */
@media screen and (min-aspect-ratio: 1/1) and (max-height: 879px) {
    .dropletter-header {
        height: 30vh;
    }

    .header-title {
        width: 35vw;
        max-width: 20rem;
    }

    .header-icon {
        width: 6vw;
        max-width: 6rem;
    }

    .game-intro, .mode p, .modes-summary {
        font-size: 1rem;
    }

    .download .btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
	
	
	 footer {
        height: 5vh;
        padding: 0.5vh;
    }

    footer p {
        font-size: 1rem;
    }

    .contact img {
        width: 1.5rem;
    }
}
