@import url('https://fonts.googleapis.com/css2?family=Barlow: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&display=swap');
@import 'bootstrap/dist/css/bootstrap.min.css'; /* Importando o Bootstrap */

/*Configurações do menu*/
* {
    font-family: Barlow, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #000;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
    z-index: 1050;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: #fff;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #333;
}

.overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
}

.hamburger {
    cursor: pointer;
    padding-left: 80px;
}

.me-2 {
    padding-right: 80px;
}

.logo {
    padding-left: 50px;
    width: 190px;
}

/* Submenu de Configurações */
.configuracoes .submenu {
    display: none;
    padding: 10px 15px;
}

.switch-label {
    color: white;
    font-size: 16px;
    margin-right: 10px;
}

/* Estilo do switch tipo iPhone */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 25px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgb(253, 77, 121);
}

input:checked + .slider:before {
    transform: translateX(24px);
}


/* Temas */
/* Tema Claro */
body.light-theme {
    background-color: #ffffff; /* já é branco suave */
    color: #212529;
}

body.light-theme section.bg-dark {
    background-color: #e9ecef !important;
}

body.light-theme .navbar,
body.light-theme .sidebar {
    background-color: #f8f9fa !important; /* branco puro para menu superior e lateral */
}

body.light-theme .sidebar a,
body.light-theme .configuracoes a {
    color: #000;
}

body.light-theme .container-jogos,
body.light-theme .container-eventos-efeitos {
    background-color: #ffffff;
    color: #000;
}

body.light-theme .nomes-jogos,
body.light-theme .posicao-texto-eventos,
body.light-theme .eventos,
body.light-theme .texto-eventos {
    color: #000 !important; /* Use !important para garantir a prioridade, se necessário */
}

body.light-theme footer {
    background-color: #f8f9fa !important;
    color: #000 !important;
    border-top: 2px solid #fd4d79 !important;
}

/* Tema Claro - Hover nos links da Sidebar */
body.light-theme .sidebar a:hover {
    background-color: #e0e0e0; /* Um tom de cinza bem claro */
    color: #000; /* Mantém a cor do texto preta */
}

body.light-theme .configuracoes a:hover {
    background-color: #e0e0e0; /* Aplica o mesmo efeito ao link "Configurações" se desejar */
    color: #000;
}

body.light-theme .submenu a:hover {
    background-color: #e0e0e0; /* Aplica o mesmo efeito aos links dentro do submenu, se houver */
    color: #000;
}

body.light-theme .submenu {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
}

/*Tema escuro*/
body.dark-theme {
    background-color: #000;
    color: #fff;
}




/*Conteúdo principal*/
section {
    min-height: 100vh;
    padding: 100px;
    display: flex;
    align-items: center;
}

/* estiliza o conteúdo inteiro da pagina de eventos e jogos  */
.pagina-inteira{
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

/*parte de jogos*/
.container-pagina-jogos {
    margin: 3rem 7rem 0 7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    margin-top: 5rem;
}

/* container das imagens */
.container-jogos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #1a1a1a;
    margin: 18px 60px 0 0;
    padding: 18.5px;
    position: sticky;
    border: 2px solid rgb(253, 77, 121, 0.3);
    border-radius: 1rem;
    box-shadow: 0 0 10px 4px rgb(253, 77, 121, 0.3);
}

/* Imagens dos jogos */
.imagem-jogos {
    height: auto;
    width: 20%;
    padding: 15px;
    min-width: 170px;
    max-width: 270px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.imagem-jogos:hover {
    transform: scale(1.07); /* aumenta para 110% enquanto o mouse estiver sobre */
    transition: transform 0.3s ease;
}

/* parte de eventos */

/* container das imagens */
.container-eventos {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    background: #1a1a1a;
    padding: 20px 20px 20px 20px;
    border-radius: 15px;
    margin: 65px 0;
    position: sticky;
    border: 2px solid rgb(253, 77, 121, 0.3);
    border-radius: 1rem;
    box-shadow: 0 0 10px 4px rgb(253, 77, 121, 0.3);
}

/* efeitos do containers de eventos */
.container-eventos-efeitos{
    display: none;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.3s ease, opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

/* efeito de abrir */
.container-eventos-efeitos.abrindo {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

/* efeito de fechar */
.container-eventos-efeitos.fechando {
    opacity: 0;
    transform: scale(0.8);
}

.eventos {
    list-style: none;
    margin: 10px 0 22px 0;
    padding: 0;
}

/* estilização do texto dos jogos */
.nomes-jogos {
    align-items: center;
    color: rgb(253, 77, 121);
    font-size: 28px;
    font-weight: bold;
}

.texto-eventos {
    align-items: center;
    text-align: center;
    font-size: 20px;
    color: white;
}

.posicao-texto-eventos {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

/* estilização do botão de cadastro */
.botao-cadastro {
    background-color: rgb(253, 77, 121);
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

/* muda a cor do botão de cadastro quando o mouse passa por cima */
.botao-cadastro:hover {
    background-color: rgb(192, 60, 93);
    color: rgb(205, 205, 205);
}

.perfil-photo {
    width: 40px; /* Ajustando o tamanho da foto */
    height: 40px;
    border-radius: 50%; /* Deixando a borda circular */
    border: 2px solid white; /* Adicionando a borda */
    object-fit: cover; 
    margin: 0 auto; /* Centralizando a imagem */
    display: block; /* Para garantir que a imagem seja exibida como um bloco */
}

/* estilização do rodapé */
.footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
    border-top: 2px solid rgb(253, 77, 121);
    box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.2);
}

.footer p {
    margin: 5px 0;
}

/* abrindo os eventos */
@keyframes crescer {
    from {
    transform: scale(0);
    opacity: 0;
    }
    to {
    transform: scale(1);
    opacity: 1;
    }
}

/* fechando os eventos */
@keyframes encolher {
    from {
    transform: scale(1);
    opacity: 1;
    }
    to {
    transform: scale(0);
    opacity: 0;
    }
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .custom-container h2 {
        font-size: 20px;
    }

    .star-rating label {
        font-size: 20px;
    }

    textarea {
        font-size: 14px;
    }

    .custom-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .custom-container {
        padding: 15px;
    }

    .custom-container h2 {
        font-size: 18px;
    }

    .star-rating label {
        font-size: 18px;
    }

    textarea {
        height: 60px;
        font-size: 12px;
    }

    .custom-button {
        font-size: 12px;
        padding: 6px 12px;
    }
}
