/* Reset default styles */
body, html {
    padding: 0;
    margin: 0;
    background: #090606 url(../images/background.jpg) no-repeat top center;
    font-family: Arial, Helvetica, sans-serif;
    color: #FFF;
    font-size: 12px;
    height: 100%;
}

/* Center the title with a new background image */
.sub-page-title {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px; /* Increased height for emphasis */
    background: rgba(0, 0, 0, 0.5) url('../images/title-bg.jpg') no-repeat center center; /* New background image */
    background-size: cover; /* Ensure the image covers the container */
    border: 3px solid #8b4513; /* Border around the title image */
    border-radius: 15px; /* Rounded corners for the border */
    margin-bottom: 30px;
    position: relative; /* For overlay */
    padding: 20px; /* Add padding to align with the container */
}

/* Add a dark overlay to the title background for better readability */
.sub-page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.sub-page-title h1 {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 64px; /* Larger font size */
    color: #d4af37;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin: 0;
    position: relative; /* Ensure text is above the overlay */
    z-index: 2;
}

.sub-page-title h1 span {
    display: block;
    font-size: 28px;
    color: #a67c52;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative; /* Ensure text is above the overlay */
    z-index: 2;
}

/* Main container styling */
.container_2.account {
    background: rgba(0, 0, 0, 0.8); /* Darker background */
    border: 3px solid #8b4513;
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

/* Inner container with background image */
.cont-image {
    background: rgba(31, 23, 20, 0.9) url('../images/discord-bg.jpg') no-repeat center center;
    background-size: cover;
    border: 2px solid #5a3a22;
    border-radius: 15px;
    padding: 30px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.7);
}

/* Welcome message styling */
.message {
    font-family: 'MedievalSharp', cursive;
    color: #d4af37;
    text-align: center;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    border: 2px solid #8b4513;
    border-radius: 10px;
    padding: 20px;
    margin: 0 auto 30px auto;
    max-width: 400px; /* Smaller width to match the Discord widget */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.message h2 {
    font-size: 28px; /* Slightly smaller font size */
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.message p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Discord widget container */
.discord-widget {
    width: 100%;
    height: 435px; /* Adjusted height */
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Discord widget styling */
iframe {
    width: 80%; /* Wider widget */
    height: 100%;
    border: 3px solid #8b4513;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
}

/* Link styling */
.message a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #8b4513;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.message a:hover {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sub-page-title h1 {
        font-size: 48px; /* Smaller font size for mobile */
    }

    .sub-page-title h1 span {
        font-size: 20px;
    }

    .message {
        max-width: 90%; /* Full width on mobile */
    }

    .message h2 {
        font-size: 24px;
    }

    .message p {
        font-size: 16px;
    }

    .discord-widget {
        height: 300px; /* Smaller widget for mobile */
    }

    iframe {
        width: 100%; /* Full width on mobile */
    }
}