* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.first-stage {
    font-size: 16px;
    background: #FF7A00;
    background-image: url(image/bg.png);
    background-repeat: no-repeat;
    background-position: 100% 0;
}

body.second-stage {
    font-size: 16px;
    background: #FF7A00;
    background-image: url(image/bg.png);
    background-repeat: no-repeat;
    background-position: 100% 0;
}

.welcome-screen {
    display: flex;
}

.box-l {
	background: #fff;
    justify-content: center;
    align-items: center;
	width: 15%;
	height: 100vh;
	float: left;
    padding: 1%;
    position: fixed;
}    

.box-game {
    font-family: "Inter", sans-serif!important;
        font-size: 16px;
        justify-content: center;
        align-items: center;
        width:95%;
        float: left;
        color:#fff;
        padding: 5% 3% 5% 20%;
    }


.welcome-title h1{
    font-size: 34px;
    font-family: "Inter", sans-serif!important;
    color: white;
    margin-bottom: 20px;
}

.logo-topo {
	margin: 30px 0;
	width: 100%;
}

.steps {
	width: 45%;
}

@media screen and (max-width: 1080px) {
    .steps {
        width: 80%;
    }
}

.start-button {
	text-decoration: none;
	    font-family: "Inter", sans-serif!important;
	font-weight: 700;
	margin-top: 30px;
    font-size: 18px;
    background-color: #fff;
    padding: 15px 30px;
    cursor: pointer;
    border-radius: 10px;
    border: none;
    color: #FF7A00;
	transition: transform 0.5s ease;
}

.start-button:hover {
   transform: scale(1.1);
   transition: transform 0.5s ease;
}

body.first-stage .game-screen {
    display: none;
    justify-content: flex-start;
    align-items: center;
    min-height: 150vh;
    padding: 0 20px;
}

body.second-stage .game-screen {
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 0 20px;
}

.board-content {
    margin:60px auto 60px;
    width: 580px;
}

.board {
    display: grid;
    grid-template-columns: repeat(13, 39px);
    grid-template-rows: repeat(13, 39px);
    grid-gap: 2px;
}

@media screen and (max-width: 1200px) {
    .board {
        float: none;
        grid-template-columns: repeat(13, 23px);
        grid-template-rows: repeat(13, 23px);
    }

    .cell {
        width: 22px!important;
        height: 22px!important;
        font-size: 16px!important;
    }
    .box-game {
        width:100%;
    }
}

.cell {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: #ffffffa9 solid 2px;
    color: #000;
    font-size: 24px;
    font-weight: bold;
}

.selected {
    background-color: white;
    color: #000;
}

.winning-message-first-stage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 20%;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    flex-direction: column;
        font-family: "Inter", sans-serif!important;;
    font-size: 18px;
	line-height: 20px;
    color: white;
    text-align: center;
}

.next-stage-button {
	    font-family: "Inter", sans-serif!important;;
	font-weight: 700;
	margin-top: 50px;
    font-size: 18px;
    background-color: #FF7A00;
    padding: 15px 30px;
    cursor: pointer;
    border-radius: 10px;
    border: none;
    color: white;
	transition: transform 0.5s ease;
}

.next-stage-button:hover {
   transform: scale(1.1);
   transition: transform 0.5s ease;
}

.card {
    width: 22%;
    height: 320px;
    cursor: pointer;
    margin: 5px 10px;
}

@media screen and (max-width: 1200px) {
    .card {
    width: 30%;
    }
}

@media screen and (max-width: 720px) {
    .card {
    width: 90%;
    }
}

.card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    position: relative;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-inner .front {
    background-color: #f1f1f1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    backface-visibility: hidden;
    z-index: 2;
}

.card-inner .back {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    z-index: 1;
}

#card1 .back {
    padding: 15px;
    text-align: left;
    font-family: "Inter", sans-serif!important;;
    font-size: 13px;
    line-height: 15px;
    background-color: #000;
    color: white;
}

#card2 .back {
    padding: 15px;
    text-align: left;
    font-family: "Inter", sans-serif!important;
    font-size: 13px;
    line-height: 15px;
    background-color: #000;
    color: white;
}

#card3 .back {
    padding: 15px;
    text-align: left;
    font-family: "Inter", sans-serif!important;
    font-size: 13px;
    line-height: 15px;
    background-color: #000;
    color: white;
}

#card4 .back {
    padding: 15px;
    font-family: "Inter", sans-serif!important;
    font-size: 13px;
    line-height: 15px;
    background-color: #000;
    color: white;
}

.card-wrapper {
    width:100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 20px;
}

@keyframes elevate {
    0% {
        transform: translateY(0);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-15px);
        filter: brightness(1.2);
    }
    100% {
        transform: translateY(0);
        filter: brightness(1);
    }
}

.elevate {
    animation: elevate 0.8s ease-in-out 0s 1 normal;
}


.imagem-popup {
    display: none; 
    position: fixed; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    z-index: 100; 
}

.imagem-popup-conteudo {
    position: relative;
    margin: auto;
    float: right;

    animation-name: animacaoZoom;
    animation-duration: 0.6s;
}

@keyframes animacaoZoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

/* Estilos para o cronômetro */

.cronometro {
    text-align: center;
    font-weight: bold;
    background-color: #000;
    padding: 5px;
    border-radius: 5px;
}

.cronometro-container {
    width: 95%;
}

/* Estilos para o popup */

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.popup-open {
    overflow: hidden;
    display: block !important;
}

.close {
    color: black;
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.cronometro-popup {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff7a00;
    padding: 5px;
    border-radius: 5px;
}

.mask {
    font-family: "Inter", sans-serif!important;
    font-size: 14px;
    color:#fff;
    padding: 30px 20px 0;
}