* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #ffcb8c;
    background-image: url('img/bg003.jpg');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100%;
    overflow:auto;
    padding-top: 20px;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #c75c52;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 1000;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
}

.temple{
    width: 100%;
    height: 350px;
    background-image:url('img/temple.svg'); 
    background-position: top;
    background-repeat: no-repeat;
    background-size: 90%;
    position: absolute;
    top:230px;            
    z-index: 1;         
}

.app-container {
    width: 100%;
    max-width: 500px; 
    min-height: 100vh; 
    background-color: #ecdabd;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    padding:30px 0;
}

header {
    width: 100%;
    text-align: center;
    flex-direction: column;
    display: flex;
    align-items: center;
}

header h1 {
    width: 100%;
    font-size:3.5em;
    color:#391a02;
}

header h2 {
    background-image:url('img/logo.svg'); 
    background-position: top;
    background-repeat: no-repeat;
    width:100%;
    height: 65px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    position: absolute;
    z-index: 2;       
    top: 450px;
}

.activity-info {
    width: 95%;
    max-width: 500px;
    padding: 20px;
    background-color: #fffaf0; 
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 750px;
    font-size: 1em;
    line-height: 1.6;
}

.activity-info h2 {
    color: #0f0d0b; 
    text-align: center;
    margin-bottom: 10px;
}

.activity-info h3 {
    color: #cc0000;
    margin-top: 20px;
    margin-bottom: 5px;
}

.activity-info p, .activity-info li {
    color: #333;
    margin: 0 15px;
}

.shaker-container {
    perspective: 1000px;
    position: relative;
    width: 180px;
    height: 380px;
}

.signs-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden; 
    z-index: 10;
}

.sign-top {
    width: 30px;
    height:130px;
    font-size: 20px;
    background: linear-gradient(
    90deg,rgb(224, 180, 76) 0%, rgb(224, 180, 76)  30%,rgb(255, 221, 143) 31%,rgb(255, 221, 143) 100%);
    border-radius: 5px 5px 0 0; 
    position: absolute;
    bottom:180px; 
    transform-origin: bottom center;
    animation: signSway 2s infinite ease-in-out;margin: 0 5px;
    text-align: center;
    box-shadow: 2px -2px 5px rgba(0, 0, 0, 0.3);
    border-top: 20px solid #99362e; 
}

.sign-top:nth-child(1) { left: 20px; top: 50px; animation-delay: 1.1s; }
.sign-top:nth-child(2) { left: 50px; animation-delay: 0s; }
.sign-top:nth-child(3) { left: 80px;  top: 50px; animation-delay: 0.2s; }
.sign-top:nth-child(4) { left: 120px;  top: 60px; animation-delay: 2.05s; }
.sign-top:nth-child(5) { left: 100px; animation-delay: 0.15s; }

.fortune-tube {
    width: 100%;
    height: 100%;
    position: absolute; 
    top: 0;
    left: 0;
    background-image: url('img/bucket.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index:20; 
    animation: sway 2s infinite ease-in-out;
    transform-origin: bottom center;
}

@keyframes sway {
    0% { transform: rotateZ(0deg); }
    25% { transform: rotateZ(2deg); }
    50% { transform: rotateZ(0deg); }
    75% { transform: rotateZ(-2deg); }
    100% { transform: rotateZ(0deg); }
}

@keyframes signSway {
    0% { transform: rotateZ(-2deg); }
    50% { transform: rotateZ(2deg); } 
    100% { transform: rotateZ(-1deg); }
}

@keyframes swayShake {
    0% { transform: rotateZ(0deg); }
    10% { transform: rotateZ(15deg); }
    20% { transform: rotateZ(-15deg); }
    30% { transform: rotateZ(12deg); }
    40% { transform: rotateZ(-12deg); }
    50% { transform: rotateZ(8deg); }
    60% { transform: rotateZ(-8deg); }
    70% { transform: rotateZ(5deg); }
    80% { transform: rotateZ(-5deg); }
    90% { transform: rotateZ(2deg); }
    100% { transform: rotateZ(0deg); }
}

@keyframes signShake {
    0% { transform: translateY(0px) rotateZ(0deg); }
    10% { transform: translateY(5px) rotateZ(3deg); }
    20% { transform: translateY(-5px) rotateZ(-3deg); }
    30% { transform: translateY(4px) rotateZ(2.5deg); }
    40% { transform: translateY(-4px) rotateZ(-2.5deg); }
    50% { transform: translateY(3px) rotateZ(1.5deg); }
    60% { transform: translateY(-3px) rotateZ(-1.5deg); }
    70% { transform: translateY(2px) rotateZ(1deg); }
    80% { transform: translateY(-2px) rotateZ(-1deg); }
    90% { transform: translateY(1px) rotateZ(0.5deg); }
    100% { transform: translateY(0px) rotateZ(0deg); }
}
.draw-button {
    background-color: #FFCC00;
    color: #CC0000;
    border: none;
    padding: 15px 40px;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin: 10px 0;
}

.draw-button:hover:not(:disabled) {
    background-color: #FFDB4D;
    transform: translateY(-2px);
}

.draw-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.draw-button:disabled {
    background-color: #ccc;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.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); 
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #FFFAF0;
    border-radius: 20px;
    padding: 30px;
    width: 80%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: relative;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.sign-display {
    margin-bottom: 25px;
}

.sign-display h2 {
    font-size: 1.8em;
    color: #8B4513; 
    margin-bottom: 10px;
    font-weight: bold;
}

.sign-display p {
    font-size: 1.3em;
    color: #333;
    line-height: 1.6;
}

.coupon-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.2em;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.coupon-button:hover {
    background-color: #45a049;
}

.close-modal-button {
    background-color: #FF8C00;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-modal-button:hover {
    background-color: #FFA500;
}

.hidden {
    display: none;
}

.back-to-home-link-button {
    background-color: #007bff; 
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 30px;
    text-decoration: none;
    display: inline-block;
    width: auto;
}

.back-to-home-link-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.back-to-home-link-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

