body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: radial-gradient(circle at center bottom, #220933 70%, #1076ba 100%);
    font-family: Verdana, sans-serif;
}

.container {
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 20px auto;
    background: radial-gradient(circle, #2c2f48, #1d1f33);
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    box-shadow: 0px 0px 30px rgba(34, 9, 51, 0.8);
    justify-content: center;
    border-radius: 15px;
    box-sizing: border-box;
}

.logo {
    text-align: center;
    padding-top: 20px;
}

.logo img {
    width: 200px;
    height: auto;
}

.fantasyroyale-wrapper {
    position: relative;
    width: 100%;
    max-width: 767px;
    margin: 0 auto;
    pointer-events: none;
}

.fantasyroyale-wrapper:hover .blue-box {
    display: flex;
}

.fantasyroyalediv {
    padding: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fantasyroyalediv img {
    width: auto;
    height: 200px;
    pointer-events: auto;
}

.blue-box {
    background: radial-gradient(circle, #FF8C00, #B25400);
    color: white;
    font-family: Verdana, sans-serif;
    position: fixed;
    display: none;
    pointer-events: auto;
    padding: 30px;
    box-shadow: 0px 0px 30px rgba(34, 9, 51, 0.8);
    border-radius: 15px;
    box-sizing: border-box;
    align-items: center;
    gap: 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    max-width: 720px;
    width: 90%;
}

.blue-box img {
    max-width: 100%;
    height: auto;
}

.blue-box .left-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 1 200px;
}

.blue-box .right-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 400px;
}

.blue-box .small-logo {
    width: 200px;
}

.blue-box .badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.blue-box .badge {
    width: 120px;
    height: 38px;
}

.blue-box .discord-badge {
    width: 50px;
    height: 38px;
    order: 1;
}

.check-it-out-button img {
    width: 400px;
}

.check-it-out-button:hover img {
    animation: shake 0.5s infinite;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    max-height: 600px;
    z-index: 100;
    display: none;
    background: radial-gradient(circle, #2c2f48, #1d1f33);
    border-radius: 15px;
    flex-direction: column;
}

.popup-content {
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
    color: #cccccc;
    z-index: 101;
}

.close-button:hover {
    color: #ffffff;
}

.text-content {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #eeeeee;
    text-align: left; /* Changed from center to left */
}

.text-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center; /* Added to keep titles centered */
}

.slogan {
    font-size: 1.5em;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
}

.FR {
    font-size: 1em;
    color: #ffffff;
}

#aboutPopup .first-letter {
    font-size: 1.5em;
    font-weight: bold;
}

#aboutPopup .about-1 {
    font-size: 1.25em;
    font-weight: bold;
}

#aboutPopup hr {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1);
}

#contactPopup .popup-content input[type="text"],
#contactPopup .popup-content input[type="email"],
#contactPopup .popup-content textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    text-align: left;
    margin-bottom: 10px;
}

a.button {
    padding: 10px 20px;
    width: 30%;
    max-width: 500px;
    background-color: #FF8C00;
    color: white;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.25em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

a.button:hover {
    background-color: #0056b3;
    color: white;
}

.site-footer {
    width: 100%;
    background-color: #11041a;
    color: #A9B1C2;
    text-align: center;
    padding: 30px 20px;
    box-sizing: border-box;
}

.site-footer p {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    color: #A9B1C2;
}

.site-footer .footer-links a {
    color: #F0F2F5;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1em;
}

.site-footer .footer-links a:hover {
    text-decoration: underline;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@media (max-width: 650px) {
    .blue-box {
        flex-direction: column;
    }

    .blue-box .left-pane {
        margin-bottom: 20px;
    }
}

/* Hides the "Viewed" text and dot in the EULA */
#eulaPopup .viewed-text,
#eulaPopup .viewed-dot ,
#eulaPopup .section-button,
#eulaPopup .modal-version-selector-container,
#eulaPopup .modal-close-btn,
#eulaPopup .intro-meta-container,
#eulaPopup .eula-header-centered h1,
.modal-header h2 {
    display: none;
}

#eulaPopup .card-title {
    font-weight: bold;
}