@import url('https://fonts.googleapis.com/css2?family=Metropolis:wght@600&display=swap');

.hidden{
    display: none;
}

:root{
    --button-color: #E493B3;
    --bg-color: #B784B7;
    --ext-text-color: #8E7AB5;
    --bgg-color: #f7ede6;
    --text-color: rgb(21, 20, 20);
}

.darkmode{
    --button-color: #b06282;       
    --bg-color: #705070;           
    --ext-text-color: #bca7e8;     
    --bgg-color: #221f26;
    --text-color: white;
}

body{
    font-family: 'Metropolis', sans-serif;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    margin: 0;
    min-height: 100vh;
    max-height: min-content;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2c2c2c;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
}

#start-button, #mode-button, #final-mode-button{
    font-family: 'Metropolis', sans-serif;
    font-weight: 600;
    width: 150px;
    height: 60px;
    background:  var(--button-color);
    color: var(--text-color);
    font-size: 20px;
    border-radius: 20px;
    cursor: pointer;
} /*eventualmente mettere ,#mode-button vicino a start-button*/

#buttons{
    display: flex;
    justify-content: space-between;
    align-items: center;           
    width: 96%;
}

#instruction {
    background-color: var(--bg-color);
    width: 540px;
    height: 400px;
    padding: 30px;
    border-radius: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

#rules{
    background-color: var(--button-color);
    width: 86%;      
    padding: 8px 25px;
    gap: 6px;
    color: var(--text-color);
    font-size: 20px;
    border-radius: 20px;
    line-height: 1; 
}

#bottom-corner, #upper-corner{
    color: color-mix(in srgb, var(--text-color) 40%, transparent);
    font-size: 19.5px;
}

#title, #bottom-corner,#upper-corner{
    text-align: center;
}

#watermark{
    color: color-mix(in srgb, var(--text-color) 40%, transparent);
    font-size: 10px;
    text-align: center;
    margin-top: -12px;
}

#description{
    width: 90%;
    margin: 0 auto;
    font-size: 18px;
    text-align: justify;
    line-height: 1.12;
}

#advice{
    width: 90%;
    margin: 0 auto;
    font-size: 10px;
    text-align: center;
    font-weight: 300;
}

#thanks{
   font-size: 10px;
   text-align: center;
   font-weight: 300; 
   margin-top: -35px;
}


#game-screen{
    background-color: var(--bgg-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 75%;
    max-width: 600px;
}

#game-screen.hidden {
    display: none;
}

#numbers{
    display: flex;
    justify-content: space-between;
    align-items: center;           
    width: 100%;
    margin-bottom: -15px;
}

#question-number, #question-percentage {
    margin-top: 5px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 400;
    color: var(--ext-text-color);
}

#image-container{
    position: relative;
    display: inline-block;
}

#round-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;   
}

#image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: soft-light;
    mask-size: cover;
    -webkit-mask-size: cover;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    
}

#next-button, #score-button {
    font-family: 'Metropolis', sans-serif;
    font-weight: 600;
    background: var(--button-color);
    color: var(--text-color);
    font-size: 15px;
    border-radius: 20px;
    cursor: pointer;
    width: 40%;        
    max-width: 200px;    
    padding: 10px 20px;
}

#score-button {
    margin-top: 10px;
    margin-inline: auto;
    display: block;     
}

#display{
    margin-top: -15px;
    margin-bottom: -15px;
    border-radius: 20px;
    text-align: center;
    background: transparent !important;
}

#question-text{
    font-size: 20px;
    color: var(--text-color);
}

input{
    display: block;
    width: 100%;
}

#score-popup {
    background-color: var(--bg-color);
    width: 80%;
    max-width: 400px;
    height: auto;
    padding: 50px 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#score-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#score-overlay.hidden {
    display: none;
}


#hue {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 100%;
}

#hue::-webkit-slider-runnable-track {
    background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red);
    height: 15px;
    border-radius: 10px;
}

#hue::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;          
    height: 20px;         
    border-radius: 50%;
    background: rgba(255, 255, 255, 0);
    border: 2px solid #000; 
    cursor: pointer;
    margin-top: -2px; 
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

#saturation {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 100%;
}

#saturation::-webkit-slider-runnable-track {
    background: linear-gradient(to right, hsl(var(--current-hue, 0), 0%, 50%), hsl(var(--current-hue, 0), 100%, 50%));
    height: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

#saturation::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;          
    height: 20px;         
    border-radius: 50%;
    background: rgba(255, 255, 255, 0);
    border: 2px solid #000; 
    cursor: pointer;
    margin-top: -2px; 
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

#lightness {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 100%;
}

#lightness::-webkit-slider-runnable-track {
    background: linear-gradient(to right, hsl(var(--current-hue, 0), var(--current-saturation, 100%), 0%), hsl(var(--current-hue, 0), var(--current-saturation, 100%), 50%), hsl(var(--current-hue, 0), var(--current-saturation, 100%), 100%));
    height: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

#lightness::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;          
    height: 20px;         
    border-radius: 50%;
    background: rgba(255, 255, 255, 0);
    border: 2px solid #000; 
    cursor: pointer;
    margin-top: -2px; 
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

#container {
  height: 10px;
  width: 100%; 
  background-color: #ccc;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 20px auto;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--button-color);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 20px;
  transition: width 0.5s ease;
}

@keyframes progress-animation {
  0% { width: 0%; }
  100% { width: 100%; }
}


#final.hidden{
    display: none;
}

#final{
    background-color: var(--bg-color);
    width: 500px;
    min-height: 250px;
    padding: 20px;
    border-radius: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    position: relative;
}

#repeat{
    font-family: 'Metropolis', sans-serif;
    font-weight: 600;
    width: 200px;
    height: 60px;
    background:  var(--button-color);
    color: var(--text-color);
    font-size: 20px;
    border-radius: 20px;
    cursor: pointer;
}

#final-buttons{
   display: flex;
    justify-content: space-between;
    align-items: center;           
    width: 96%; 
}

#final-gif{
    width: 96%;           
    height: auto;           
    border-radius: 20px;       
    display: block;  
    margin-top: -25px; 
    box-shadow: 3px 5px 7px rgba(0, 0, 0, 0.3);      
}