html, body {
    padding: 0;
    margin: 0;
    font: 1em sans-serif;
    height: 100%;
}

main {
    position: relative;
    width: 100%;
    height: 105vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}


@media (min-width: 1000px) {
    main {
        height: 85vh;
    }
}

.content {
    position: relative;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*    background-color: rgba(209, 195, 195, 0.66);*/
    z-index: 2;
}

.main .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    flex-direction: column;
}


.card-base {
    position: relative;
    width: 100%;
    height: 660px;
    background-color: aliceblue;
    margin-right: 50%;
/*    margin-left: 50%;*/
    border: #788928 1px solid;
    border-radius: 10px;
}

.header {
    position: relative;
    width: 100%;
    height: 50px;
    background-color: #788928;
    display: flex;
    justify-content: left;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.header h1 {
    font-size: 1.2em;
    margin-left: 20px;
    color: white;
    margin-top: 10px;
    font-weight: bold;
}

.header svg {
    width: 27px;
    margin-left: auto;
    margin-right: 20px;
}

.top-section {
    width: 97%;
    height: 80px;
    margin: auto;
    margin-top: 23px;
}

.top-section h4 {
    text-align: center;
    font-size: medium;
    font-weight: bold;
    margin: 15px;
}

.cards-body {
    margin: auto;
    margin-top: 10px;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 10px;
}

.card {
    width: 60px;
    height: 90px;
    margin: 3px;
    flex: 0 0 auto;
    border-radius: 10px;
    border: 1px solid #788928;
}

.card.selected {
    background-color: #788928;
    color: white;
}

.week{
    text-align: center;
    margin-top: 5px;
}

.day{
    text-align: center;
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.month{
    text-align: center;
    margin-top: 5px;
}


.info {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 3px;
}

.info h5 {
    font-size: smaller;
    margin: 0;
}

.info-icon {
    color: #788928;
    margin-right: 3px;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
}

.tooltip {
    visibility: hidden;
    width: 250px;
    background-color: white;
    text-align: center;
    border-radius: 10px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    left: 130%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid #788928;
}

.info:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.swich-button {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.swich-button span {
    font-size: smaller;
    margin: 0 4px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
}

.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: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #788928;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.mid-section {
    width: 97%;
    height: 80px;
    margin: auto;
    margin-top: 70px;
}

.mid-section h4 {
    text-align: center;
    font-size: medium;
    font-weight: bold;
    margin-top: 15px;
}

.mode-number-selection {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.mode-button {
    background-color: #788928;
    color: white;
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
    font: inherit;
    margin: 0;
    padding: 10px 20px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin: 2px;
    font-weight: bold;
    margin-bottom: 18px;
    height: 50px;
}

.number-section {
    width: 97%;
    height: 255px;
    margin: auto;
    margin-top: 15px;
    background-color: #EFF0EB;
    border-radius: 10px;
    overflow-y: scroll; /* Habilitar el scroll vertical */
    margin-bottom: 12px;
}

.number-section h4{
    text-align: center;
    font-size: medium;
    font-weight: bold;
    margin-top: 15px;
}

.number-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

@keyframes fadeInRotate {
    0% {
        opacity: 0;
        transform: rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

.number-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #788928;
    background-color: #fdfdfd;
    border: 1px solid #788928;
    text-align: center;
    line-height: 40px;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    animation: fadeInRotate 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; /* Animación fluida */
    transform-origin: center; 
}

.number-row {
    display: flex;
    justify-content: space-between;
}

.bottom-section {
    width: 97%;
    height: 60px;
    margin: auto;
    margin-top: 5px;
    background-color: #E4E7D4;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-section-option {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30%;
    padding: 10px;
}

.heart-icon {
    margin-bottom: 5px;
}

.bottom-section-option span {
    font-size: 0.7em;
    margin: 0;
}

.bottom-section-option h2 {
    font-size: x-large;
    margin: 0;
}

@keyframes growAndShrink {
    0% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(-15px) scale(1.15);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

@keyframes multicolorBackground {
    0% {
        background-color: #ff8000;
    }
    20% {
        background-color: #ff8000;
    }
    40% {
        background-color: #fd8914;
    }
    60% {
        background-color: #fd840c;
    }
    80% {
        background-color: #e27a13;
    }
    100% {
        background-color: #ff8000;
    }
}

@keyframes glowingEffect {
    0% {
        box-shadow: 0 0 5px #fff;
    }
    50% {
        box-shadow: 0 0 20px #fff;
    }
    100% {
        box-shadow: 0 0 5px #fff;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 50%;
    }
    100% {
        left: 100%;
    }
}

.play {
    width: 70%;
    position: relative;
    height: 100%;
    color: white;
    border-radius: 0 10px 10px 0;
    border: none;
    outline: none;
    cursor: pointer;
    font: inherit;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background-color: #788928;
    animation: growAndShrink 1.7s infinite, 
              multicolorBackground 3s linear forwards,
              glowingEffect 1s infinite;
    overflow: hidden;
}

.play::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0) 100%);
    animation: shine 3s forwards;
    animation-fill-mode: forwards;
}


.play-disabled {
    width: 70%;
    background-color: #7d7e78;
    height: 100%;
    color: white;
    border-radius: 0 10px 10px 0; 
    border: none;
    outline: none;
    cursor: pointer;
    font: inherit;
    margin: 0;
    padding: 0;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play h2 {
   font-size: 1.5em;
   font-weight: bold;
}

.play-disabled h2 {
    font-size: 1.1em;
    font-weight: bold;
}


.import {
    color: #788928;
    font-weight: bold;
}

.modal{
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-random-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    position: relative;
    border-radius: 10px;
    border: 1px solid #788928;
    text-align: center;
    margin-top: 22%;
}

.modal-random-content p{
    font-style: italic;
}

.close {
    color: #425B9B;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.header-container-manual {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    position: relative;
}

.header-container-manual h5{
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 15px;
    color: #788928;
    margin-left: 7px;
    font-style: italic;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal-random-content h3{
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 30px;
}

.modal-random-content p{
    font-size: 1em;
    margin-top: 20px;
}

.value-container button{
    background-color: white;
    color: black;
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
    font: inherit;
    margin: 0;
    padding: 10px 20px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin: 2px;
    font-weight: bold;
    margin-bottom: 10px;
    height: 50px;
}

.value-container span{
    font-size: 1.4em;
    font-weight: bold;
}

.saldo-label{
    font-size: 0.9em !important;
    font-style: italic;
}

.decrease{
    font-size: 2em !important;
}

.increase{
    font-size: 1.5em !important;
}

.generate-button{
    background-color: #788928;
    color: white;
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
    font: inherit;
    margin: 0;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin: 5px;
    font-weight: bold;
    margin-bottom: 10px;
    height: 50px;
    width: 95%;
    margin-top: 20px;
}

.modal-manual-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    position: relative;
    border-radius: 10px;
    border: 1px solid #788928;
    text-align: center;
    margin-top: 10%;
}

.modal-sucess-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    position: relative;
    border-radius: 10px;
    border: 1px solid #788928;
    text-align: center;
    margin-top: 20%;
    animation: slide-up 0.5s forwards;
}

@keyframes slide-up {
    from {
        bottom: -100%;
    }
    to {
        bottom: 1%;
    }
}

.modal-sucess-content h3{
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 30px;
}

.modal-number-list-container {
    height: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 15px; 
    margin-top: 25px;
}


.modal-number-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; 
    gap: 1px;
    width: 100%;
}

.number-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.modal-number-list .delete-icon {
    background: none;
    border: none;
    color: #788928;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    bottom: 20px;
    right: 10px;
}

.add-list-button {
    background-color: #788928;
    color: white;
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
    font: inherit;
    margin: 0;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin: 5px;
    font-weight: bold;
    margin-bottom: 10px;
    height: 50px;
    width: 50%;
    margin-top: 20px;
}

.modal-number-choose .number-ball,
.modal-number-list .number-ball {
    width: 25px;
    height: 25px;
    border-radius: 50%;     
    background-color: white;
    color: #788928;   
    border: none;         
    margin: 3px;     
    font-size: 14px;        
    font-weight: bold;      
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #788928;
}

.modal-number-choose {
    margin: auto;
    height: 290px;
    margin-top: 23px;
    overflow-y: auto;
    padding-bottom: 20px;
}

.save-button {
    background-color: #788928;
    color: white;
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    height: 50px;
    width: 95%;
    margin: 0 auto 10px;
    display: block;
    text-align: center;
}

.empty-list-message {
    margin-top: 10px;
    color: #888;
    font-size: 14px;
    font-style: italic;
    padding: 5px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    text-align: center;
    width: 400px;
}

.tooltip-alert {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #555;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
}

.tooltip-alert.show {
    visibility: visible;
    opacity: 1;
}

.coin-container {
    position: fixed;
    top: -100px;
    left: 20%;
    transform: translateX(-50%);
    z-index: 10;
    width: 80px;
    height: 80px;
    transition: top 1.5s ease-out;
  }

  .coin {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at center, #ffd700, #d4af37); /* Color dorado */
    border-radius: 50%;
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%) rotateX(10deg) rotateY(0deg);
    box-shadow: 
      inset 5px 5px 10px rgba(255, 255, 255, 0.3),
      inset -5px -5px 10px rgba(0, 0, 0, 0.3),
      5px 5px 15px rgba(0, 0, 0, 0.5);
    border: 5px solid #c0a64d;
    transition: top 2s ease-in-out, left 2s ease-in-out, opacity 1s ease-in-out;
    opacity: 1;
    animation: spin 2s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .coin-inner {
    width: 90%;
    height: 90%;
    background: radial-gradient(circle at center, #c0c0c0, #8a8a8a); /* Plateado, con un tono más oscuro en el borde */
    border-radius: 50%;
    border: 3px solid #8a8a8a; /* Borde plateado oscuro */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .coin-symbol {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff; /* Color blanco */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Sombra para dar un efecto 3D */
  }
  
  @keyframes spin {
    0% {
      transform: translateX(-50%) rotateY(0deg);
    }
    100% {
      transform: translateX(-50%) rotateY(360deg);
    }
  }

  #saldo-unidad{
    font-size: 2.2em;
  }

  #euro-char{
    font-size: 1.7em;
    font-weight: bold !important;
  }