html {
    height: 100%;
    width: 100%;
    margin: 0;
}

body {
    font-family: Helvetica;
    color: #666666;
    font-size: 13px;
    line-height: 1.6;
    height: 100%;
    width: 100%;
    margin: 0;
    background-color: rgb(229, 236, 244);
}

#errorSvg {
    background-image: url("../images/mill.svg");
    background-repeat: no-repeat;
    height: 488px;
    width: 700px;
    background-size: 100%;
    background-position: 31% 94%;
    margin: auto;
}

#wifiErrorSvg {
    background-image: url("../images/windmill.svg");
    background-repeat: no-repeat;
    height: 300px;
    width: 300px;
    background-size: 74%;
    background-position: 50%;
    margin: auto;
    animation: rotateForever 2s infinite linear;
    transform-origin: 50% 50%;
    position: absolute;
    top: 121px;
    left: 200px;
}

#cloud1 {
    background-image: url("../images/cloud-two.svg");
    background-repeat: no-repeat;
    background-size: 50%;
    position: absolute;
    width: 200px;
    height: 200px;
    top: 150px;
}

#cloud2 {
    background-image: url("../images/cloud-three.svg");
    background-repeat: no-repeat;
    background-size: 70%;
    position: absolute;
    width: 200px;
    height: 200px;
    top: 150px;
    left: 514px;
}

#wind1 {
    background-image: url("../images/wind.svg");
    background-repeat: no-repeat;
    background-size: 44%;
    position: absolute;
    width: 200px;
    height: 200px;
    top: 85px;
    left: 446px;
}

#wind2 {
    background-image: url("../images/wind-2.svg");
    background-repeat: no-repeat;
    background-size: 40%;
    position: absolute;
    width: 200px;
    height: 200px;
    top: 292px;
    left: 50px;
}

span.header {
    font-size: 40px;
    color: #666;
    display: inline-block;
    text-align: left;
    line-height: normal;
    font-family: Helvetica;
}

span.subHeader {
    font-size: 30px;
    color: #666;
    display: inline-block;
    text-align: left;
    line-height: normal;
    font-family: Helvetica;
}

#mainDivWrapper {
    position: absolute;
    background-color: rgb(229, 236, 244);
    margin: auto;
    width: 700px;
    margin-left: -350px;
    left: 50%;
    margin-top: -310px;
    top: 50%;
    height: 600px;
    text-align: center;
}

/* Animation */
@keyframes rotateForever {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Payslip Easter Egg */
.payslip-active #wifiErrorSvg {
    animation: happySpin 0.5s infinite linear !important;
}

.payslip-active #errorSvg {
    animation: bounce 1s infinite !important;
}

@keyframes happySpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.flying-payslip {
    position: fixed;
    top: -100px;
    font-size: 60px;
    z-index: 9999;
    animation: fallAndSway 5s linear forwards;
    pointer-events: none;
}

@keyframes fallAndSway {
    0% {
        top: -100px;
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(50px) rotate(90deg);
    }
    50% {
        transform: translateX(-30px) rotate(180deg);
    }
    75% {
        transform: translateX(40px) rotate(270deg);
    }
    100% {
        top: 110vh;
        transform: translateX(-20px) rotate(360deg);
    }
}

#celebrationBanner {
    display: none;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3095D8, #2a7bb5);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(48, 149, 216, 0.4);
    font-size: 24px;
    font-weight: bold;
    z-index: 1000;
    animation: slideDown 0.5s ease-out, float 2s ease-in-out infinite;
}

.payslip-active #celebrationBanner {
    display: block;
}

@keyframes slideDown {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.payslip-active .subHeader {
    animation: rainbow 3s linear infinite, pulse 1s ease-in-out infinite;
    font-size: 35px !important;
}

@keyframes rainbow {
    0% { color: #4CAF50; }
    25% { color: #2196F3; }
    50% { color: #9C27B0; }
    75% { color: #FF9800; }
    100% { color: #4CAF50; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
