:root{
    --primary-green-100: rgb(208, 255, 214);
    --primary-green-200: rgb(171, 253, 182);
    --primary-green-300: rgb(105, 233, 122);
    --primary-green-400: rgb(53, 211, 74);
    --primary-green-500: rgb(25, 187, 46);
    --primary-green-600: rgb(9, 145, 27);

    --primary-yellow-100: rgb(255, 252, 208);
    --primary-yellow-200: rgb(253, 245, 171);
    --primary-yellow-300: rgb(233, 231, 105);
    --primary-yellow-400: rgb(211, 208, 53);
    --primary-yellow-500: rgb(184, 187, 25);
    --primary-yellow-600: rgb(145, 143, 9);
    --primary-red-100: rgb(255, 226, 226);
    --primary-red-200: rgb(255, 194, 194);
    --primary-red-300: rgb(248, 133, 133);
    --primary-red-400: rgb(238, 99, 99);
    --primary-red-500: rgb(230, 53, 53);
    --primary-red-600: rgb(214, 23, 23);
    --primary-shadow-100: rgba(0,0,0,0.1);
    --primary-shadow-200: rgba(0,0,0,0.2);
    --primary-shadow-300: rgba(0,0,0,0.3);
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}
header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}
main {
    padding: 50px 20px 20px 20px;
}
body{
    font-family: 'Nunito', sans-serif;
    margin: 0;
}
section {
    margin-bottom: 40px;
}
h2 {
    margin-bottom: 10px;
}
h3 {
    font-size: 20px;
}

/* Modal Dialog Styles for Confirmation */
.modalBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.choiceBox {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.choiceBox p {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--primary-red-600);
    font-weight: 500;
    line-height: 1.5;
}

/* Loading screen */
.loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    border: 8px solid var(--primary-shadow-100);
    border-top: 8px solid var(--primary-green-500);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alertWindow {
    position: fixed;
    top: 20px;
    left: 50%;

    transform: translateX(-50%);
    background-color: var(--primary-green-600);
    color: white;

    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--primary-shadow-200);

    z-index: 10000;
    font-size: 20px;
    animation: fadeInOut 3s ease-in-out;
}
@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
.preserve-space {
  white-space: pre-line;
}
.thai{
    font-family: 'Sarabun', sans-serif;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
footer p{
    margin: 0;
}
footer p a{
    text-decoration: none;
    cursor: default;
    color: white;
}
