/*setting CSS*/
.d-none {
    display: none !important;
    opacity: 0;
}

/* สำหรับหน้าแรก Theme 1*/
.theme1 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: linear-gradient(#7ee7fa, #eec0c6);
}

.theme1-warp {
    flex: 1;
}

.theme1-card {
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(#fff4f4, #EEC0C6);
    border: 2px;
    border-radius: 30px;
    box-shadow: 5px 5px 30px;
    margin: 30px 90px 30px 90px;
    padding: 20px;
}

.theme1-card-2 {
    background-image: linear-gradient(#fff4f4, #EEC0C6);
    border: 2px;
    border-radius: 30px;
    box-shadow: 5px 5px 30px;
    margin: 30px 90px 30px 90px;
    padding: 20px;
}

.schoolLogo {
    max-height: 100px;
}

.schoolName {
    font-size: 1.5rem;
    color: rgb(187, 80, 41);
    text-shadow: 2px 1px 3px #ececec;
}

.schoolName-merge {
    display: block;
    justify-items: start;
}

.theme1-merge {
    display: grid;
    grid: 100% / 100px auto auto;
    grid-gap: 10px;
}

.theme1-merge-2 {
    display: grid;
    grid: 100% / auto auto;
    grid-gap: 10px;
}

.head-merge {
    padding: 8px;
}

.headertest {
    font-size: 1.5rem;
    margin-top: 0;
    color: rgb(136, 41, 1);
    text-shadow: 2px 1px 3px #cacaca;
}

.room {
    /*Label ของ roomselect*/
    font-size: 2rem;
    font-weight: bold;
    color: rgb(136, 41, 1);
    text-shadow: 2px 1px 3px #cacaca;
}

.roomSelect {
    /*ตัว roomSelect*/
    font-size: 2rem;
    font-weight: bold;
    background-color: transparent;
    border: 0px;
    color: rgb(136, 41, 1);
    text-shadow: 2px 1px 3px #cacaca;
}

#clock {
    font-family: 'Audiowide';
    font-size: 15vw;
    font-stretch: ultra-expanded;
    font-weight: bold;
    color: #a42b2b;
    margin-bottom: 10px;
    line-height: 0.9;
    text-shadow: 6px 6px 2px #000000;
}

table {
    width: 100%;
    max-width: 800px;
    margin: auto;
    background: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 6px;
}

th {
    background: #ff7979e5;
    color: white;
}

tr:nth-child(even) {
    background-color: #f8f9fca7;
}

.statustitle {
    font-size: 1rem;
    color: rgb(136, 41, 1);
    text-shadow: 2px 1px 3px #cacaca;
}

.statusbox {
    background-color: #ffe0e5;
    box-shadow: 5px 3px 7px #000000 inset;
}

.theme1 .exam-status {
    margin: 20px 0;
    font-size: 1.2rem;
    color: rgb(187, 80, 41);
    text-shadow: 2px 1px 9px #ffffff;
}

/* สำหรับหน้าแรก Theme 2*/
.theme2 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: linear-gradient(#288d8a, #69c5a0, #c5fdd3);
}

.theme2-warp {
    flex: 1;
}

.theme2-card {
    display: grid;
    grid: 100% / auto auto;
    border-radius: 10px;
    background-color: #288d8a;
    padding: 20px;
}

.schoolDetail {
    display: grid;
    grid: 100% / 15% auto;
    gap: 20px;
}

.logocols {
    text-align: right;
}

.schNamecols {
    text-align: start;
}

.testDescript {
    text-align: right;
}

.theme2 .schoolName {
    color: #b7fcdb;
    text-shadow: 2px 2px 5px #000;
}

.theme2 .showDate {
    color: #7cffc0;
    line-height: 1;
    text-shadow: 2px 2px 5px #000;
}

.theme2 .headertest {
    color: #b7fcdb;
    text-shadow: 2px 2px 5px #000;
}

.theme2 .room {
    color: #7cffc0;
    text-shadow: 2px 2px 5px #000;
}

.theme2 .roomSelect {
    color: #7cffc0;
    text-shadow: 2px 2px 5px #000;
}

.bodydiv {
    display: grid;
    grid: 100% / 30% auto;
    padding: 20px;
}

.theme2-tablediv {
    background-color: #ffffff4b;
    border-radius: 20px;
    padding: 10px;
}

.theme2 h3 {
    color: #cdffe7;
    text-shadow: 2px 2px 5px #000, 4px 2px 3px #ffffff;
}

.theme2 th {
    background-color: #288d8a;
}

.analogClock {
    position: relative;
    width: 400px;
    height: 400px;
    border: 8px solid #126171;
    border-radius: 50%;
    margin: auto auto;
    background: #c5fdd3;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.digitalClock {
    position: relative;
    margin: 230px auto;
    font-family: 'Kanit', sans-serif;
    font-size: 4em;
    color: #032b33;
    text-shadow: 2px 3px 3px #96ff94;
    opacity: 0.5;
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    /* ✅ จุดหมุนอยู่ปลายเข็ม */
    transform: rotate(0deg);
    transition: all 0.05s ease-in-out;
    border-radius: 8px;
}

.hour {
    height: 100px;
    width: 8px;
    background: #005e71;
    z-index: 1;
}

.minute {
    height: 150px;
    width: 6px;
    background: #1c95ad;
    z-index: 2;
}

.second {
    height: 160px;
    width: 4px;
    background: red;
    z-index: 3;
}

.center-dot {
    width: 20px;
    height: 20px;
    background: #126171;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 51%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.number {
    position: absolute;
    top: 42%;
    left: 48%;
    transform:
        rotate(calc(30deg * var(--i))) translateY(-170px) rotate(calc(-30deg * var(--i)));
    font-size: 40px;
    color: #126171;
    font-weight: bold;
    font-family: 'Kanit', sans-serif;
    user-select: none;
}

.theme2-card2 {
    display: grid;
    grid: 100% / 20% auto;
    border-radius: 10px 10px 0 0;
    background-color: #288d8a;
    padding: 10px;
}
.theme2 .exam-status{
    display: flex;
    gap: 1rem;
    padding: 10px;
    color:#126171;
    background-color: #69c5a0;
    text-shadow: 2px 2px 5px #fff;
    box-shadow: 5px 3px 7px #000000 inset;
}
.theme2 .exam-status-column{
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
}

/*ถ้าจอเล็ก*/
@media screen and (max-width:600px) {

    .bodydiv,
    .theme2-card {
        display: block;
    }

    .schoolDetail {
        display: flex;
        flex-direction: column;
    }

    .logocols,
    .schNamecols,
    .testDescript {
        text-align: center;
    }
}