@import url("input.css");
@import url("basic.css");
@import url("compo.css");

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
    user-select: none;
}

::-webkit-scrollbar {
  width: 10px;       
  height: 10px;      
}


::-webkit-scrollbar-track {
  background: #f0f0f032;
  border-radius: 10px;
}


::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffc40056, #cca30044); 
  border-radius: 10px;
  transition: 0.2s;
}


::-webkit-scrollbar-thumb:hover { 
     background: linear-gradient(180deg, #ffc400, #cca300);
     transition: 0.5s;
  opacity: 100%;
  cursor: pointer;
}


body {
    background-color: #302c20;
}

strong {
    margin: 0;
    padding: 0;
    color: rgb(255, 244, 198);
}

td {
    padding: 0 10px;
}

.prop {
    padding: 10px;
    background-color: #1f1f1f52;
    border-radius: 10px;
}


body {
  font-family: 'Open Sans', sans-serif;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 1; /* Opacité du fond */
}

#filter-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 101%;
    height: 101%;
    margin: -2px;
    object-fit: cover;
    z-index: -1;
    opacity: 80%;
    background: #301f06;
    background: linear-gradient(90deg, rgba(48, 31, 6, 1) 0%, rgba(20, 15, 2, 1) 100%);
}

.header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 100;
}

.header.drop {
    animation: drop 1s;
}

header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    top: 0;
    left: 0;
}

.logo {
    height: 40px;
    width: 40px;
    margin-right: 10px;
}

.site-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.user-menu {
    position: relative;
    display: flex;
    min-width: 200px;
    flex-direction: column;
    align-content: center;
}
.user-menu button{
    min-width: 200px;
}

.user-button {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-left: 10px;
}

.user-button:hover {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    transform: scale(1.05);
}

@keyframes drop {
    0% {
        opacity: 0;
        margin-top: -50px;
    } 100% {
        opacity: 1;
        margin-top: 0;
    }
}

.dropdown-content {
    display: none;
    background-color: #0000004f;
    flex-direction: column;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    width: 80%;
    text-align: center;
    align-self: center;
    animation: drop 0.5s;
    border-radius: 15px;
    z-index: 1;
}

.dropdown-content a {
    border-radius: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    color: #ffffffbb;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ffffff77;
}

.dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.dropdown-submenu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-submenu a:hover {
    background-color: #f1f1f1;
}

.delete-account {
    color: red !important;
}

.user-menu:hover .dropdown-content,
.dropdown-content:hover .dropdown-submenu {
    display: flex;
}

.game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 3;
}.game-container h1{
    margin-right: 10px;
}.game-container p{
    color: #ffc400;
}

#start-button {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
    padding: 15px 30px;
    font-size: 1.3em;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    animation: fadeInUp 1s ease-in-out;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

#start-:hover {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    transform: scale(1.05);
}

#game-image-container {
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
}

#game-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

#game-image:hover {
    transform: scale(1.05);
}

#return-home-button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.3em;
    background: linear-gradient(90deg, #28a745, #218838);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

#return-home-button:hover {
    background: linear-gradient(90deg, #218838, #28a745);
    transform: scale(1.05);
}

#game-count {
    width: 100px;
    height: 30px;
    padding: 5px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
    text-align: center;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#game-count:focus {
    border-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    outline: none;
}

#feedback {
    position: absolute;
    top: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    width: auto;
    text-align: center;
    animation: fadeInDown 1s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#score-container {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 25px;
    border-radius: 25px;
    width: auto;
    text-align: center;
    margin-top: 10px;
    animation: fadeInUp 1s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.correct-answer {
    animation: correctAnimation 1s ease-in-out;
}

@keyframes correctAnimation {
    0% {
        filter: grayscale(100%) brightness(100%);
    }
    50% {
        filter: grayscale(0%) brightness(150%) sepia(1);
    }
    100% {
        filter: grayscale(100%) brightness(100%);
    }
}

.wrong-answer {
    animation: wrongAnimation 1s ease-in-out;
}

@keyframes wrongAnimation {
    0% {
        filter: grayscale(100%) brightness(100%);
    }
    50% {
        filter: grayscale(0%) brightness(150%) hue-rotate(180deg);
    }
    100% {
        filter: grayscale(100%) brightness(100%);
    }
}

.input-bar {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

footer {
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 100%;
    color: #000000;
    text-align: center;
    padding: 0px 0;
    font-size: 0.8em;
    z-index: 4;
}

#suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    max-height: 125px;
    overflow-y: auto;
    margin-top: 5px;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f1f1f1;
}

.input-bar {
    position: relative;
    width: 70%;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: 0;
    animation: fadeInUp 1s ease-in-out;
}

#games-history .list, .list-contaner .list{
    border : solid 1px #ffcc0042
}

/* Bouton "Nos liens" */
.contact-us-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.contact-us-button:hover {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    transform: scale(1.05);
}

/* Conteneur pour les boutons de contact */
.group-contact-buttons{
    margin-left: 30px;
    position: relative;
    height: 100vh; /* Prend toute la hauteur de la fenêtre */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5mm;
}

/* Style de base pour les boutons de contact */
.contact-button {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: white;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 25px;
    font-size: 1.4em;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Effet de survol pour les boutons de contact */
.contact-button:hover {
    background: linear-gradient(90deg, #0657b9, #04aad8);
    transform: scale(1.05);
}

/* Style pour les logos dans les boutons */
.contact-logo {
    width: 24px;
    height: 24px;
}

.form-settings{
    display: flex;
    flex-direction: row;
}

@media (max-width: 768px) {
    .input-bar {
        width: 90%;
        padding: 10px;
    }


    button {
        padding: 10px 20px;
        font-size: 1em;
    }
}

input[type=file]::file-selector-button {
  margin-right: 8px;
  border: none;
  background: #ffcc00;
  padding: 8px 12px;
  color: #080808;
  cursor: pointer;
  border-radius: 10px;
}

input[type=file]::file-selector-button:hover {
  background: #ffc400;
}
