@font-face { 
    font-family: Supercell; 
    src: url(fonts/supercell-magic.ttf); 
} 

body {
    background: #222;
    color: #fff;
    font-family: Supercell;
    margin: 0;
    max-width: 700px;
    margin: auto;
    padding-top: 25px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1rem;
}

.header-text {
    flex: 1;
}

.clan-logo {
    width: 220px;
    margin-left: 30px;
    position: relative;
    top: -0.8em;
}
.clogo {
    width: 220px;
}

.clan-title {
    margin: 0;
    line-height: 1;
}

.clan-details h3 {
    margin: 0px 0 0 0;
}

.clan-info {
    flex: 1;
}

.clan-title, .clan-details h3 {
    margin: 0;
    color: #fff;
}

.clan-title {
    font-size: 3.5rem;
    line-height: 1;
}

.clan-details h3 {
    font-size: 1.4rem;
    color: #ddd;
    margin: 8px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    
}

.stat-box, .member-card {
    background: #333;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}



.clan-header {
    position: relative;
    margin: 2rem 0;
}

.clan-symbol {
    width: 180px;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(85,192,63,0.3));
}

.dragon {
    width: 20%;
    height: auto;
    transform: scaleX(1.4) translateY(-20px);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Rules Section */
.clan-rules {
    background: rgba(51,51,51,0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #85c03f;
    position: relative;
    z-index: 2;
}

.clan-rules h3 {
    color: #85c03f;
    font-size: 1.8rem;
    margin: 1.5rem 0;
}

.clan-rules ul {
    columns: 2;
    column-gap: 3rem;
    padding-left: 1.5rem;
}

.clan-rules li {
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.4;
}

.clan-rules li:before {
    content: "•";
    color: #85c03f;
    font-size: 1.5em;
    position: absolute;
    left: -1.2rem;
}

.join-section {
    text-align: center;
    padding: 0.5rem 1rem 3rem 1rem;
    background: #1a1a1a;
    border-radius: 15px;
    margin: 2rem 0;
    border: 2px solid #333;
}

.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.discord-button {
    background: linear-gradient(180deg, #5865F2 0%, #4752C4 100%);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: bold;
    border: 2px solid #4752C4;
    transition: transform 0.2s ease;
}

.discord-button img {
    width: 28px;
    height: 28px;
}


.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.coc-button {
    display: inline-block;
    position: relative;
    padding: 12px 35px;
    border: 1px solid #000;
    border-radius: 14px;
    background: linear-gradient(180deg, #d3ebb7 0%, #85c03f 40%, #366c1b 100%);
    font-family: Supercell;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 -2px #000, 0 0 #000, 0 2px #000, 0 4px #000,
                -1px -1px #000, 1px -1px #000, 1px 0 #000, -1px 0 #000,
                1px 1px #000, -1px 1px #000, 1px 2px #000, -1px 2px #000;
    box-shadow: 0 0 0 1px #000,
                0 0 0 2px #000,
                0 4px 0 2px rgba(0,0,0,.2);
    transition: all 0.1s ease;
    margin: 10px;
}

.coc-button span {
    position: relative;
    z-index: 2;
}

.coc-button:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 12px;
    background: linear-gradient(180deg, #7fc427 0%, #58a221 100%);
    box-shadow: inset 0 0 3px 1px rgba(255,255,255,0.23);
}

.coc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px #000,
                0 0 0 2px #000,
                0 6px 0 2px rgba(0,0,0,.2);
}

.coc-button:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 1px #000,
                0 0 0 2px #000,
                0 2px 0 2px rgba(0,0,0,.2);
}


/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        gap: 20px;
    }
    
    .clan-logo {
        max-width: 90px;
    }
    
    .clan-title {
        font-size: 2.8rem;
    }
    
    .clan-details h3 {
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .stats-grid {
        flex-directoin: column;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .clan-logo {
        max-width: 70px;
    }
    
    .clan-title {
        font-size: 2.2rem;
    }
}