body {
    margin: 0;
    overflow: hidden; /* Prevents scrolling */
}

.game-header {
    background: linear-gradient(to right, #2c3e50, #3498db);
    min-height: 100vh;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.header-content {
    position: relative;
}

.hint-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hint-button:hover {
    background-color: white;
    color: #2c3e50;
    transform: scale(1.1);
}

.header-content h1 {
    color: white;
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.start-button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-button:hover {
    background-color: white;
    color: #2c3e50;
    transform: scale(1.05);
}

.game-container {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    transform: translateY(-100%);
    opacity: 0;
}

.game-container h2 {
    color: white;
    font-size: 2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slide-out {
    animation: slideOut 0.5s forwards;
}

.slide-in {
    animation: slideIn 0.5s forwards;
}

@keyframes slideOut {
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.items-list {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.item {
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.item-box {
    position: fixed;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 400px;
    text-align: center;
    opacity: 0;
    z-index: 999;
}

.item-box h3 {
    color: white;
    margin: 0 0 2rem 0;
    font-size: 2rem;
}

.buy-button {
    padding: 1rem 2.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.buy-button:hover {
    background-color: white;
    color: #2c3e50;
}

.buy-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.buy-button:disabled:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.slide-in-box {
    animation: slideInBox 0.3s forwards;
}

@keyframes slideInBox {
    to {
        opacity: 1;
    }
}

.item-description {
    color: white;
    margin: 1rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.item-cost {
    color: white;
    margin: 1rem 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.points-display {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    z-index: 1000;
}

.begin-game-button {
    margin: 2rem auto;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.begin-game-button:hover {
    background-color: white;
    color: #2c3e50;
    transform: scale(1.05);
}

.week-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    display: none;
}

.week-container h2 {
    color: white;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.5s ease;
}

.slide-out-up {
    animation: slideOutUp 0.5s forwards;
}

.fade-in {
    display: block;
    animation: fadeIn 1s forwards;
    animation-delay: 0.5s;
}

.slide-to-top {
    animation: slideToTop 0.5s forwards;
}

@keyframes slideOutUp {
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideToTop {
    to {
        top: 2rem;
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.inventory-display {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    z-index: 1000;
}

.inventory-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    z-index: -1;
}

.inventory-display h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inventory-display ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inventory-display li {
    margin: 0.5rem 0;
    font-size: 1rem;
    opacity: 0.9;
}

.calendar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    min-width: 800px;
    transition: opacity 0.5s ease;
}

.calendar-day {
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background-color: rgba(40, 167, 69, 0.3);
}

.calendar-day:hover {
    background-color: rgba(40, 167, 69, 0.5);
}

.calendar.fade-in {
    animation: fadeIn 1s forwards;
}

.calendar-day.clicked {
    cursor: default;
    opacity: 0.7;
}

.calendar-day.clicked:hover {
    background-color: rgba(0, 0, 139, 0.3);
}

.continue-button {
    margin: 1rem auto;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.continue-button:hover {
    background-color: white;
    color: #2c3e50;
    transform: scale(1.05);
}

.continue-button.fade-in {
    animation: fadeInButton 0.5s forwards;
    visibility: visible;
}

@keyframes fadeInButton {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.continue-walking, .use-item {
    padding: 1rem 2.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    margin: 0.5rem;
}

.continue-walking:hover, .use-item:hover {
    background-color: white;
    color: #2c3e50;
}

.calendar-day[style*="rgba(139, 0, 0, 0.3)"]:hover {
    background-color: rgba(139, 0, 0, 0.5) !important;
}

.health-container,
.sanity-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.health-container h3,
.sanity-container h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.health-bar-bg {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.health-bar {
    height: 100%;
    background: linear-gradient(to right, #28a745, #34ce57);
    transition: width 0.3s ease;
}

.health-text,
.sanity-text {
    text-align: center;
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.death-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(139, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: white;
    z-index: 1000;
}

.death-screen h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.death-screen p {
    font-size: 1.2rem;
    margin: 0 0 2rem 0;
    opacity: 0.9;
}

.restart-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.restart-button:hover {
    background-color: white;
    color: #2c3e50;
    transform: scale(1.05);
}

.sanity-bar-bg {
    width: 100%;
    height: 20px;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.sanity-bar {
    height: 100%;
    background-color: white;
    transition: width 0.3s ease;
}
