/* RuneScape 2147M Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffd700;
    min-height: 100vh;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loading-gif {
    max-width: 90vw;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.loading-text {
    font-size: 1.5rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-weight: 600;
}

.loading-bar {
    width: 300px;
    height: 20px;
    background: #333;
    border: 2px solid #ffd700;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Main Content - Initially Hidden */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.main-content.show {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Header Styles */
header {
    margin-bottom: 40px;
    padding: 20px 0;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        0 0 30px #ffd700,
        2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1.5rem;
    color: #c9b037;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

/* Image Container */
.image-container {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image {
    max-width: 100%;
    max-height: 400px;
    border: none;
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
}

/* CA Box Styles */
.ca-container {
    margin: 30px auto;
    max-width: 600px;
}

.ca-box {
    background: linear-gradient(145deg, #4a4a4a, #3a3a3a);
    border: 4px solid #cd853f;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.9),
        inset 0 2px 0 rgba(205, 133, 63, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.7),
        0 0 20px rgba(205, 133, 63, 0.3);
    position: relative;
    overflow: hidden;
    margin: 30px auto;
}

.ca-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.ca-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.ca-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.ca-title {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.ca-content {
    margin-bottom: 25px;
}

.ca-name {
    font-size: 1.4rem;
    color: #ff8c42;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 140, 66, 0.6);
}

.ca-description {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ca-username {
    color: #90ee90;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin-top: 8px;
    text-shadow: 0 0 5px rgba(144, 238, 144, 0.3);
}

.ca-reward {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ca-reward-label {
    color: #90ee90;
    font-weight: 600;
}

.ca-reward-text {
    color: #ffd700;
    font-weight: 500;
}

.ca-copy-btn {
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
    border: 2px solid #666;
    border-radius: 8px;
    color: #ffffff;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.ca-copy-btn:hover {
    background: linear-gradient(145deg, #5a5a5a, #3a3a3a);
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.ca-copy-btn:active {
    transform: translateY(0);
}

.copy-icon {
    width: 16px;
    height: 16px;
}

/* Social Links Styles */
.social-container {
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(145deg, #4a4a4a, #3a3a3a);
    border: 2px solid #666;
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.social-link:hover {
    background: linear-gradient(145deg, #5a5a5a, #4a4a4a);
    border-color: #1da1f2;
    color: #1da1f2;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.3);
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Content Section */
.content-section {
    margin: 60px 0;
}

.info-box {
    background: linear-gradient(145deg, #2a1f0a, #1a1508);
    border: 3px solid #8b4513;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(139, 69, 19, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

.info-box::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    pointer-events: none;
}

.info-box h2 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.info-box p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e6d16b;
}

/* Facts Grid */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.fact-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 3px solid #654321;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b4513, #a0522d, #8b4513);
}

.fact-card:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 
        0 10px 25px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.1);
}

.fact-card:hover::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

.fact-card h3 {
    font-size: 1.4rem;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.fact-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #d4d4aa;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 2px solid #c9b037;
}

.footer-text p {
    font-size: 1.1rem;
    color: #c9b037;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .info-box h2 {
        font-size: 2rem;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .info-box {
        padding: 20px;
    }
    
    .fact-card {
        padding: 20px;
    }
}