
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100%; 
  }/* You can add global styles to this file, and also import other style files */


    body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background: linear-gradient(135deg, #74ABE2 0%, #5563DE 100%);
      color: #333;
      height: 100%;
      max-height: 100%;
      scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge antiguos */
    overflow-y: hidden;
    }

    #config {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 99vh;
      padding: 20px;
      animation: aparecer .6s ease-out;
      text-align: center;
    }

    #config h2 {
      font-size: 6vw;
      color: #fff;
      text-shadow: 2px 2px #0008;
      margin-bottom: 20px;
    }

    #config select,
    #config button {
      margin: 10px;
      padding: 12px 20px;
      font-size: 1.1rem;
      border-radius: 10px;
      border: none;
      cursor: pointer;
      width: 80%;
      max-width: 300px;
    }

    #config select {
      background: #fff;
    }

    #config button {
      background: #ffcc00;
      transition: transform .2s ease;
    }

    #config button:hover {
      transform: scale(1.05);
      background: #ffe066;
    }

    #juego {
      height: 100%;
      display: none;
      padding-right: 20px;
      padding-left: 20px;
      position: relative;
      flex-direction: column;
      align-items: unset;
      justify-content: space-between;
    }

    #volver {
      position: absolute;
      top: 10px;
      left: 10px;
      background: #ffcc00;
      border: none;
      padding: 0px 15px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: bold;
      z-index: 5;
    }

    h1 {
      margin-top: 60px;
      font-size: 4vw;
      color: #fff !important;
      text-align: center;
    }

    #info {
      margin: 0px 0;
      font-size: 1rem;
      color: #eee;
      display: flex;
      flex-wrap: wrap;
      align-self: center;
      max-width: 410px;
      width: 100%;
      gap: 20px;
    }

    .infoItem {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    #sudoku {
      display: grid;
      grid-template-columns: repeat(9, 10vw);
      grid-template-rows: repeat(9, 10vw);
      gap: 0;
      margin: 0px auto;
      width: fit-content;
      background: transparent;
    }


    input[type="text"] {
      width: auto;
      height: auto;
      text-align: center;
      font-size: 1rem;
      border: 1px solid #999;
      border-radius: 0px!important;
      outline: none;
    }

    input[readonly] {
      border-radius: 0px!important;
      opacity: 1!important;
      outline: none!important;
    }

    input.prefilled {
      background: #e5e5e5;
      font-weight: bold;
    }

    input.invalid {
      background: #ffdddd;
    }

    .thick-border-top.thick-border-left.esquina{
      border-top-left-radius: 5px!important;
    }
    .thick-border-top.thick-border-right.esquina{
      border-top-right-radius: 5px!important;
    }
    .thick-border-bottom.thick-border-left.esquina{
      border-bottom-left-radius: 5px!important;
    }
    .thick-border-bottom.thick-border-right.esquina{
      border-bottom-right-radius: 5px!important;
    }

    .thick-border-top {
      border-top: 3px solid #333 !important;
    }

    .thick-border-left {
      border-left: 3px solid #333 !important;
    }

    .thick-border-right {
      border-right: 3px solid #333 !important;
    }

    .thick-border-bottom {
      border-bottom: 3px solid #333 !important;
    }

    .mx5 {
      margin-left: 3px;
      margin-right: 3px;
    }

    .botones {
      margin: 0px 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }

    .botones button {
      padding: 10px 20px;
      font-size: 1rem;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      background: #ffcc00;
      transition: background .2s;
    }

    .botones button:hover {
      background: #ffdd33;
    }

    #mensaje {
      margin-top: 0px;
      font-size: 1rem;
      color: #fff;
      text-align: center;
      background: white;
      border-radius: 5px;
    }

    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.6);
      align-items: center;
      justify-content: center;
      z-index: 10;
    }

    .modalContent {
      background: #fff;
      padding: 30px 20px;
      border-radius: 15px;
      text-align: center;
      animation: popup 0.5s ease forwards;
      width: 90%;
      max-width: 400px;
    }

    @keyframes popup {
      0% {
        transform: scale(0.5);
        opacity: 0;
      }

      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    @keyframes aparecer {
      0% {
        opacity: 0;
        transform: scale(0.8);
      }

      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    #modalContent h2 {
      margin-bottom: 20px;
      font-size: 1.8rem;
      color: #333;
    }

    #modalContent button {
      padding: 10px 20px;
      font-size: 1rem;
      border: none;
      border-radius: 8px;
      background: #74ABE2;
      color: #fff;
      cursor: pointer;
    }

    /* ✅ Media Query para pantallas grandes */
    @media screen and (min-width: 768px) {

      .mx5 {
        margin-left: 5px;
        margin-right: 5px;
      }

      #config h2 {
        font-size: 2.5rem;
      }

      h1 {
        font-size: 2rem;
      }

      #info {
      gap: 30px;
    }

      #sudoku {
        grid-template-columns: repeat(9, 45px);
        grid-template-rows: repeat(9, 45px);
      }

      input[type="text"] {
        font-size: 1.1rem;
      }

      #config select,
      #config button {
        width: auto;
      }
    }

    .selector-container {
      position: relative;
      width: 300px;
      height: auto;
      perspective: 1000px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .card-carousel {
      position: relative;
      width: 100%;
      height: 350px;
      overflow: visible;
    }

    .cardD {
      position: absolute!important;
      top: 0;
      left: 50%;
      transform: translateX(-50%) scale(0.7);
      width: 80%;
      height: 100%;
      transition: transform 0.5s, z-index 0.5s;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      opacity: 0.5;
    }

    .cardD.selected {
      transform: translateX(-50%) scale(1);
      z-index: 3;
      opacity: 1;
    }

    .cardD.left {
      transform: translateX(-100%) scale(0.6) rotateY(30deg);
      z-index: 2;
    }

    .cardD.right {
      transform: translateX(0%) scale(0.6) rotateY(-30deg);
      z-index: 2;
    }

    .cardD img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .controlsCards {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;

      margin-top: 30px;
    }

    .controlsCards button {
      padding: 10px 20px;
      font-size: 1rem;
      border-radius: 8px;
      border: none;
      background: #ffcc00;
      cursor: pointer;
      margin: 0 10px;
    }

    .seleccionada {
      outline: 2px solid blue;
      background-color: #e0f0ff;
    }

    #numero-botones {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0px;
      margin-left: -20px;
      margin-right: -20px;
      margin-top: 0px!important;
      padding-bottom: 10px;
    }

    .numero-btn {
      width: 41px;
      height: 50px;
      font-size: 20px;
      font-weight: bold;
      border: none;
      border-radius: 1px;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
      background: linear-gradient(135deg, #f8b500 0%, #f8b500 100%);
      color: black;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .numero-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

    .numero-btn:active {
      transform: scale(0.95);
      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    }
