:root {
    --bg-color: white;
    --module-bg-color: rgba(0, 0, 0, 0.10);
    --text-color: black;
    --bg-color-2: #e9f8dd;
    --boleto-pagado: #97a999;
}

[data-theme="dark"] {
    --bg-color: #182931;
    --module-bg-color: rgb(139 139 139 / 38%);
    --text-color: ghostwhite;
    --bg-color-2: rgba(70, 70, 70, 0.7);
    --boleto-pagado: #262b35;
}

body {
    font-family: Kanit, sans-serif;
    background-image: url('../assets/clovers-01.webp');
    background-attachment: fixed;
    background-position: top;
    margin: 0 !important;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
}

.itemcnt {
    margin: 20px auto 20px auto;
    justify-items: center;
    display: grid;
    max-width: 80vw;
    border-radius: 40px 10px 30px 10px;
    padding: 25px;
    line-height: 1;
    text-align: center;
    background-color: rgba(199, 236, 167, 0.39);
    object-fit: contain;
    position: relative;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.apartaritem {
    font-family: "Manrope", sans-serif;
    display: flex;
    flex-direction: column;
    font-size: 20px;
    text-align: center;
    border: rgb(255, 181, 0) 4px solid;
    border-radius: 15px;
    padding: 10px;
    color: #000000;
    height: 28vh;
    width: 100%;
    line-height: 1;
    justify-content: center;
    background-color: white;
    box-shadow: -4px 3px 4px 0 rgba(0, 0, 0, 0.25);
}


.icont {
    display: grid;
    grid-template-rows: minmax(auto, max-content) 1fr minmax(auto, max-content);
    height: 100%;
}

.imgCnt {
    display: flex;
    margin: auto;
    width: 100vmin;
    max-width: 800px;
    position: relative;
}

.singleactiveimg {
    border-radius: 0 0 8px 8px;
    display: block;
    width: 100%;
    object-fit: contain;
    margin: auto;
}

.orgLogo {
    position: absolute;
    width: 20vmin;
    max-width: 170px;
    border-radius: 100%;
    bottom: -5%;
    left: 0;
}

.orgAlias {
    position: absolute;
    bottom: 5px;
    left: 15%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 1vmin 5vmin 1.3vmin 5vmin;
    font-family: Kanit, sans-serif;
    font-size: clamp(1.2rem, 3.6vmin, 2.2rem);
    border-radius: 0 8px 8px 0;
    max-width: 688px;
    line-height: 1;
    margin-left: 10px;
}

.botones {
    display: flex;
    flex-direction: row;
    width: 98vmin;
    max-width: 800px;
    margin: 11px auto;
    position: sticky;
    top: -1px;
    z-index: 50;
    padding: 5px 10px;
    border-radius: 10px;
}

.reportarForm {
    display: flex;
    align-items: center;
}

.reportar {
    display: flex;
    width: 100%;
}

.reportarBtn {
    display: flex;
    align-items: center;
    width: max-content;
    height: max-content;
    align-self: center;
    border: none;
    background-color: rgb(235 195 94 / 83%);
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 12px;
}

.modal-footer {
    justify-content: space-between;
}

.contacto {
    display: flex;
    flex-direction: row;
    column-gap: 8px;
    justify-content: flex-end;
    width: 97vmin;
    max-width: 800px;
}

.contactBtn {
    background-color: rgb(128 175 91 / 54%);
    padding: 9px;
    border-radius: 50%;
}

.contactImg {
    width: 8vmin;
    max-width: 35px;
}

.eventoCnt {
    display: flex;
    justify-content: center;
    margin: 20px auto 10px auto;
    width: 98vmin;
    max-width: 800px;
}

.evento {
    font-size: clamp(1.5rem, 3.6vmin, 2.2rem);
    background-color: #223f57;
    color: white;
    padding: 5px 3.7vmin;
    border-radius: 30px;
    line-height: 1;
}

.premio {
    display: flex;
    width: 95vmin;
    max-width: 800px;
    font-size: clamp(40px, 3.6vmin, 45px);
    margin: 0 auto 10px auto;
    text-align: center;
    justify-content: center;
    background-color: var(--module-bg-color);
    border-radius: 8px;
    padding: 5px 3px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-color);
}

.comments {
    display: flex;
    flex-direction: column;
    width: 95vmin;
    max-width: 800px;
    margin: auto;
    max-height: 210px;
    padding: 10px;
    background-color: var(--module-bg-color);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-color);
}

.scrolley {
    position: absolute;
    display: flex;
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.05) 15%, rgba(0, 0, 0, 0.05) 85%, rgba(255, 255, 255, 0) 100%);
    translate: -50% 0;
    top: 0;
    left: 50%;
    opacity: 0;
    transition: opacity 1s ease;
}

.scrolley.touched {
    opacity: 1;
}

.commentsInner {
    display: flex;
    flex-direction: column;
    row-gap: 7px;
    overflow: auto;
    height: 100%;
    border-radius: 5px;
    padding: 3px;
}

.commentGrp {
    background-color: ghostwhite;
    border-radius: 8px;
    box-shadow: -1px 1px 3px gray;
    padding: 0 3px;
}


.dateIcn {
    width: 13px;
    margin-right: 5px;
}

.fecha {
    font-size: 10px;
    color: gray;
}

.commentSngl {
    font-size: 16px;
    padding: 5px 10px;
    color: rgb(39, 39, 39);
}

.descripcionCnt {
    display: flex;
    flex-direction: column;
    width: 95vmin;
    max-width: 800px;
    margin: 15px auto 0 auto;
    height: auto;
    max-height: 300px;
    padding: 10px;
    background-color: var(--module-bg-color);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.descripcion {
    background-color: ghostwhite;
    border-radius: 8px;
    box-shadow: -1px 1px 3px gray;
    padding: 8px 15px;
    height: 100%;
    overflow: auto;
}

.toggleDisponibles {
    display: flex;
    justify-content: center;
    font-weight: 500;
    gap: 7px;
    color: var(--text-color);
}

.contenedor-botones {
    display: flex;
    justify-content: center;
}

#generarNumero {
    background-image: url(../assets/dice4.svg);
    background-repeat: no-repeat;
    background-position-x: 99%;
    background-position-y: -7px;
    background-size: 72px;
    background-color: #ffeb76;
    border: none;
    box-shadow: 0 2px 2px #8f8756, -2px 3px 6px rgba(0, 0, 0, 0.582);
    border-radius: 15px;
    padding: 3px 21px;
    margin: 15px auto;
    width: 75vmin;
    max-width: 400px;
    height: 43px;
    font-weight: 600;
    font-family: Kanit, sans-serif;
    font-size: 20px;
    color: black;
}

#generarNumero:active {
    box-shadow: 0 1px 3px grey;
    position: relative;
    top: 1px;
}

.tickcntbg {
    display: flex;
    background-color: var(--bg-color-2);
    padding: 10px 10px;
    justify-content: center;
    max-height: 60vh;
    font-family: Manrope, sans-serif;
    width: 100vmin;
    margin: auto;
    max-width: 1180px;
    border-radius: 15px;
}

#mensaje-carga {
    font-size: 20px;
    color: #00771b;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    height: 50vh;
    background-color: rgba(240, 255, 248, 0.66);
    width: 100%;
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
}

#contenedor-boletos {
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0px;
    width: 95vw;
    align-items: center;
    max-height: 95%;
    overflow: auto;
    border-radius: 15px;
    border: 4px var(--module-bg-color) solid;
    background-color: var(--bg-color);
    scroll-behavior: smooth;
}

.boleto {
    display: flex;
    border: black 2px solid;
    border-radius: 8px;
    width: 45px;
    height: 28px;
    justify-content: center;
    align-items: center;
    margin: 5px;
    font-size: 13px;
    user-select: none;
    /*transition: 0.2s ease;*/
}

.boleto.disponible {
    cursor: pointer;
    display: flex;
    border: none;
    font-weight: 600;
    /*transition: 0.2s ease;*/
    background-color: rgb(250, 238, 200);
}

.boleto.disponible.seleccionado {
    /*border: #026002 1px solid;*/
    background-color: #00a100;
    color: white;
    margin: 1px;
    width: 53px;
    height: 34px;
    font-size: 15px;
    /*transition: 0.2s ease;*/
    align-self: center;
}

.boleto.no-disponible.apartado {
    background-color: rgb(255, 252, 222);
    border: none !important;
    opacity: 40%;
    user-select: none;
}

.boleto.no-disponible.pagado {
    background-color: var(--boleto-pagado);
    border: none !important;
    opacity: 50%;
    user-select: none;
    color: rgba(151, 169, 153, 0);
}

#barra-seleccionados {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(199, 236, 167, 0.8);
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 10px 10px 5px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0s ease, visibility 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85%;
    max-width: 600px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#barra-seleccionados.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

#numeros-seleccionados {
    font-weight: 700;
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
    max-height: 18vh;
    overflow: auto;
}

.numero-seleccionado {
    width: clamp(40px, 100%, 59px);
    padding: 0 5px;
    margin: 2px;
    background-color: #4caf50;
    border-radius: 8px;
    display: inline-block;
    color: #ffffff;
    font-weight: lighter;
}

.numero-seleccionado:hover {
    background-color: #4caf50;
    cursor: pointer;
}


#barra-seleccionados button {
    padding: 2px 20px;
    color: #3c3d42;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.3s;
    margin-bottom: 5px;
    background-color: #ffdf6a;
    box-shadow: 0 2px 2px #c0a33b, -2px 3px 6px grey;
    cursor: pointer;
}

#barra-seleccionados button:active {
    background-color: #ffdf6a;
    box-shadow: 0 1px 3px grey;
    position: relative;
    top: 1px;
}

.slctCnt {
    max-height: 16vh;
    overflow: scroll;
}

.resaltado {
    background-color: rgba(165, 52, 255, 0.34) !important;
    transition: background-color 0.3s, box-shadow 0.3s !important;
    box-shadow: 0 0 9px 4px rgb(30 147 176);
}

.buscador-boleto {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 10px auto 20px auto;
    width: 95vmin;
    max-width: 400px;
}

#buscarBoleto {
    border-radius: 8px;
    border: 2px #77cc77 inset;
    padding: 4px 10px 6px;
    text-align: center;
    line-height: 1;
    box-shadow: -1px 2px 3px rgba(0, 0, 0, 0.527);
}

#buscarBoleto::placeholder {
    font-size: 14px;
}

#botonBuscarBoleto {
    line-height: 0;
    border-radius: 8px;
    margin-left: 10px;
    border: 2px #acacac solid;
    box-shadow: 0 2px 2px #717171, -2px 3px 6px rgba(0, 0, 0, 0.527);
}

#botonBuscarBoleto:active {
    position: relative;
    top: 1px;
    box-shadow: -2px 3px 6px rgba(0, 0, 0, 0.527);
}

.eventStatus {
    background-color: lightgray;
    text-align: center;
    align-content: center;
    font-weight: 500;
    font-size: clamp(23px, 3vmin, 27px);
    font-family: Kanit, sans-serif;
    margin: 4vh 0 80px 0;
    line-height: 1.2;
    padding: 20px 0;
}

#total-precio {
    text-align: center;
}

.currency-selector {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    gap: 5px;
    position: sticky;
    top: 6px;
    z-index: 49;
    width: 95vmin;
    max-width: 800px;
    padding: 5px 0;
    background-color: var(--module-bg-color);
    backdrop-filter: blur(3px);
    border-radius: 10px;
}

.currency-btn {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.currency-btn:not(.active) {
    opacity: 70%;
}

.currency-btn.active {
    background-color: #264f53;
    color: white;
    border-color: #264f53;
}

.currency-btn img {
    height: 16px;
    margin-right: 5px;
}

.raffle-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 95vmin;
    max-width: 800px;
    margin: 10px auto 15px auto;
    background-color: var(--module-bg-color);
    border-radius: 8px;
    padding: 5px 3px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.info-item {
    flex: 1 0 45%;
    display: flex;
    align-items: center;
    padding: 5px;
    margin: 3px;
    background-color: ghostwhite;
    border-radius: 8px;
}

.info-label {
    font-size: 13px;
    color: #555;
    margin-right: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: #264f53;
    margin: auto;
    display: flex;
    align-items: center;
}

.info-value img {
    height: 18px;
    margin-right: 5px;
}

.lottieCnt {
    position: absolute;
    width: 8%;
    aspect-ratio: 1;
    left: 14%;
    bottom: -11px;
}

.delete-comment-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
    vertical-align: middle;
}

.delete-comment-btn:hover {
    opacity: 1;
}

.theme-switch-wrapper {
    display: flex;
    position: absolute;
    right: 2px;
    top: 2px;
    align-items: center;
    margin-left: 15px;
    z-index: 1000;
    background-color: #000000b5;
    padding: 3px;
    border-radius: 30px;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 48px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

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

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

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

.slider-icon {
    color: #f0c420;
    margin-right: 5px;
    font-size: 18px;
}