* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.home-button {
    color: white;
    font-weight: bold;
    font-size: 2em;
    background: linear-gradient(90deg,#FFE57F 0%,#FFB74D 100%);
    border: none; /* Remove the border */
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition-duration: 0.4s;
    border-radius: 10px;
}

.home-button:hover {
    background: linear-gradient(90deg,#FFB74D 0%,#FF8A65 100%);
    color: white;
    transform: translateY(-3px);
    font-size: xx-large;
}
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg,#0f2027 0%,#203a43 50%,#2c5364 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.star-selection-container {
    text-align: center;
    max-width: 1200px;
}

.star-selection-container h1 {
    margin-bottom: 10px;
    font-size: 36px;
}

.star-selection-container h2 {
    margin-bottom: 40px;
    color: #4CAF50;
    font-size: 24px;
}

.star-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.star-option {
    background: linear-gradient(180deg,#2b2b2b 0%,#1f2a2a 100%);
    padding: 30px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    min-width: 200px;
}

.star-option:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.25);
}

.star-rating {
    font-size: 32px;
    margin-bottom: 10px;
}

.star-option h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.star-option p {
    margin: 5px 0;
    color: #ccc;
    font-size: 14px;
}

.game-container {
    text-align: center;
}

.machine {
    background: linear-gradient(180deg,#2c2c2c 0%,#1b2930 100%);
    padding: 40px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 800px;
}

.machine-line-container {
    position: relative;
    width: 100%;
    height: 100px;
    margin: 30px 0;
}

.grey-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(90deg,#6b6b6b 0%,#4a4a4a 100%);
    transform: translateY(-50%);
}

.white-box {
    position: absolute;
    top: 50%;
    left: 35%;
    width: 120px;
    height: 40px;
    background: linear-gradient(90deg,#ffffff 0%,#f3f4f6 100%);
    border: none;
    transform: translateY(-50%);
}

.yellow-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg,#FFD54F 0%,#FFB74D 100%);
    border: none;
    transform: translate(-50%, -50%);
}

.red-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,#ff6b6b 0%,#ff4757 100%);
    left: 0;
    transition: left 0.016s linear;
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #444;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #666;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.instructions {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.instructions h2 {
    margin-bottom: 10px;
    color: #4CAF50;
}

.instructions p {
    margin: 5px 0;
    line-height: 1.6;
}

.status {
    font-size: 24px;
    margin: 20px 0;
    font-weight: bold;
}

#activateBtn {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

#activateBtn:hover {
    background: linear-gradient(90deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

#activateBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.4);
}

#skillcheckBtn {
    background: linear-gradient(90deg, #FFB74D, #FF9800);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 183, 77, 0.3);
    margin-top: 15px;
    animation: pulse 1s infinite;
}

#skillcheckBtn:hover {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 183, 77, 0.5);
}

#skillcheckBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 183, 77, 0.4);
}

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

.machine.inactive {
    opacity: 0.5;
}

.prompt {
    font-size: 18px;
    color: #4CAF50;
    margin: 10px 0;
    font-weight: bold;
}

.completion-message {
    font-size: 28px;
    color: #4CAF50;
    margin: 20px 0;
    font-weight: bold;
}
