body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #202b3b;
    color: #ecf0f1;
    overflow-x: hidden;
    text-align: center;
}

#youtubePlayerContainer {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.container {
    background-color: #2c3e50;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    width: 500px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

h1 {
    color: #f39c12;
    margin-bottom: 20px;
    font-size: 2.8em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

p {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.music-box {
    display: block;
    width: 180px;
    height: 120px;
    margin: 30px auto;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    z-index: 10;
}

.music-box .top {
    width: 100%;
    height: 35%;
    background-color: #1a252f;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.5);
    transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 15;
}

.music-box.open .top {
    transform: rotateX(-120deg) translateY(-25px);
}

.music-box .base {
    width: 100%;
    height: 65%;
    background-color: #4a6984;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    border-top: 3px solid #3b5066;
}

.music-box-figure {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 50px;
    height: 50px;
    opacity: 0;
    transition: opacity 0.7s ease-out 0.2s;
    z-index: 12;
    color: #f39c12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.music-box.open .music-box-figure {
    opacity: 1;
}

.music-box .handle {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 8px;
    background: #1a252f;
    border-radius: 4px;
    cursor: pointer;
    z-index: 20;
}

.music-box .handle .knob {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #f39c12;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.music-box.winding .handle {
    animation: wind-handle 1s linear infinite;
}

@keyframes wind-handle {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

button {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 10px 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.greeting-card {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    margin-top: 30px;
    display: none;
    text-align: left;
    z-index: 2;
    position: relative;
}

.fake-notification {
    background-color: #e67e22;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: absolute;
    bottom: 20px;
    left: 170px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
    pointer-events: none;
    font-size: 0.9em;
}

.fake-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.greeting-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid #f39c12;
}

#closeCardBtn {
    background-color: #c0392b;
}

#closeCardBtn:hover {
    background-color: #e74c3c;
}

#youtubeShortContainer {
    display: none;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 10px;
}

#youtubeShortContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.game-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.game-modal.show {
    display: flex;
}

.game-content {
    background-color: #2c3e50;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 550px;
    position: relative; /* Diperlukan untuk posisi absolut foto */
}

.tetris-grid-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.sidebar {
    background-color: #1a252f;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #3b5066;
    min-width: 120px;
    text-align: center;
}

.sidebar h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: bold;
    color: #f39c12;
}

.sidebar canvas {
    background-color: #0d1217;
    border-radius: 4px;
    margin-bottom: 15px;
}

.main-game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#tetrisCanvas {
    background-color: #000;
    border: 2px solid #f39c12;
    margin-bottom: 10px;
}

#startPauseBtn {
    background-color: #2ecc71;
}

#startPauseBtn:hover {
    background-color: #27ae60;
}

#scoreContainer, #linesContainer {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: white;
}

.controls-info {
    font-size: 0.9em;
    text-align: left;
    margin-top: 20px;
    line-height: 1.4;
    color: #bdc3c7;
}

#closeTetrisBtn {
    background-color: #c0392b;
    margin-top: 20px;
}

#closeTetrisBtn:hover {
    background-color: #e74c3c;
}

.special-photo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1001;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 15px;
    border: 3px solid #f39c12;
}

.special-photo-container.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.special-photo-container img {
    max-width: 300px;
    border-radius: 10px;
    display: block;
}