:root {
    --bg-color: none;
    --form-bg-color: rgba(199, 236, 167, 0.45);
    --text-color: black;
    --shadow: -1px 2px 4px #00000073;
}

[data-theme="dark"] {
    --bg-color: #182931;
    --form-bg-color: rgba(81, 107, 133, 0.39);
    --text-color: ghostwhite;
    --shadow: -1px 2px 4px #00000073;
}

body {
    font-family: "Manrope", sans-serif;
    background-image: url('../assets/clovers-01.webp');
    background-attachment: fixed;
    background-position: top;
    margin-bottom: 65px !important;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.noResult {
    font-family: Kanit, sans-serif;
    background-image: url(../assets/notfound2.svg);
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: 2px;
    background-size: 90px;
    display: flex;
    margin: 4vh auto;
    background-color: #e3e3e3;
    border-radius: 8px;
    padding: 20px 50px;
    font-weight: 400;
    justify-content: center;
    width: 50vmax;
    max-width: 50vmin;
    line-height: 1.1;
}

.formCnt {
    display: flex;
    flex-flow: column;
    width: max-content;
    max-width: 90vmin;
    margin: 4vh auto 0 auto;
    background-color: var(--form-bg-color);
    border: none;
    border-radius: 15px;
    padding: 15px;
    font-family: Kanit, sans-serif;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: var(--shadow);
    align-items: center;
}

.formGrp {
    display: flex;
    flex-direction: row;
    column-gap: 15px;
}

.labelFrm {
    font-size: 14px;
    margin-left: 5px;
    line-height: 1.2;
    color: var(--text-color);
    font-weight: lighter;
}

.form-control {
    padding: 0 10px;
    margin-bottom: 10px;
}

.form-control:focus {
    border: 1px solid rgb(46, 186, 91);
    box-shadow: 0 0 0 3px rgba(46, 186, 91, 0.3);
}

.submitBtn {
    margin: 10px auto 2px auto;
    width: max-content;
    padding: 3px 20px;
    border-radius: 5px;
    border: none;
    background-color: #4a898b;
    box-shadow: -1px 2px 1px #2d585a;
    color: aliceblue;
}

.ticket {
    position: relative;
    height: max-content;
    width: max-content;
    margin: 4vh auto 0 auto;
}

.ticketSVG {
    height: 650px;
    width: auto;
    filter: drop-shadow(var(--shadow));
    -webkit-filter: drop-shadow(var(--shadow));
}

.logo {
    position: absolute;
    border-radius: 99px;
    right: 4%;
    top: 8px;
    width: 40%;
    height: 14.3%;
    overflow: hidden;
    border: 3px solid white;
}

.premio {
    width: 125%;
    position: absolute;
    right: -51%;
    top: 35%;
    transform: rotate(90deg);
    font-family: Kanit, sans-serif;
    font-weight: bolder;
    color: white;
    font-size: 20px;
    line-height: 1;
    text-align: center;
}

.dataCnt {
    display: flex;
    flex-flow: column;
    position: absolute;
    top: 3%;
    left: 14%;
    max-width: 63%;
}

.dataGrp {
    font-family: VT323, monospace;
    line-height: 0.9;
    font-size: 12px;
    margin-bottom: 5px;
}

.data {
    font-size: 20px;
    line-height: 0.8;
}

.dataCnt2 {
    display: flex;
    flex-flow: column;
    position: absolute;
    bottom: 8%;
    left: 29%;
    max-width: 63%;
    transform: rotate(90deg);
}

.rowCnt {
    display: flex;
    flex-direction: row;
    column-gap: 5px;
}

.dataGrp2 {
    display: flex;
    flex-direction: row;
    font-family: VT323, monospace;
    line-height: 0.9;
    font-size: 9px;
    margin-bottom: 5px;
    align-items: center;
    column-gap: 5px;
}

.data2 {
    font-size: 15px;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 15px;
    z-index: 1000;
}

.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;
}

@media (orientation: landscape) {
    body {
        max-height: calc(115vh + 65px);
        align-content: center;
        margin-bottom: 65px !important;
    }

    .ticket {
        position: relative;
        height: max-content;
        width: max-content;
        transform: rotate(-90deg);
        translate: -50% -25%;
        left: 50%;
        margin: 0;
    }
}

@media (min-width: 1366px) and (min-height: 825px) {
    body {
        max-height: calc(115vh + 65px);
        height: 100%;
        align-items: center;
        align-content: center;
        margin-bottom: 0 !important;
    }

    .ticket {
        position: relative;
        height: max-content;
        width: max-content;
        transform: rotate(-90deg);
        translate: -50% -25%;
        left: 50%;
        margin: 109px 0;
        scale: 1.4;
    }
}