/* style.css */
body {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    background-color: #FF00FF;
    background-image: url('cristiano-ronaldo-meme.gif');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #00FF00;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

marquee {
    width: 100%;
    font-size: 18px;
    background-color: #0000FF;
    color: #FFFF00;
    padding: 5px;
    font-weight: bold;
    border-bottom: 3px solid #00FFFF;
    border-top: 3px solid #00FFFF;
    box-sizing: border-box;
}

h1 {
    color: #FFFF00;
    text-shadow: 4px 4px #FF0000;
    font-size: 40px;
    background: rgba(0, 0, 255, 0.5);
    display: inline-block;
    padding: 10px;
    border: 8px dotted #00FF00;
    margin: 5px 0;
}

.container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.main-btn {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    background-color: #FFFF00;
    color: #FF00FF;
    font-size: 24px;
    font-weight: bold;
    padding: 15px 30px;
    border: 8px outset #00FFFF;
    cursor: pointer;
    animation: wobble 0.3s infinite;
    text-transform: uppercase;
}

.retake-btn {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    background-color: #00FF00;
    color: #0000FF;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 16px;
    border: 5px outset #FF00FF;
    cursor: pointer;
    display: none;
    margin: 10px auto;
    animation: blinker 0.2s infinite;
}

@keyframes wobble {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(6deg) scale(1.15);
        background-color: #FF00FF;
        color: #FFFF00;
    }

    50% {
        transform: rotate(0deg) scale(1.05);
    }

    75% {
        transform: rotate(-6deg) scale(1.15);
        background-color: #00FFFF;
        color: #FF0000;
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.blink {
    animation: blinker 0.15s linear infinite;
    color: #FFFF00;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.divider {
    color: #FFFF00;
    font-size: 40px;
    margin: 10px 0;
    letter-spacing: 20px;
}

.footer {
    background: #000000;
    color: #FFFFFF;
    padding: 20px;
    border-top: 3px solid #FFFF00;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.counter {
    font-size: 20px;
    color: #00FFFF;
    background: #FF0000;
    display: inline-block;
    padding: 5px 10px;
    border: 4px solid #FFFF00;
    font-weight: bold;
    position: absolute;
    top: 40px;
    left: 10px;
    z-index: 1000;
}

.ie-badge {
    margin-top: 20px;
    border: 2px solid #FFFFFF;
    background: #0000FF;
    color: #FFFFFF;
    display: inline-block;
    padding: 5px 10px;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
    font-weight: bold;
}

#countdown {
    display: none;
    font-size: 250px;
    color: #FF0000;
    font-weight: bold;
    text-shadow: 10px 10px #FFFF00, -10px -10px #00FFFF;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

#flash {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    z-index: 999;
}

#result-wrapper {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin: 10px auto;
    width: 100%;
}

#will-smith-img {
    height: 380px;
}

#result {
    background: #EEEEEE;
    padding: 15px 15px 50px 15px;
    border: 15px solid #FFFFFF;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.8);
    width: 320px;
    position: relative;
    transform: rotate(5deg);
    z-index: 50;
    box-sizing: border-box;
    margin-left: -50px;
}

#result img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border: 1px solid #999;
}

#caption {
    color: #0000FF;
    font-size: 26px;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
    background: #FFFF00;
}

#xp-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    background: #ECE9D8;
    border: 3px solid #0054E3;
    border-radius: 5px 5px 0 0;
    z-index: 500;
    color: #000000;
    font-size: 13px;
    font-family: Tahoma, sans-serif;
    text-align: left;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.xp-title {
    background: linear-gradient(to bottom, #0058EE, #3593FF, #0058EE);
    color: white;
    padding: 4px 8px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xp-close {
    background: #EB614F;
    border: 1px solid white;
    color: white;
    font-size: 12px;
    line-height: 12px;
    padding: 1px 4px;
    cursor: pointer;
    border-radius: 3px;
}

.xp-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ECE9D8;
}

.xp-icon {
    font-size: 40px;
    color: #FF0000;
    font-weight: bold;
}

.xp-button {
    text-align: center;
    margin-bottom: 15px;
}

.xp-button button {
    padding: 4px 20px;
    font-family: Tahoma, sans-serif;
    background: #ECE9D8;
    border: 1px solid #7F9DB9;
    box-shadow: inset 1px 1px #FFF, 1px 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    width: 80px;
}

#main-content {
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
}

#spacer {
    flex-grow: 1;
    width: 100%;
    min-height: 20vh;
}