/* Modern UI for CMM702 Tap Logging Experiment */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Main Container */
div {
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 20px;
}

h2 {
    color: #fff;
    text-align: center;
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

p {
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Device Selection Buttons */
#buttoncontainer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

#variable1, #variable2 {
    width: 100%;
    height: 60px;
    font-size: 1.1em;
    font-weight: 500;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#variable1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#variable1:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

#variable2 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

#variable2:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.5);
}

/* Main Tap Container */
#container {
    display: none;
    padding: 30px;
    background: rgba(255,255,255,0.08);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: auto;
}

/* Counter Display */
#counter {
    min-height: 50px;
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Tap Button */
#tapHere {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e94560 0%, #ff6b6b 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    box-shadow: 
        0 10px 30px rgba(233, 69, 96, 0.4),
        inset 0 -5px 20px rgba(0,0,0,0.2),
        inset 0 5px 20px rgba(255,255,255,0.2);
    transition: all 0.15s ease;
    animation: pulse 2s infinite;
}

#tapHere:hover {
    transform: scale(1.05);
}

#tapHere:active {
    transform: scale(0.95);
    box-shadow: 
        0 5px 15px rgba(233, 69, 96, 0.3),
        inset 0 5px 20px rgba(0,0,0,0.3);
    animation: none;
}

#tapHere img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

@keyframes pulse {
    0% {
        box-shadow: 
            0 10px 30px rgba(233, 69, 96, 0.4),
            inset 0 -5px 20px rgba(0,0,0,0.2),
            inset 0 5px 20px rgba(255,255,255,0.2);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(233, 69, 96, 0.6),
            0 0 60px rgba(233, 69, 96, 0.3),
            inset 0 -5px 20px rgba(0,0,0,0.2),
            inset 0 5px 20px rgba(255,255,255,0.2);
    }
    100% {
        box-shadow: 
            0 10px 30px rgba(233, 69, 96, 0.4),
            inset 0 -5px 20px rgba(0,0,0,0.2),
            inset 0 5px 20px rgba(255,255,255,0.2);
    }
}

/* Continue Button */
#continue {
    display: none;
    width: 100%;
    height: 55px;
    font-size: 1.1em;
    font-weight: 600;
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 180, 219, 0.4);
    transition: all 0.3s ease;
}

#continue:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 180, 219, 0.5);
}

/* Action indicator (hidden) */
#action {
    display: none;
}

/* Text Styling */
.spanTime {
    color: #ffd93d;
    font-size: 1.4em;
    font-weight: 700;
}

.spanWhite {
    color: #fff;
    font-size: 1.1em;
    line-height: 1.6;
}

span {
    color: #ffd93d;
    font-size: 1.2em;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
    h2 {
        font-size: 2.2em;
    }
    
    #buttoncontainer {
        flex-direction: row;
        justify-content: center;
    }
    
    #variable1, #variable2 {
        width: 200px;
    }
    
    #container {
        padding: 40px;
    }
    
    #tapHere {
        width: 200px;
        height: 200px;
    }
}

@media screen and (min-width: 1200px) {
    #tapHere {
        width: 220px;
        height: 220px;
    }
    
    #tapHere img {
        width: 70px;
        height: 70px;
    }
}
