body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, #2B71CA, #a46582, #f05a41);

}

.tela { display: none; }
.tela.ativa { display: block; text-align: center; }

.title-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 2rem;
}

#btn-iniciar {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    background-color: #f05a41;
    color: white;
    border: none;
    border-radius: 0.5rem;
}
#btn-reiniciar {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    background-color: #f05a41;
    color: white;
    border: none;
    border-radius: 0.5rem;
}

#btn-iniciar:hover,
#btn-reiniciar:hover {
    background-color: #0C2340;
    color: white;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
}


#tela-jogo {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#descricoes-container, #etapas-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.descricao {
    padding: 0.625rem;
    background-color: rgb(255, 255, 255, 0.4);
    border: 2px dashed #cccccc;
    cursor: grab;
    width: 10rem;
    text-align: center;
}

.etapa {
    text-align: center;
}

.dropzone {
    min-width: 11rem;
    min-height: 5rem;
    height: auto;
    width: auto;
    background-color: #f0f0f0;
    border: 2px dashed #999;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

#placar {
    width: 8rem;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border-radius: 9999px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

/* Feedback Visual */
.dropzone.correto {
    border-color: #28a745;
    background-color: #d4edda;
}

.dropzone.incorreto {
    border-color: #dc3545;
    background-color: #f8d7da;
}

.dropzone.hover {
    background-color: #e2e6ea;
    border-style: solid;
}

#feedback-erro {
    position: absolute;
    bottom: -5rem;
    left: 0;
    right: 0;
    text-align: center;
    color: #dc3545;
    font-weight: bold;
    background-color: white;
    border-radius: 9999px;
}

#feedback-final {
    position: absolute;
    bottom: -5rem;
    left: 0;
    right: 0;
    text-align: center;
    color: #28a745;
    font-weight: bold;
    background-color: white;
    border-radius: 9999px;
}

.animar-erro {
    animation: wrong 0.5s linear;
}

.animar-acerto {
    animation: correct 0.5s linear 0s 1 normal forwards;
}

.info-jogo{
    display: flex;
    justify-content: center;
    gap:8rem;
    align-items: center;
    width: 100%;
}

#timer {
    width: 12rem;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    background-color: #ffffff;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
@keyframes wrong {
	0%,
	100% {
		transform: translateX(0);
	}

	10%,
	30%,
	50%,
	70% {
		transform: translateX(-10px);
	}

	20%,
	40%,
	60% {
		transform: translateX(10px);
	}

	80% {
		transform: translateX(8px);
	}

	90% {
		transform: translateX(-8px);
	}
}

@keyframes correct {
	0% {
		animation-timing-function: ease-in;
		opacity: 1;
		transform: translateY(-45px);
	}

	24% {
		opacity: 1;
	}

	40% {
		animation-timing-function: ease-in;
		transform: translateY(-24px);
	}

	65% {
		animation-timing-function: ease-in;
		transform: translateY(-12px);
	}

	82% {
		animation-timing-function: ease-in;
		transform: translateY(-6px);
	}

	93% {
		animation-timing-function: ease-in;
		transform: translateY(-4px);
	}

	25%,
	55%,
	75%,
	87% {
		animation-timing-function: ease-out;
		transform: translateY(0px);
	}

	100% {
		animation-timing-function: ease-out;
		opacity: 1;
		transform: translateY(0px);
	}
}

/* Media Queries */

@media (max-width: 768px) {

body {
    overflow: visible;
}
.info-jogo{
    justify-content: center;
    gap:1rem;
}

.info-jogo {
    margin-top: -6rem;
}

#placar, #timer {
    font-size: 1rem;
    padding: 0.5rem;
}
#timer {
    width: 8rem;
}

#descricoes-container, #etapas-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap:0.5rem;
    font-size: 0.75rem;

}
.dropzone {
    min-width: 6rem;
}
#feedback-final{
    bottom: -4rem;
    font-size: 1.2rem;
    margin: 0 2rem;
}
}