body{
    background-color: #0f5132;
    font-family: Arial, sans-serif;
    }
    .title-box{
    display: inline-block;
    padding: 15px 30px;
    background-color: #8b1e3f;
    color: #e4dcdc ;
    border: 4px solid #e4dcdc; 
    font-size: 36px;
    font-weight: bold;
    border-radius: 15px;
    margin: 20px auto;
    text-align: center;
    
    }
    .center-wrapper{
    text-align: center;
    }
    
    .dayBox {
    background-color: #8b1e3f;  
    color: #e4dcdc;            
    font-size: 24px;          
    font-weight: bold;
    border: 2px solid #e4dcdc;   
    border-radius: 10px;
    padding: 20px;         
    cursor: pointer;
    width: 100%;
    height: 100px;
    justify-content: center;
    }
    .dayBox:hover {
     background-color: #d27585;  
    }
    .dayBox:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    
    .calendar {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* divides the line into even parts */
    gap: 10px; /*gap between buttons*/
    padding: 20px; /*gap between the button container and the boarders of the page*/
    }
    .question-container {
        max-width: 600px;
        margin: 40px auto;
        padding: 20px;
        background-color: #8b1e3f;
        border: 4px solid #e4dcdc;
        border-radius: 15px;
        color: white;
        text-align: center;
        font-family: Arial, sans-serif;
    }
    
    
    #question {
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 25px;
    }
    
    
    .answer-btn {
        padding: 15px 25px;
        margin: 10px;
        background-color:  #8b1e3f;
        border: 3px solid #e4dcdc;
        font-size: 20px;
        border-radius: 10px;
        cursor: pointer;
        transition: 0.2s;
        color: #e4dcdc;
    }
    
    #answer-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    .answer-btn:hover {
        background-color:  #d27585;
        transform: scale(1.03);
    }
    
    
    #vastaus {
        font-size: 24px;
        margin-top: 20px;
        color:#e4dcdc;
        font-weight: bold;
    }
    
    
    #back-btn {
        margin-top: 25px;
        padding: 12px 25px;
        background-color: #8b1e3f;
        border: 4px solid  #e4dcdc;
        border-radius: 12px;
        font-size: 22px;
        cursor: pointer;
        transition: 0.2s;
        color: #e4dcdc;
    }
    
    #back-btn:hover {
        background-color: #d27585;
        transform: scale(1.05);
    }
    .back-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    .quiz-box {
        max-width: 900px;
        margin: 40px auto;
        padding: 40px;
        background-color: #0b3b24; 
        border-radius: 25px;
        border: 4px solid #e4dcdc; 
        text-align: center;
    }
    .text-container {
        background: #0d3327;     
        color: #e4dcdc;          
        padding: 20px 25px;
        border-radius: 15px;
        max-width: 800px;
        margin: 20px auto;
        line-height: 1.6;
        font-size: 18px;
        text-align: center;
        border: 5px solid #8b1e3f;
    }
    .index-intro {
        max-width: 1200px;          
        margin: 20px auto 25px;     
        padding: 15px 25px;         
    
        background-color: #0f3b2d;
        border: 3px solid #b01e3f;
        border-radius: 15px;
    
        color: #ffffff;
        font-size: 20px;            
        line-height: 1.45;          
        text-align: center;
    }
    
    .snow-canvas {
      position: fixed;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 9999;
    }
    .tree {
        position: fixed;
        bottom: 0;
        width: 500px;
        z-index: -1;       
        opacity: 0.9;
    }
    
    .leftTree { left: 0; }
    .rightTree { right: 0; }
    
    
    .tree-click {
        position: fixed;
        bottom: 0;
        width: 300px;
        height: 600px; 
        cursor: pointer;
        background: transparent;
        z-index: 1;
    }
    
    .tree-click.leftTree { left: 0; }
    .tree-click.rightTree { right: 0; }
    
    .garland {
        position: fixed;        
        left: 0;
        width: 100%;             
        display: flex;
        justify-content: space-around;
        pointer-events: none;    
        z-index: -1;            
        gap: 10px;
    }
    
    .garland.top { top: 0; }  
    .garland.bottom { bottom: 0; }
    
    
    .garland span {
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background-color: red;
        animation: blink 1.2s infinite alternate;
    }
    
    .garland span:nth-child(2) { background-color: yellow; animation-delay: 0.2s; }
    .garland span:nth-child(3) { background-color: green; animation-delay: 0.4s; }
    .garland span:nth-child(4) { background-color: blue; animation-delay: 0.6s; }
    .garland span:nth-child(5) { background-color: orange; animation-delay: 0.8s; }
    .garland span:nth-child(6) { background-color: yellow; animation-delay: 0.2s; }
    .garland span:nth-child(7) { background-color: green; animation-delay: 0.4s; }
    .garland span:nth-child(8) { background-color: blue; animation-delay: 0.6s; }
    .garland span:nth-child(9) { background-color: orange; animation-delay: 0.8s; }
    
    
    @keyframes blink {
        0% { opacity: 0.2; }
        100% { opacity: 1; }
    }
    .reveal-toggle-btn {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 58px;
        height: 58px;
    
        background: #b0183f;              /* deep Christmas red */
        border: 3px solid #e4cdcc;        /* soft border */
        border-radius: 50%;
    
        display: flex;
        align-items: center;
        justify-content: center;
    
        font-size: 30px;                   /* icon size */
        color: #fff;
    
        cursor: pointer;
        z-index: 1000;
        transition: 0.25s ease;
    
        /* Subtle glow initially */
        box-shadow: 0 0 8px rgba(255, 200, 230, 0.2);
    }
    .reveal-toggle-btn:hover {
        transform: scale(1.15) rotate(6deg);
        box-shadow: 0 0 10px rgba(255, 230, 250, 0.6);
    }
    .reveal-toggle-btn.open {
        background: #d52758;                   /* lighter red */
        transform: rotate(180deg);
        box-shadow: 0 0 14px rgba(255, 200, 230, 0.7);
    }
    .reveal-toggle-btn span,
    .reveal-toggle-btn {
        animation: sparklePulse 1.8s infinite ease-in-out;
    }
    
    @keyframes sparklePulse {
        0%   { opacity: 1; transform: scale(1); }
        50%  { opacity: 0.75; transform: scale(1.08); }
        100% { opacity: 1; transform: scale(1); }
    }
   .reveal-panel {
        position: fixed;
        top: 100px;
        right: 20px;
        width: 260px;
        padding: 18px;
        border-radius: 16px;

        /* Transparent glass style */
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(8px);

        border: 2px solid rgba(255, 255, 255, 0.25);
        color: white;

        opacity: 0;
        transform: translateY(-15px);
        pointer-events: none;
        transition: 0.25s ease;
        z-index: 999;
    }

    .reveal-panel.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    /* Panel number button (normal) */
    .reveal-item {
        width: 48px;
        height: 48px;
        font-size: 20px;
        background: rgba(255, 255, 255, 0.15);  /* semi-transparent white */
        border: 2px solid #e4cdcc;              /* soft beige border */
        color: white;
        border-radius: 8px;
        cursor: pointer;
        transition: 0.25s ease;
    }

    /* Hover */
    .reveal-item:hover {
        background: rgba(255, 255, 255, 0.30);
        border-color: #ffffff;
        transform: scale(1.08);
    }

    /* Selected (clicked) */
    .reveal-item.selected {
        background: #d72758;                    /* Christmas red */
        border-color: #ffffff;
        transform: scale(1.10);
        box-shadow: 0 0 10px rgba(255, 210, 220, 0.5);
    }
    .reveal-item-btn.selected {
        background: #d72758;                    /* Christmas red */
        border-color: #ffffff;
        transform: scale(1.10);
        box-shadow: 0 0 10px rgba(255, 210, 220, 0.5);
    }
    .reveal-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .reveal-item-btn,
    .apply-reveal-btn,
    .close-reveal-btn,
    .open-all-btn,
    .close-all-btn,
    .open-until-today-btn,
    .reset-calendar-btn {
        width: 100%;
        padding: 8px;
        background: #b0183f;
        border: 2px solid #e4cdcc;
        border-radius: 8px;
        color: white;
        cursor: pointer;
        margin-top: 10px;
        transition: 0.25s;
        font-size: 14px;
    }

    .reveal-list-item-btn:hover,
    .apply-reveal-btn:hover,
    .close-reveal-btn:hover,
    .open-all-btn:hover,
    .close-all-btn:hover,
    .open-until-today-btn:hover,
    .reset-calendar-btn:hover {
        background: #d72758;
    }

    /* ============================================================
    MOBILE RESPONSIVE
    ============================================================ */
    @media (max-width: 768px) {
        .reveal-panel {
            right: 10px;
            width: 92%;
            max-width: 320px;
        }

        .reveal-toggle-btn {
            top: auto;
            bottom: 20px;
            right: 20px;
        }
    }

    @media (max-width: 480px) {
        .reveal-list {
            grid-template-columns: repeat(3, 1fr);
        }

        .reveal-list-item {
            width: 42px;
            height: 42px;
            font-size: 16px;
        }
    }