/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ayuthaya', sans-serif; /* Apply Ayuthaya font everywhere */
}

html, body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Full-size container */
.container {
    display: flex;
    flex-direction: row; /* Buttons in a row */
    width: 100%;
    height: 100%;
}

/* Button base styles */
.button {
    flex: 1;
    position: relative;
    cursor: pointer;
    border: none;
    overflow: hidden;
    outline: 1px solid transparent;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Video wrapper to prevent blur leaking */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Video settings */
.button video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    filter: blur(5px);
    transition: filter 0.3s ease;
    transform: translate(-50%, -50%);
}

/* Hover Effect - Remove Blur */
.button:hover video {
    filter: blur(0);
}

/* Click Effect - Keep video unblurred */
.button.clicked video {
    filter: blur(0);
}

/* Ensure text is readable */
.button span {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: clamp(3rem, 4vw, 4rem);
    color: white;
    filter: blur(5px);
    mix-blend-mode: difference;
    transition: filter 0.3s ease, opacity 0.5s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Remove blur when hovered */
.button:hover span {
    filter: blur(0);
    text-shadow: none;
}

/* Click effect - fade out text */
.button.clicked span {
    opacity: 0;
    filter: blur(0);
    transition: opacity 0.5s ease;
}

/* Transparent Menu Bar */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
}

/* Center the menu items */
.menu-bar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Menu links */
.menu-bar ul li a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    padding: 10px 20px;
    font-family: 'Ayuthaya', sans-serif;
    transition: color 0.3s;
}

/* Hover effect */
.menu-bar ul li a:hover {
    color: gray;
}

/* Notes Window */
.notes-container {
    display: none;
    position: fixed;
    bottom: 0; /* Appear from bottom */
    left: 0; /* Align with leftmost button */
    width: auto; /* Adjust based on "Items" button */
    height: 30vh; /* 30% of the viewport height */
    background: white;
    padding: 15px;
    box-sizing: border-box;
    z-index: 1001;
    border-radius: 10px 10px 0 0; /* Rounded top, flat bottom */
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%); /* Start hidden */
    transition: transform 0.3s ease-in-out;
}

/* When active, slide up */
.notes-container.active {
    transform: translateY(0);
}

/* Adjust "Items" button height */
.btn1 {
    transition: height 0.3s ease-in-out;
}







/* Ensure it grows responsively */
@media (max-width: 600px) {
    .notes-container {
        width: 100%; /* Full width on small screens */
    }
}


/* Textarea inside Notes */
.notes-textarea {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Ayuthaya', sans-serif;
    font-size: 1.2rem;
    resize: none;
    overflow-y: auto;
}

/* Placeholder text in Notes */
.notes-textarea::placeholder {
    color: gray;
    font-family: 'Ayuthaya', sans-serif;
    font-size: 1rem;
}
