
@font-face {
font-display: swap;
font-family: 'Kantumruy Pro';
font-style: normal;
font-weight: 400;
src: url('../fonts/kantumruy-pro-v12-khmer_latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
font-display: swap;
font-family: 'Kantumruy Pro';
font-style: normal;
font-weight: 700;
src: url('../fonts/kantumruy-pro-v12-khmer_latin_latin-ext-700.woff2') format('woff2');
}

body {
    font-family: 'Kantumruy Pro', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    margin: 0;
}

#app {
    text-align: center;
}

.wrapper {
    margin: 0 auto;
    max-width: 550px;
    padding: 0 .5em;
}

h1 {
    background-color: #fd8087;
    color: #fff;
    margin: 0;
    padding-bottom: .75em; 
    padding-top: .75em; 
    user-select: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fd8087;
    margin: 1em 0 0.1em 0;
}

h3 {
    color: white;
    padding: 0.2em .5em;
    text-align: left;
    user-select: none;
    margin: 0;
    flex-grow: 1;
}

p.caption.text-center {
    text-align: center;
}

p.caption {
    border: #fd8087 dashed;
    margin: 0;
    padding: .75em .5em;
    text-align: left;
}

.copy-btn {
    background-color: white;
    color: #fd8087;
    border: none;
    padding: 4px 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-right: 0.5em;
}

select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    margin: 5px 0;
}

input[type="date"], input[type="time"] {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    margin: 5px 0;
    font-family: 'Kantumruy Pro', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

.top-buttons {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    max-width: 550px;
    margin: 0 auto;
    padding: 0 .5em;
}

.top-buttons .caption {
    border: none;
    padding: 0;
    text-align: right;
}

.menu-btn, .options-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    transition: left 0.3s ease-in-out;
    padding-top: 60px;
    z-index: 100;
}

.menu.active {
    left: 0;
}

.menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: black;
    font-size: 18px;
    text-align: left;
}

.menu a:hover {
    background-color: #fd8087;
    color: #f9f9f9;
}

.menu-btn, .options-btn:active,
a:active,
a:visited {
    text-decoration: none;
    color: black;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.options-container {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-width: 550px;
    margin: 0 auto;
}

.options-container.active {
    display: block;
}

.reset-btn,
.save-btn {
    background-color: #fd8087;
    color: white;
    border: none;
    padding: 5px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin: 1em 0;
}

.how-to-btn {
    background-color: white;
    color: #fd8087;
    border: none;
    padding: 4px 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-right: 0.5em;
}

.modal {
    position: fixed;
    z-index: 101;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 4px;
    text-align: left;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

@media (min-width: 900px) {
    .options-container.active,
    .top-buttons,
    .wrapper {
        margin: 0;
    }
}
