body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    min-height: 100vh;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    transform: translateZ(0);
}

body.show-background {
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 768px) and (orientation: portrait) {
    body.show-background {
        background-size: auto 100vh;
        background-position: center center;
    }
}

@media (max-width: 480px) {
    body.show-background {
        background-size: cover;
        background-position: center center;
    }
}

#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow: hidden;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#white-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    z-index: 10;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
}

#search-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-input {
    width: 300px;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    /* background-color: rgba(0, 0, 0, 0.5); */
    border-color: #dbdbd7;
    color: #000;
    outline: none;
    transition: all 0.3s ease;
}


@media (max-width: 480px) {
    #search-input {
        width: 250px;
        font-size: 14px;
        padding: 8px 12px;
    }
}

#search-input::placeholder {
    /* color: rgba(255, 255, 255, 0.6); */
    color: #dbdbd7;
}

#search-input:focus {
    border-color: rgba(255, 165, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

#search-container .search-inner{
    position: relative;
}

#search-container .search-btn{
    padding: 0;
    margin: 0;
    border: none;
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
}
#search-container .search-icon{
    cursor: pointer;
    width: 26px;
}
@media (max-width: 480px) {
    #search-container .search-icon{
        width: 20px;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: rgba(30, 30, 30, 0.95);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid rgba(255, 165, 0, 0.5);
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #fff;
}

#modal-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-controls {
    margin-top: 20px;
    color: white;
}

.modal-controls label {
    margin-right: 10px;
    font-size: 16px;
}

#time-select, #date-select {
    padding: 8px 15px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 165, 0, 0.5);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#time-select option, #date-select option {
    background-color: #333;
    color: white;
}

#datetime-set {
    margin-top: 0.5em;
    width: 20em;
    padding: 8px 15px;
    font-size: 16px;
    background-color: rgba(95, 187, 223, 0.445);
    color: white;
    border: 1px solid rgba(255, 165, 0, 0.5);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

#message {
    display: block;
    margin-top: 0.5em;
    font-size: 16px;
    color: #ffffff;
}

#datetime-setting {
    margin-top: 0.5em;
    width: 8em;
    padding: 8px 15px;
    font-size: 16px;
    background-color: rgba(95, 187, 223, 0.445);
    color: white;
    border: 1px solid rgba(255, 165, 0, 0.5);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.flatpickr-calendar {
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    background: #fff;
    color: #000;
}

.flatpickr-day.today {
    border: 1px solid #fff;
    color: #000;
}

.flatpickr-day.selected {
    background: #000;
    color: #fff;
}

.caution {
    font-size: 12px;
}