* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#paycheck-container {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.paycheck-window {
    background-color: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 12px;
    padding: 8px;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.window-header {
    position: relative;
    height: 24px;
    margin-bottom: 6px;
}

.window-icon.right {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.window-icon.left {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.window-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #2c3e50;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 0;
    white-space: nowrap;
    text-align: center;
    width: calc(100% - 80px);
}

.paycheck-window h2 {
    color: #2c3e50;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 0;
}

#math-problem {
    font-size: 18px;
    text-align: center;
    margin-bottom: 6px;
    color: #2c3e50;
    padding: 4px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-weight: 500;
}

#answer-input {
    width: 100%;
    padding: 6px;
    margin-bottom: 6px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    background-color: #fff;
    transition: all 0.2s ease;
}

#answer-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 2px;
    width: 100%;
    padding: 0 8px;
}

#submit-answer, #cancel-answer {
    flex: 1;
    padding: 6px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#submit-answer {
    background-color: #3498db;
    color: white;
}
#submit-answer:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

#cancel-answer {
    background-color: #e0e0e0;
    color: #2c3e50;
}
#cancel-answer:hover {
    background-color: #b0b0b0;
    color: #fff;
    transform: translateY(-1px);
}

.hidden {
    display: none;
}

.timer-bar-container {
    width: 100%;
    height: 8px;
    background: #e0e7ef;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    will-change: transform;
}

#timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #3498db 0%, #4fc3f7 100%);
    transform-origin: left;
    will-change: transform;
}

.unemployed-message {
    text-align: center;
    padding: 12px;
    color: #2c3e50;
}

.unemployed-message p {
    margin-bottom: 8px;
    font-size: 14px;
}

#close-unemployed {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 5px;
}

#close-unemployed:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

.waypoint-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 5px 0;
    width: 100%;
}

.waypoint-button:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

#unemployed-timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #3498db 0%, #4fc3f7 100%);
    transform-origin: left;
    will-change: transform;
}

#unemployed-container {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
} 