@import url("https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@300;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100;200;300;400;500;600;700;800;900&display=swap");
.modal {
    display: none; /* Hide the modal by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 90%;

    border: solid 1px #454545;
    border-radius: 10px;
}
.modal-content p {
    text-indent: 20px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.back {
    color: #aaa;
    float: left;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

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

/* Additional styles for the paragraph inside the modal */
.modal-content p {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.5;
}

/* End V's theme */

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
}

.material-symbols-outlined.filled {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 48;
}

html,
body {
    padding: 0;
    margin: 0;
    font-family: "Noto Sans Thai", sans-serif;
    font-size: 18px;
    font-weight: 400;

    --accent: #111f;
}

/* -- scroll bar--*/
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #d0102c;
    border-radius: 5px;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.clickable {
    cursor: pointer;
}

h1 {
    font-family: "Kanit", sans-serif;
    font-size: 2.5em;
    font-weight: 500;
    color: #d0102c;
    text-overflow: ellipsis;
}

h2 {
    font-family: "Kanit", sans-serif;
    font-size: 1.5em;
    font-weight: 500;
    color: #171717;
    text-overflow: ellipsis;
}

h3 {
    font-family: "Kanit", sans-serif;
    font-size: 1.2em;
    font-weight: 400;
    color: #171717;
    text-overflow: ellipsis;
}

.primary {
    background-color: rgba(255, 255, 255, 0.6);
    color: #171717;
}

.secondary {
    background-color: #171717;
    color: #fff;
}

.tertiary {
    background-color: #ffff;
    color: #454545;
}

.quaternary {
    background-color: #f8f8f8;
    color: #454545;
}

.neutral {
    background-color: #c2c2c2;
    color: #171717;
}

.gray-out {
    color: #fff;
    background-color: #97959a;
}

.error-msg {
    color: #ff0000;
}

.none {
    background-color: #0000;
}

.accent {
    background-color: #d0102c;
}

.highlight {
    color: #d0102c;
}

.elevated {
    box-shadow: 4px 0px 10px 0px rgba(0, 0, 0, 0.15);
}

.rounded {
    border-radius: 100rem;
    padding: 0.5rem 1rem;
    border: solid 1px #c2c2c2;
}

/* -- Input form and button --*/

/* begin accent color */
:root {
    accent-color: var(--accent);
}
:focus-visible {
    outline-color: var(--accent);
}
::selection {
    background-color: var(--accent);
    color: #fff;
}
::marker {
    color: var(--accent);
}
:is(::-webkit-calendar-picker-indicator, ::-webkit-clear-button, ::-webkit-inner-spin-button, ::-webkit-outer-spin-button) {
    color: var(--accent);
}
/* end accent color */

.input-row {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.input-field {
    flex: 1 0 auto;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.input-field > label {
    margin: 0px 15px;
}

.input-field > * {
    width: 100%;
}

select {
    -webkit-appearance: none;
}

.button,
input,
select {
    padding: 5px 10px;
    border-width: 1px;
    border-radius: 999px;
    border-style: solid;
    font-family: "Noto Sans Thai", sans-serif;
    font-weight: 600;
    font-size: 20px;
}

select,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"] {
    min-width: 50%;
    cursor: pointer;
    background-color: #fff;
    color: #97959a;
    -webkit-text-fill-color: #97959a;
}

input[type="checkbox"] {
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.button,
input[type="button"] {
    border-width: 0px;
    cursor: pointer;
    box-shadow: 4px 0px 10px 0px rgba(0, 0, 0, 0.15);
}

.button:hover:not(.gray-out),
input:hover:not(.gray-out) {
    background-color: #d0102c;
    color: #ffff;
    -webkit-text-fill-color: #ffff;
}

.button.toggled:not(.gray-out),
.button:active:not(.gray-out),
input[type="button"]:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.button.toggled {
    background-color: #d0102c;
    color: #ffff;
}

.primary-enter {
    animation: bubble_up ease 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

/* enter animations */

@keyframes bubble_up {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.secondary-enter {
    animation: bubble_right ease 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes bubble_right {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

.tertiary-enter {
    animation: scale_up ease 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    transform-origin: bottom center;
}

@keyframes scale_up {
    0% {
        opacity: 0;
        transform: scale(1, 0);
    }
    100% {
        opacity: 1;
        transform: scale(1, 1);
    }
}

.quaternary-enter {
    animation: fade_in ease 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fade_in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
