body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url("../images/birthdaycake.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Quicksand", "Fredoka One", cursive, sans-serif;
}

.container {
    background: rgba(255, 192, 203, 0.7);
    border-radius: 30px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.container h1,
.lock-container h2 {
    font-family: "Pacifico", cursive;
    letter-spacing: 1px;
}

.container p,
.lock-container p,
.lock-input,
.numpad button {
    font-family: "Quicksand", sans-serif;
}

button,
.numpad button {
    font-family: "Quicksand", sans-serif;
}

h1 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px #e57373;
}

p {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 6px #e57373;
}

button {
    background: #fff0f6;
    color: #e57373;
    border: none;
    border-radius: 20px;
    padding: 12px 36px;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 4px 16px 0 rgba(231, 115, 115, 0.2);
    transition: background 0.2s, color 0.2s;
}

button:hover {
    background: #e57373;
    color: #fff0f6;
}

@media (max-width: 600px) {
    .container {
        padding: 20px 10px;
        border-radius: 18px;
    }
    h1 {
        font-size: 1.3em;
    }
    p {
        font-size: 1em;
    }
    button {
        font-size: 1em;
        padding: 10px 24px;
    }
}

/* Lock screen styles */
.lock-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.lock-container[style*="display: flex"] {
    display: flex !important;
}

.photo-frame {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 10px 10px 0 10px;
    margin-bottom: 12px;
    text-align: center;
    width: 180px;
}

.photo-frame img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

.photo-caption {
    font-size: 1em;
    margin: 6px 0 0 0;
}

.lock-container h2 {
    margin: 10px 0 4px 0;
}

.lock-container p {
    margin: 0 0 16px 0;
    color: #444;
}

.lock-input {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #ffb6c1;
    border-radius: 12px;
    padding: 8px 18px;
    margin-bottom: 18px;
    font-size: 1.5em;
    min-width: 180px;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
}

.lock-input.correct {
    border-color: #4caf50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    animation: correctPulse 0.6s ease-out;
}

.lock-input.wrong {
    border-color: #ff1744;
    box-shadow: 0 4px 20px rgba(255, 23, 68, 0.3);
    animation: wrongShake 0.6s ease-out;
}

.lock-input.typing {
    border-color: #ff6b9d;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
    transform: scale(1.02);
}

.lock-icon {
    margin-right: 10px;
    animation: lockBounce 2s ease-in-out infinite;
}

#password-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffb6c1;
    transition: all 0.3s ease;
    animation: dotPulse 0.5s ease-out;
}

.dot.filled {
    background: #ff6b9d;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    gap: 10px;
    justify-content: center;
}

.numpad button {
    background: #fff0f6;
    border: none;
    border-radius: 12px;
    font-size: 1.3em;
    padding: 16px 4px;
    box-shadow: 0 2px 8px rgba(231, 115, 115, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.numpad button:active {
    background: #ffe4ec;
    transform: scale(0.95);
}

.numpad button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 107, 157, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.numpad button:active::before {
    width: 100px;
    height: 100px;
}

#backspace {
    background: #ffe4ec;
    color: #e57373;
    font-weight: bold;
}

#backspace:active {
    background: #ffb6c1;
    color: #fff;
}

@keyframes correctPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes wrongShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes lockBounce {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes dotPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    /* Khôi phục layout cũ */
    .lock-container {
        padding: 20px 15px;
        max-width: 100vw;
        width: 100%;
        min-height: unset;
        height: auto;
        margin: 0 auto;
        box-sizing: border-box;
        display: block;
    }
    .photo-frame img {
        width: 120px;
        height: 120px;
        max-width: 100%;
    }
    /* Chỉ giảm kích thước numpad */
    .numpad {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 0 5px;
    }
    .numpad button {
        font-size: 1em;
        padding: 8px 0;
        min-width: 36px;
        min-height: 36px;
        border-radius: 12px;
    }
    .lock-input {
        font-size: 1.2em;
        padding: 8px 16px;
    }
    .lock-container h2,
    .lock-container p {
        font-size: 1em;
        margin: 8px 0;
    }
    .photo-caption {
        font-size: 0.9em;
    }
}

@media (max-width: 400px) {
    .lock-container {
        padding: 15px 10px;
    }
    .photo-frame {
        width: 120px;
    }
    .photo-frame img {
        width: 100px;
        height: 100px;
    }
    .lock-container h2 {
        font-size: 1.6em;
    }
    .lock-container p {
        font-size: 1em;
    }
    .lock-input {
        font-size: 1.6em;
        min-width: 180px;
        padding: 12px 20px;
    }
    .dot {
        width: 14px;
        height: 14px;
    }
    .numpad {
        grid-template-columns: repeat(3, 60px);
        gap: 10px;
    }
    .numpad button {
        font-size: 1.4em;
        padding: 18px 0;
    }
}

.menu-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    justify-items: center;
    align-items: center;
    padding: 48px 0 48px 0;
    min-height: 100vh;
    background: #23242a;
}

.menu-card {
    background: #fff0f6;
    border-radius: 24px;
    box-shadow: 0 4px 24px 0 rgba(255, 105, 180, 0.15);
    padding: 28px 24px 18px 24px;
    width: 90vw;
    max-width: 420px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.2s;
}

.menu-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #ffe4ec;
    box-shadow: 0 2px 12px rgba(255, 105, 180, 0.08);
}

.menu-card h3 {
    font-family: "Pacifico", cursive;
    color: #e573b7;
    font-size: 1.5em;
    margin: 0 0 6px 0;
}

.menu-card p {
    font-family: "Quicksand", sans-serif;
    color: #d81b60;
    font-size: 1em;
    margin: 0 0 10px 0;
}

.menu-heart {
    font-size: 1.6em;
    color: #e573b7;
    display: block;
    margin-top: 4px;
}

.menu-card:hover {
    box-shadow: 0 8px 32px 0 rgba(255, 105, 180, 0.25);
}

@media (max-width: 900px) {
    .menu-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 0 24px 0;
    }
    .menu-card {
        max-width: 98vw;
        padding: 18px 8px 12px 8px;
    }
    .menu-card img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 600px) {
    html,
    body {
        overflow-x: hidden;
    }
    .menu-container {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0;
    }
    .menu-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 14px 0 10px 0;
        box-sizing: border-box;
    }
    .menu-card img {
        width: 60px;
        height: 60px;
    }
}

.menu-title {
    font-family: "Pacifico", cursive;
    color: #e573b7;
    text-align: center;
    font-size: 2.3em;
    margin-top: 32px;
    margin-bottom: 32px;
    letter-spacing: 1px;
}
