@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins: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&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: "PixelGridS";
    src: url(../pixel-grid-font-family-1754034157-0/pixelgridtrial-circlenormxl.otf);
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "PixelGridS";
    font-weight: 600;
    color: white;
    background: linear-gradient(120deg, #092b61, #09437a, #112a53);
    height: 100%;
    width: 100%;
    cursor: url(../PixelPointer.cur), auto;
}

a,
button {
    cursor: url(../PixelSelector.cur), pointer !important;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 26px;
    padding: 15px;
    border-bottom: 2px solid #ffffff44;
    margin-bottom: 10px;
    text-align: center;
}

.header .logo {
    font-weight: 600;
    font-family: 'Press Start 2P', monospace;
    font-size: 20px;
    text-transform: uppercase;
}

.voltar {
    font-family: "Press Start 2P", monospace;
    font-size: 10px;
    display: flex;
    background-color: transparent;
    border: 2px solid transparent;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.header a {
    text-decoration: none;
}

.voltar:hover {
    padding: 7px 12px;
    border: 2px solid #ffffff6c;
}

.voltar:hover i {
    opacity: 1;
}

.voltar i {
    transition: all 0.3s;
    opacity: 0;
    margin-right: 5px;
}

.overlay {
    position: fixed;
    z-index: 9999;
    background-color: #0A1931;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 1s ease;
    overflow: hidden;
    flex-direction: column;
}

.overlay img {
    width: 100px;
    box-shadow: 2px 5px 45px 3px #05335e;
}

.bemvindo {
    opacity: 0;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }
}

body.loaded .carregando {
    opacity: 0;
}

body.loaded .bemvindo {
    opacity: 1;
}

body.loaded .overlay {
    opacity: 0;
    pointer-events: none;
}

body.loaded .loading-button {
    transform: scale(25);
    opacity: 0;
}

body.loaded .site-content {
    opacity: 1;
    transform: scale(1);
    overflow: auto;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1,
h2 {
    text-align: center;
}

.games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game {
    background-image: url("../avatares/backgroundHTML.png");
    background-size: cover;
    background-repeat: no-repeat;
    animation: slideUp 1.2s ease-out forwards;
    background-position: center;
    border: 3px solid #fffff060;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    text-shadow: 2px 2px 5px #000000;
}

.game:hover {
    transform: scale(1.05);
}

.game .title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.game .desc {
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: center;
}

.progress {
    width: 100%;
    background: #073A69;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 10px;
    background: linear-gradient(120deg, #33ab0f, #07820f, #1d5e13);
    width: 0%;
}

.btn {
    font-family: "Press Start 2P", sans-serif;
    background: #4caf50;
    border: 3px solid #ffffff77;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.5em;
    transition: 0.3s;
}

.btn:hover {
    background: #45a049;
    border: 3px solid #00a30ed2;
}

.btn:disabled {
    background: #555;
    cursor: not-allowed;
}

@media(max-width: 768px) {
    .header {
        font-size: 16px;
        padding: 10px;
    }

    .header .voltar span {
        display: none;
    }

    .header .voltar i {
        opacity: 1;
    }

    .header .logo {
        font-size: 12px;
        text-align: center;
    }
}

.conta {
    max-width: 45px;
    all: unset;
}

.conta img {
    width: 45px;
    transition: all 0.4s;
    cursor: pointer;
    filter: saturate(80%);
    border-radius: 20px;
    border: 2px solid #ffffff19;
    transition: all 0.4s;
}

.conta img:hover {
    border: 2px dashed #ffffff30;
    cursor: url(../PixelSelector.cur), pointer !important;
    filter: saturate(100%);
}

.info-div {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    z-index: 1000;
}

.info-content {
    background: linear-gradient(120deg, #092b61, #073a69, #0a1931);
    border: 2px solid #ffffff6c;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    animation: fadeIn 0.7s ease-in-out;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-button {
    font-family: "PixelGridS";
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ff000038;
    color: #c2000048;
    border: 2px solid #c2000048;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    font-weight: 600;
    transition: all 0.5s ease-out;
}

.close-button:hover {
    background-color: #ee1e1e38;
    border: 2px solid #f20a0ade;
    color: #f20a0ade;
}

::-webkit-scrollbar {
    width: 12px;
    background: #0a1931;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, #1a3d63, #073a69);
    border-radius: 8px;
    border: 2px solid #0a1931;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a3d63;
}

@keyframes slideUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* CSS para o overlay de confirmação de reinício de progresso */
.reboot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Fundo semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Garante que ele fique acima de outros elementos */
}

.reboot-content {
    background-color: #2c2c2c;
    /* Cor de fundo da caixa */
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    border: 1px solid #444;
}

.reboot-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ff6600;
}

.reboot-content p {
    font-size: 16px;
    margin-bottom: 25px;
}

.reboot-buttons {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.reboot-confirm,
.reboot-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reboot-confirm {
    background-color: #e74c3c;
    /* Vermelho para a confirmação (ação perigosa) */
    color: #fff;
}

.reboot-confirm:hover {
    background-color: #c0392b;
}

.reboot-cancel {
    background-color: #3498db;
    /* Azul para o cancelamento */
    color: #fff;
}

.reboot-cancel:hover {
    background-color: #2980b9;
}

/* Estilo para o botão de reinício na página principal */
#restart-button {
    margin-top: 20px;
    margin-bottom: 20px;
}