/* BOTÃO MODO DARK */

.btn-container {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
  }
  
  .btn-container i {
    display: inline-block;
    position: relative;
    top: -9px;
  }
  
  label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
  }
  
  .btn-color-mode-switch {
    display: inline-block;
    margin: 0px;
    position: relative;
  }
  
  .btn-color-mode-switch > label.btn-color-mode-switch-inner {
    margin: 0px;
    width: 140px;
    height: 30px;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
      /* box-shadow: 0px 0px 8px 0px rgba(17, 17, 17, 0.34) inset; */
    display: block;
  }
  
  .btn-color-mode-switch > label.btn-color-mode-switch-inner:before {
    content: attr(data-on);
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    top: 7px;
    right: 20px;
  }
  
  .btn-color-mode-switch > label.btn-color-mode-switch-inner:after {
    content: attr(data-off);
    width: 70px;
    height: 16px;
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
    border-radius: 26px;
    position: absolute;
    left: 2px;
    top: 2px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 6px -2px #111;
    padding: 5px 0px;
  }
  
  .btn-color-mode-switch > .alert {
    display: none;
    background: #FF9800;
    border: none;
    color: #fff;
  }
  
  .btn-color-mode-switch input[type="checkbox"] {
    cursor: pointer;
    width: 50px;
    height: 25px;
    opacity: 0;
    position: absolute;
    top: 0;
    z-index: 1;
    margin: 0px;
  }
  
  .btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner {
    background: #151515;
    color: #fff;
  }
  
  .btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner:after {
    content: attr(data-on);
    left: 68px;
    background: #3c3c3c;
  }
  
  .btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner:before {
    content: attr(data-off);
    right: auto;
    left: 20px;
  }
  
  .btn-color-mode-switch input[type="checkbox"]:checked ~ .alert {
    display: block;
  }
  
  .dark-preview {
    background: #0d0d0d;
  }
  
  .white-preview {
    background: #fff;
  }
  
  /* Ajustes para telas extra pequenas */
  @media (max-width: 480px) {
    .btn-container {
      display: flex;
      justify-content: center;
      margin-top: 0.9rem;
      width: 25px;
      height: 25px;
    }
    .btn-color-mode-switch > label.btn-color-mode-switch-inner{
        margin-top: 0;
    }
  }

  @media (max-width: 480px) {
    .main-header.shrink {
      padding: 10px 0; /* Reduz o padding */
      height: 95px; /* Define uma altura menor quando encolhido */
    }
    
    .main-header .logo {
      font-size: 2rem; /* Tamanho original */
      transition: font-size 0.3s ease-in-out;
    }
    
    .main-header.shrink .logo {
      font-size: 1.7rem; /* Reduz o tamanho da fonte */
    }

    .main-header.shrink .logo-image {
      height: 40px; /* Tamanho reduzido */
    }
    
    .main-header .tagline,
    .main-header .btn-container {
      opacity: 1;
      transition: opacity 0.3s ease-in-out;
    }
    
    .main-header.shrink .tagline,
    .main-header.shrink .btn-container {
      opacity: 0;
      pointer-events: none; /* Remove a interação quando escondido */
    }

    .main-header {
      transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); /* Suaviza a transição */
    }
    
    .logo-image {
      transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); /* Suaviza a transição da logo */
    }
    
    .main-header.shrink .logo-image {
      transform: scale(0.8); /* Reduz o tamanho da logo */
    }
    
  }
  
/* Estilo do modo dark */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .main-header{
    background: linear-gradient(120deg, #4e54c8, #1d1f3d);
}

body.dark-mode .logo {
    color: #ffffff;
}

body.dark-mode .games-title {
    color: #bb86fc;
}

body.dark-mode .responsive-text{
    color: #d1a5fb;
}

body.dark-mode .card {
    background-color: #1f1f1f;
    color: #ffffff;
}

body.dark-mode .card-title {
    color: #575edc;
}

body.dark-mode .card .btn {
    background-color: #bb86fc;
    color: #121212;
}


body.dark-mode .btn-color-mode-switch-inner {
    background-color: #444444;
}

body.dark-mode .site-footer{
    background-color: #1d1f3d;
}