/* SoberLife III - Main Styles */
/* Base styles, layout, and core visual design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin: 0;
    overflow: hidden;
}

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: calc(100vh - 20px);
    text-align: center;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Game Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.game-header h1 {
    margin: 0;
    flex: 1;
}

/* Help Button */
.help-btn {
    background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
    color: white;
    border: 2px solid #1E90FF;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(65, 105, 225, 0.3);
    min-height: 40px;
}

.help-btn:hover {
    background: linear-gradient(135deg, #1E90FF 0%, #4169E1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(65, 105, 225, 0.4);
}

.help-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.help-text {
    font-size: 14px;
}

/* Base button styles */
button {
    background: #4169E1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

button:hover {
    background: #1E90FF;
    transform: translateY(-2px);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Typography */
h1 {
    margin: 10px 0;
}

h2 {
    margin: 15px 0;
}

h3 {
    margin: 10px 0;
}

p {
    margin: 10px 0;
}

/* Form elements */
input[type="radio"] {
    margin-right: 8px;
}

label {
    display: block;
    margin: 2px 0;
    cursor: pointer;
}

/* Animations */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px) rotate(-5deg);
    }

    75% {
        transform: translateX(5px) rotate(5deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Task Display Animations */
@keyframes taskHighlight {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
        box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
    }
}

@keyframes taskChange {
    0% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }

    25% {
        transform: scale(1.05) rotateY(-10deg);
        box-shadow: 0 20px 40px rgba(255, 107, 107, 0.6);
    }

    50% {
        transform: scale(0.95) rotateY(10deg);
        opacity: 0.9;
    }

    75% {
        transform: scale(1.02) rotateY(-5deg);
        box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
    }

    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
        box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
    }
}

@keyframes taskPulse {

    0%,
    100% {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

    50% {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}