@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cactus+Classical+Serif&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --header-bg: rgba(255, 255, 255, 0.2);
    --header-shadow: rgba(0, 0, 0, 0.1);
    --hover-color: #c1d8f0;
    --text-color: white;
    --font-family: 'Open Sans', sans-serif;
    --background-color: hsl(210.45deg 69.07% 19.02%);
}

/*Global page styles
-------------------------------------------------*/

body {
    color: var(--text-color);
    margin: 0;
    font-family: var(--font-family);
    background: var(--background-color) center/cover no-repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/*Header and footer styles
-------------------------------------------------*/

#header, #footer {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 10px var(--header-shadow);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease-in-out;
    width: 100%;
}

/*Menu styles
-----------------------------------------------------*/

nav, #footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

img.logo {
    width: 100px;
    margin-right: auto;
}

nav ul {
    display: flex;
    gap: 20px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

a {
    color: var(--text-color);
    text-decoration: none;
    padding: 14px 20px;
    font-size: 18px;
    transition: color 0.3s ease;
}

ul li:hover a, #header a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/*Login page
---------------------------------------------------*/

form{
    height: 400px;
    width: 400px;
    background-color: rgba(255,255,255,0.13);
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 40px rgba(8,7,16,0.6);
    padding: 40px 25px;
}

form *{
    font-family: 'Poppins',sans-serif;
    color: #ffffff;
    letter-spacing: 0.5px;
    outline: none;
    border: none;
}

form h3{
    font-size: 32px;
    line-height: 30px;
    text-align: center;
    margin-top: 0px;
}

label{
    display: block;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
}

input{
    display: block;
    height: 50px;
    width: 95%;
    background-color: rgba(255,255,255,0.07);
    border-radius: 3px;
    padding: 0 10px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 300;
}
::placeholder{
    color: #e5e5e5;
}

button{
    margin-top: 50px;
    width: 100%;
    background-color: #ffffff;
    color: #080710;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
}

/* Select Styles
---------------------------------------------------*/

select {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 300;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: background-color 0.3s ease, border 0.3s ease;
}

select:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

select:focus {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

select option {
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 60%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #ffffff;
    font-size: 16px;
}

/*Content styles
---------------------------------------------------*/

.main-content {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.line-1 {
    width: 11.5em;
    border-right: 2px solid rgba(255, 255, 255, .75);
    font-size: 180%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

p {
    font-family: var(--font-family);
    color: var(--text-color);
}

h1 {
    margin-left: 10px;
}

.anim-typewriter {
    animation: typewriter 2s steps(44) 1s 1 normal both, blinkTextCursor 500ms steps(44) infinite normal;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 11.5em; }
}

@keyframes blinkTextCursor {
    from { border-right-color: rgba(255, 255, 255, .75); }
    to { border-right-color: transparent; }
}

.button_login_admin_user {
    display: flex;
    justify-content: center;
    font-family: var(--font-family);
    font-size: 2rem;
    color: #FAFAFA;
    text-transform: uppercase;
    padding: 30px 30px;
    border-radius: 10px;
    border: 2px solid #FAFAFA;
    background: #252525;
    box-shadow: 3px 3px white;
    cursor: pointer;
    margin: 20px 100px;
}


.button_login_admin_user:active {
    box-shadow: none;
    transform: translate(3px, 3px);
}

/*Page d'accueil
---------------------------------------------------*/
#welcome {
    display: block;
    font-size: 75px;
    text-align: center;
    margin-top: 200px;
    font-family: "Kanit", sans-serif;
    animation: 2s anim-lineUp ease-out, 5s wave-gradient linear infinite;
    background: linear-gradient(90deg, #ffdf00, #ffaf00, #ff8700, #ff5f00);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#welcome-text {
    display: block;
    text-align: center;
    font-family: "Kanit", sans-serif;
    animation: 4s anim-lineUp ease-out, 5s wave-gradient linear infinite;
    font-size: 25px;
    margin-top: 10px;
}


@keyframes anim-lineUp {
    0% {
        opacity: 0;
        transform: translateY(80%);
    }
    20% {
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: translateY(0%);
    }
    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

@keyframes wave-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/*Quiz Page Styles
---------------------------------------------------*/

h2 {
    text-align: center;
    font-size: 2rem;
    margin-top: 20px;
    color: var(--text-color);
    font-family: 'Kanit', sans-serif;
}

h1 {
    text-align: center;
    font-size: 1.25rem;
    margin: 20px 0;
    color: var(--text-color);
    font-family: 'Open Sans', sans-serif;
}

.vue_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    height: 460px;
    width: 460px;
    background-color: rgba(255, 255, 255, 0.13);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
}

.vue_form fieldset {
    border: none;
    width: 100%;
}

.vue_form legend {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-family: 'Kanit', sans-serif;
}

.vue_form p {
    margin: 10px 0;
    font-size: 1em;
    color: var(--text-color);
    font-family: 'Open Sans', sans-serif;
}

.vue_form input[type="radio"] {
    margin-left: 10px;
    transform: scale(0.6);
}

.vue_form input[type="submit"] {
    margin-top: 20px;
    width: 100%;
    background-color: #ffffff;
    color: #080710;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.vue_form input[type="submit"]:hover {
    background-color: var(--hover-color);
}

#quiz_finished {
    display: block;
    font-size: 75px;
    text-align: center;
    margin-top: 200px;
    font-family: "Kanit", sans-serif;
    animation: 2s anim-lineUp ease-out, 5s wave-gradient linear infinite;
    background: white;
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*File d'attente
---------------------------------------------------*/

#queue {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-height: 50vh;
    margin: 0;
    overflow: hidden;
}
.joueur {
    width: calc(20% - 20px);
    padding: 25px;
    border: 1px solid #4067ac;
    border-radius: 10px;
    background-color: #4067ac;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

/*Message d'alerte non JavaScript, rouge -> alerte mauvaise, vert -> bonne alerte
---------------------------------------------------*/

.alert {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    transition: top 1.5s ease, opacity 1.5s ease;
    opacity: 1;
    animation: hideAlert 1.5s forwards;
    animation-delay: 1.5s;
}

.green_alert {
    background-color: #4CAF50;
    color: white;
    top: 20px;
}

.red_alert {
    background-color: #f44336;
    color: white;
    top: 20px;
}

@keyframes hideAlert {
    to {
        top: 0;
        opacity: 0;
    }
}

/*Score table
---------------------------------------------------*/
.container-encadre {
    background-color: rgba(255, 255, 255, 0.13);
    position: relative;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
    padding: 40px 25px;
    margin: 20px;
    text-align: center;
}

.bouton_scores {
    display: flex;
    justify-content: center;
    font-family: var(--font-family);
    font-size: 2rem;
    color: #FAFAFA;
    text-transform: uppercase;
    padding: 30px 30px;
    border-radius: 10px;
    border: 2px solid #FAFAFA;
    background: #a53636;
    box-shadow: 3px 3px white;
    cursor: pointer;
    margin: 50px 750px 20px;
    text-decoration: none;
    text-align: center;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-top: 50px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-color: #f4f4f4;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    width: 150px;
    text-align: center;
}

.podium-item.first {
    order: 2;
    background-color: #e1ad21;
    height: 200px;
}

.podium-item.second {
    order: 1;
    background-color: #c0c0c0;
    margin-top: 20px;
    height: 175px;
}

.podium-item.third {
    order: 3;
    background-color: #a76726;
    margin-top: 40px;
    height: 150px;
}

.podium-rank {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.podium-name, .podium-score {
    font-size: 1.2rem;
    margin: 5px 0;
}

.best-classe {
    margin-top: 30px;
    padding: 15px;
    background-color: #007BFF;
    color: white;
    text-align: center;
    border-radius: 10px;
    margin: 20px 725px;
}

.best-classe h2 {
    margin: 0;
    font-size: 1.5rem;
}

.best-classe p {
    margin: 5px 0 0;
    font-size: 1.2rem;
}

.bouton_scores:hover {
    background-color: #0056b3;
}


/*Footer styles
-------------------------------------------------------*/

footer {
    margin-top: auto;
}

#footer img {
    margin: 0 20px;
}

#footer #Univ {
    width: 75px;
}

#footer #RT {
    width: 275px;
}

#footer #MP {
    width: 5%;
}