html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    /* width: 100vw; */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #ffffff, #7a7a7a, #000000);
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    color: white;
    justify-content: center;
    align-items: center;
    /* background-size: cover; */
    background-repeat: no-repeat;
    font-family: 'Roboto', sans-serif;
    user-select: none;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-items: center;
    text-align: center;
    /* margin-top: 50px; */
}

.messages {
    margin-bottom: 15px;
    color: #ff4d4d; /* Optional: Set the color for error messages */
}
.messages .alert {
    padding: 10px;
    border-radius: 5px;
    background-color: #ffcccc; /* Optional: Set background color for messages */
    color: #ff4d4d; /* Optional: Set text color for messages */
    font-size: 1em;
}
.messages .success {
    padding: 10px;
    border-radius: 5px;
    background-color: #ccffcc;
    color: #007a00;
    font-size: 1em;
}
/* Toast container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
/* Toast message */
.toast {
    min-width: 250px;
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95em;
    color: #fff;
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.4s ease forwards,
               fadeOut 0.5s ease forwards 4.5s;
}
/* Success */
.toast.success {
    background-color: #2ecc71;
}
/* Error */
.toast.error {
    background-color: #e74c3c;
}
/* Animations */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* navation bar */
.navbar {
    position: fixed;
    width: 100%;
    height: 5vh;
    background: rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    top: 0;
    z-index: 2;
    padding: 0vh 20px;
}
.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    text-decoration: none;
}
.navbar img {
    height: 4.5vh;
    margin-right: 1vw; 
}
.navbar .logo-text {
    font-family: 'Pacifico', cursive;
    font-size: 3vh;
    color: white;
}
.menu {
    display: flex;
    align-items: center;
    position: relative;
}

/* Mobile spacing */
@media (max-width: 600px) {
    .menu {
        margin-left: 1vw;
    }
}

/* MENU ICON */
#menu-icon {
    font-size: 4vh;
    color: rgb(255, 255, 255);
    cursor: pointer;

    /* animation */
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.25s ease,
        opacity 0.25s ease;
}

/* Hover (desktop) */
#menu-icon:hover {
    transform: scale(1.15);
    color: #7a7a7a;
}

/* Active (click feedback) */
#menu-icon:active {
    transform: scale(0.95);
    opacity: 0.7;
}

/* Khi menu mở → icon xoay */
#menu-icon.active {
    transform: rotate(90deg) scale(1.15);
    color: #7a7a7a;
}

/* SIDEBAR MENU */
.dropdown {
    position: fixed;
    top: 5vh;
    left: 0;
    width: 25vw;
    height: calc(100vh - 5vh);
    background: rgba(0,0,0,0.95);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}
@media (max-width: 600px) {
    .dropdown {
        width: 50vw;
    }
}

.dropdown.show {
    transform: translateX(0);
}
.dropdown a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
}
.dropdown a:hover {
    background: rgba(255,255,255,0.15);
}