@font-face {
    font-family: 'Buixots';
    src: url('fonts/Buixots.eot');
    src: url('fonts/Buixots.eot?#iefix') format('embedded-opentype'),
         url('fonts/Buixots.woff') format('woff'),
         url('fonts/Buixots.ttf') format('truetype'),
         url('fonts/Buixots.svg#Buixots') format('svg');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
	font-weight: normal;
	background: #287CFF;
	 color: #4a4a4a;
}
.logo {
margin-top:100px;
}

.responsive-image {
    max-width: 100%;
    height: auto;
}

#instruction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above other content */
}

.overlay-content {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#final-game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 252, 86, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000; /* Increase z-index to ensure it's on top */
}

.final-overlay-content {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Additional styling as needed */
}






.master-container {
    margin: 30px; /* Fixed margin around the container */
    padding: 20px; /* Padding inside the container */
    border-radius: 10px; /* Rounded corners */
    background-color: white; /* Background color of the container */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow for depth */

    /* These will make the container cover the available area minus margins */
    width: calc(100% - 60px); /* Full width minus the horizontal margin */
    height: calc(100vh - 60px); /* Full height minus the vertical margin */
    box-sizing: border-box; /* Includes padding and border in the width and height */
    position: absolute;
    top: 0;
    left: 0;

}

@media (max-width: 800px) {
    .master-container {
        margin: 10px; /* Smaller margin for smaller screens */
        width: calc(100% - 20px); /* Adjust width for smaller screens */
        height: calc(100vh - 20px); /* Adjust height for smaller screens */
    }
}
.animate__delayed {
    animation-delay: 2s; /* Delays the animation start by 2 seconds */
}

.titolsnivells{
       font-size: 44px;
text-transform: uppercase;	
color:#287CFF; 
}
.nivells{
       font-size: 22px;
text-transform: uppercase;	
font-family:'Buixots';
color: #5b5b5b;
}
.titolgame{
       font-size: 44px;
text-transform: uppercase;	
color:#287CFF; 
font-family:'Buixots';
}
.instructions{
       font-size: 46px;
text-transform: uppercase;	
color:#287CFF; 
font-family:'Buixots';
}
.instructions-text{
font-size: 18px;
}

#completion-message {
    font-family: 'Buixots', Arial, sans-serif;
    font-size: 54px;
    color: #333;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	text-transform: uppercase;
}
.letter-box {
    background-color: #f7f7f7; /* Light background color */
    /* border: 2px solid #ccc;  Border for the letter box */
    color: #4a4a4a;
    display: inline-flex; /* Use flex to center content */
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
    line-height: normal; /* Adjust line-height for better control */
    margin-right: 5px;
    width: 200px; /* Set a fixed width */
    height: 200px; /* Set a fixed height to make it a square */
    border-radius: 10px; /* Rounded corners */
    font-size: 20px; /* Adjust font size as needed */
    padding: 5px; /* Adjust padding if necessary */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Optional: Adds a subtle shadow */
}
.letterbox-x3 {
    font-size: 48px; /* Larger font size for visibility */
    color: #333; /* Default text color */
    background-color: #f7f7f7; /* Light background color */
    /*border: 2px solid #ccc; */
    border-radius: 10px; /* Rounded corners */
    margin: 5px; /* Margin around the box */
    width: 450px; /* Width of each letter box */
    height: 120px; /* Height of each letter box */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Optional: Adds a subtle shadow */
	padding-right: 50px; padding-left: 50px;padding-bottom: 20px;
}




/* ID per al texte */
#content-to-type {
    font-size: 174px; /* Make the text bigger */
    color: #5b5b5b; /* Set text color */
	font-family: Arial, sans-serif;
    /* Add any additional styling you want here */
}
/* Estilos para tablets (pantallas menores a 768px) */
button {
    display: inline-block;
    padding: 10px 14vh;
    font-size: 46px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-family:'Buixots';
    text-transform: uppercase;
	margin: 6px 0;
	line-height: 60px;
	padding-top: 15px;
	background-color:#287CFF; 
		
	color:#FFF; 
}


/* Estilos para tablets (pantallas menores a 768px) */
@media (max-width: 768px) {
    button {
        font-size: 30px; /* Fuente más pequeña para tabletas */
        padding: 8px 10vh; /* Padding ajustado para tabletas */
        line-height: 40px; /* Ajuste de la altura de línea para mantener el centrado vertical del texto */
    }
}

/* Estilos para móviles (pantallas menores a 480px) */
@media (max-width: 480px) {
    button {
        font-size: 20px; /* Fuente más pequeña para móviles */
        padding: 5px 5vh; /* Padding ajustado para móviles */
        line-height: 30px; /* Ajuste de la altura de línea para mantener el centrado vertical del texto */
    }
}

button:hover {
	background-color: #FFDE28;
	color: white;
}
/* Styles for the Play Again button */
#play-again-button {
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    /* Additional styling as needed */
}



#start-game-button {
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    /* Additional styling as needed */
}




#instruction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 112, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.overlay-content {
    background-color: white;
    padding: 40px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
	width: 70%;
}
.final-overlay-content {
    background-color: white;
    padding: 40px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}



#progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px; /* or whatever height you've set */
    z-index: 1000; /* Lower than the overlay */
    /* Other styles */
		background: #e4e4e4;
}


#progress-bar {
    height: 100%;
    width: 0; /* Start with no width */
    background-color: #30d962;
    transition: width 0.5s; /* Smooth transition for width change */
}


@keyframes correct-typing {
    from { background-color: #30d962; }
    to { background-color: transparent; }
}

.correct-animation {
    animation: correct-typing 0.5s;
}

/* Add your CSS styling here */
#typing-area {
    /* Styles for the typing area */
}

#score-container {
    position: fixed;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

#score {
    background-color: white;
    color: #5b5b5b;
    border: 1px solid #5b5b5b;
padding: 5px 15px 5px 15px;
    border-radius: 5px;
	font-size:14px;
	font-family:sans-serif;
	text-tranform:uppercase;
    /* Keep the score box stable */
}

.score-text {
}


#go-back-button {
    /*display: inline-block;*/
    padding: 10px 14vh;
    font-size: 46px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    color: white;
    background-color: cornflowerblue;
    font-family:'Buixots';
    text-transform: uppercase;
    box-shadow: 2px 3px white;
    border: 2px solid cornflowerblue;
	margin: 6px 0;
	line-height: 60px;
	padding-top: 15px;
    /* Additional styling as desired (font size, color, etc.) */
}
#go-back-button:hover {
	background-color: white;
	color: #000;
    border: 2px solid #000; /* Cambia el color del borde según prefieras */
    box-shadow: 5px 6px #000; /* Cambia el efecto de sombra según prefieras */
}
#menu-button {
    display: inline-block;
    padding: 10px 14vh;
    font-size: 46px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    color: white;
    background-color: cornflowerblue;
    font-family:'Buixots';
    text-transform: uppercase;
    box-shadow: 2px 3px white;
    border: 2px solid cornflowerblue;
	margin: 6px 0;
	line-height: 60px;
	padding-top: 15px;
}
#menu-button:hover {
	background-color: white;
	color: #000;
    border: 2px solid #000; /* Cambia el color del borde según prefieras */
    box-shadow: 5px 6px #000; /* Cambia el efecto de sombra según prefieras */
}
/* Estilos para tablets (pantallas menores a 768px) */
@media (max-width: 768px) {
    #menu-button {
        font-size: 30px; /* Fuente más pequeña para tabletas */
        padding: 8px 10vh; /* Padding ajustado para tabletas */
        line-height: 40px; /* Ajuste de la altura de línea para mantener el centrado vertical del texto */
    }
}

/* Estilos para móviles (pantallas menores a 480px) */
@media (max-width: 480px) {
    #menu-button {
        font-size: 20px; /* Fuente más pequeña para móviles */
        padding: 5px 5vh; /* Padding ajustado para móviles */
        line-height: 30px; /* Ajuste de la altura de línea para mantener el centrado vertical del texto */
    }
}



#completion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensure it's above other content, including the progress bar */
}

#completion-message {
    color: white;
    font-size: 24px;
    text-align: center;
}
@keyframes move {
    from {
        top: 0;
        left: 0;
    }
    to {
        top: 90%;
        left: 90%;
    }
}


.floating-element {
    position: absolute;
    bottom: 0; /* Start from the bottom */
    color: black; /* Ensure text color is visible */
    background-color: white; /* Background to make it stand out */
    padding: 5px;
}
