/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Oct 06 2025 | 12:56:30 */
	/* CoC Styling */

/* Define CSS variables */
:root {
    --clash-yellow: #F6D365;
    --text-shadow: -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000, -2px 3px 1px #000000;
    --grey-border: #A9A9A9;
    --dark-grey: #666666;
    --white: #FFFFFF;
    --blue-accent: #1E90FF;
    --clash-green: #00FF00;
}

/* Page-specific styles (ID 37810) */
body.page-id-37810 {
    background: var(--clash-yellow) !important;
}

body.page-id-37810 .top-bar-hero,
body.page-id-37810 .main-menu,
body.page-id-37810 .icon-magnifier,
body.page-id-37810 .site-footer,
body.page-id-37810 .mobile-menu,
body.page-id-37810 .menu-toggle {
    display: none;
}

body.page-id-37810 #site-header,
body.page-id-37810 #top-bar-wrap {
    background: var(--clash-yellow) !important;
    border-color: var(--clash-yellow) !important;
}

/* Modal container */
.coc-modal {
    font-family: 'Clash of Clans', 'Comic Sans MS', sans-serif;
    max-width: 98%;
    margin: 2rem auto;
    padding: 7rem 0.5rem 0.5rem 0.5rem;
    background: #5a5a50;
    border-radius: 2rem;
    border-top: 0.2rem solid #eeeeeed0;
    box-shadow: -0.2rem -0.2rem 0 #222, 0.2rem -0.2rem 0 #222, -0.2rem 0.2rem 0 #222, 0.2rem 0.2rem 0 #222;
    position: relative;
    color: #fffffe;
    font-size: 1.2rem;
}

.coc-modal::after {
    position: absolute;
    content: "";
    width: 98%;
    height: 2rem;
    left: 50%;
    top: 0.5rem;
    border-radius: 2rem;
    transform: translate(-50%);
    background: linear-gradient(to top, rgba(255, 255, 255, 0.2), #938d8a);
}

/* Modal title */
.coc-modal > h2 {
    position: absolute;
    top: 1rem;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.2rem;
    text-align: center;
    margin: 0;
}

/* Modal headers */
.coc-modal h1, .coc-modal h2, .coc-modal h3, .coc-modal h4{
    margin: 0 0 10px;
    font-family: 'Clash of Clans', 'Comic Sans MS', sans-serif;
    font-weight: bold;
    text-align: center;
    color: var(--white);
    text-shadow: var(--text-shadow);
}

.coc-modal h3 { font-size: 2rem; }
.coc-modal h4 { font-size: 1.5rem; }

.coc-shadow-text {
    font-family: 'Clash of Clans', 'Comic Sans MS', sans-serif;
    text-shadow: -0.07rem -0.07rem 0.1rem #000, 0.07rem -0.07rem 0.1rem #000, -0.07rem 0.07rem 0.1rem #000, 0.07rem 0.07rem 0.1rem #000, 0 0.2rem 0.1rem rgba(0, 0, 0, 0.9);
    color: #fffffe;
    pointer-events: none;
}

/* Content headers */
.coc-content h2 {
    position: static !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    display: block;
    width: 100%;
    font-size: 2.5rem;
}

.coc-content h2.coc-shadow-text {
    font-size: 2.5rem;
    z-index: 1;
}

/* Modal content container */
.coc-container {
    width: 100%;
    padding: 3rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    border-radius: 2rem;
    background: #e8e8e0;
    color: #222;
}

/* Content section */
.coc-content {
    font-family: 'Clash of Clans', 'Comic Sans MS', sans-serif;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.coc-content p {
    margin: 4px 0;
    padding: 4px;
    text-align: center;
    font-size: 14px;
}

.coc-content .coc-data-group {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.coc-content img {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
}

.coc-content img[src*="20250926_-_October_season_calendar_16x9.webp"] {
    max-height: none !important;
    width: 1280px !important;
    height: auto !important;
}

.coc-content img[src*="https://meganano.uno/wp-content/uploads/2025/05/Clash-of-Clans-CWL.jpg"] {
    max-height: none !important;
    width: 1280px !important;
    height: auto !important;
}

/* Hall of Fame images */
.hof-trophy-img,
.hof-donor-img {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 0.5rem;
}

/* Button rows */
.coc-row {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0.5rem;
}

.coc-row:has(.coc-label-btn:only-child) {
    justify-content: center;
}

.coc-row:has(.coc-label-btn:only-child) .coc-label-btn {
    flex: 0 1 auto;
    max-width: 300px;
}

/* Button container */
.coc-label-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 3px;
    width: 18rem;
}

.coc-label-btn.single {
    display: inline-flex;
}

.coc-label-btn a.coc-btn.coc-green {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    box-shadow: -0.1rem -0.1rem 0 #222, 0.1rem -0.1rem 0 #222, -0.1rem 0.1rem 0 #222, 0.1rem 0.1rem 0 #222, 0 0.3rem 0 #222, 0 0.5rem 0 rgba(0, 0, 0, 0.1);
}

/* Buttons */
.coc-btn {
    position: relative;
    width: 18rem;
    padding: 1rem 0.4rem;
    margin-top: 0.5rem;
    border-radius: 0.8rem;
    border-top: 0.15rem solid #eeeeeed0;
    box-shadow: -0.1rem -0.1rem 0 #222, 0.1rem -0.1rem 0 #222, -0.1rem 0.1rem 0 #222, 0.1rem 0.1rem 0 #222, 0 0.3rem 0 #222, 0 0.5rem 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background: none;
    transition: transform 0.2s ease-in-out, filter 0.2s;
}

.coc-btn::after {
    position: absolute;
    content: "";
    width: 95%;
    height: 2.2rem;
    left: 50%;
    top: 10%;
    border-radius: 0.5rem;
    transform: translateX(-50%);
}

.coc-btn .coc-shadow-text {
    position: relative;
    z-index: 1;
    display: inline-block;
    text-align: center;
    width: 100%;
    font-size: 1rem;
}

.coc-btn.coc-green {
    background: #7ec62d;
    border: 0.1rem solid #98de4e;
}

.coc-btn.coc-green::after {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.2), #dcf684);
}

.coc-btn.coc-red {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    background: #e51217;
    border: 0.1rem solid #eb464b;
}

.coc-btn.coc-red::after {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.2), #ff8085);
}

.coc-btn.coc-red img {
    height: 2.2rem;
    object-fit: contain;
    z-index: 1;
}

.coc-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.coc-btn:hover .coc-shadow-text {
    text-shadow: -0.045rem -0.045rem 0 #222, 0.045rem -0.045rem 0 #222, -0.045rem 0.045rem 0 #222, 0.045rem 0.045rem 0 #222, 0 0.3rem 0 rgba(0, 0, 0, 0.8);
}

/* Toggle views */
.coc-toggle-view {
    display: none;
    position: relative;
    width: 100%;
    padding: 1rem;
    text-align: center;
}

.coc-toggle-view.coc-active {
    display: block;
}

/* Close button */
.coc-close-btn {
    margin: 1rem auto;
    display: block;
    text-align: center;
}

/* Data group (inputs and results) */
.coc-data-group {
    margin: 0 auto;
    width: 100%;
    margin-bottom: 10px;
}

.coc-data-group input {
    max-width: 20rem;
    margin: 0.5rem auto;
    display: block;
    font-family: 'Clash of Clans', 'Comic Sans MS', sans-serif;
    border-radius: 0.5rem;
    border: 0.1rem solid #c3c3bc;
    padding: 0.6rem;
    font-size: 1rem;
}

.coc-data-group#clan-results,
.coc-data-group#player-results {
    width: 100%;
    max-width: 50rem;
    background: #f5f5f5;
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}

/* Specific input styling */
#clan-tag,
#player-tag {
    max-width: 40rem; /* Double 20rem */
    width: 100%;
    height: 5rem; /* Approx. double default input height */
    font-size: 1.2rem; /* Slightly larger for readability */
    padding: 0.8rem;
    box-sizing: border-box;
}

#clan-tag::placeholder,
#player-tag::placeholder {
    text-align: center;
}

/* Data sections */
.data-section {
    margin-bottom: 1rem;
    text-align: left;
}

.data-section h3.coc-shadow-text {
    font-size: 1.6rem;
}

.member-entry {
    margin-bottom: 10px;
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.member-entry:last-child {
    border-bottom: none;
}

.member-entry h4.coc-shadow-text {
    font-size: 1.2rem;
    margin: 0.5rem 0 0.3rem;
}

/* Stat rows */
.stat-row {
    margin: 0.3rem 0;
    font-size: 1rem;
    color: #222;
    text-align: center;
}

.stat-row strong {
    color: #333;
    margin-right: 0.5rem;
}

.stat-row span {
    color: #1e90ff;
}

/* CWL info */
.cwl-info-container {
    padding: 0;
    margin: 0;
}

.cwl-info-entry {
    padding: 10px;
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
    background: var(--white);
    border-radius: 5px;
    text-align: center;
}

.cwl-info-icon {
    text-align: center;
    margin: 8px 0;
}

.cwl-info-icon img {
    width: 40px;
    height: 40px;
}

.cwl-info-icon .league-icon-placeholder {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 10px;
    color: #6c757d;
}

.cwl-info-entry .league-name,
.cwl-info-entry .bonuses {
    font-weight: bold;
    color: #007bff;
}

/* Lottery styles */
.lottery-data {
    color: #007bff !important;
    font-weight: bold;
}

#lottery-countdown {
    margin: 8px 0;
    color: #1e90ff;
    font-size: 16px;
    text-align: center;
}

#lottery-players li,
#lottery-winners p {
    margin: 6px 0;
    font-size: 14px;
    text-align: center;
}

#lottery-players li span,
#lottery-winners p span {
    color: #1e90ff;
}

/* CWL countdown */
#cwl-countdown {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin: 8px 0;
}

#cwl-countdown span {
    display: inline-block;
    min-width: 25px;
    text-align: center;
    color: #1e90ff;
}

/* Video gallery - Reverted to original state */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.video-thumb {
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 3px solid #222; /* Reverted to original black border */
    border-radius: 12px;
    overflow: hidden;
    background: #111; /* Reverted to original background */
}

.video-thumb:hover {
    transform: scale(1.05); /* Reverted to original hover effect */
    border-color: #4caf50; /* Reverted to original green hover */
}

.video-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video modal */
#videoModal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 1em;
}

#videoModal iframe {
    width: 90%;
    height: 80vh;
    border: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.video-title {
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Tab navigation */
.coc-tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.coc-tab-content {
    display: block;
    width: 100%;
    margin-top: 20px;
}

.coc-tab-pane {
    display: none;
}

.coc-tab-pane.coc-tab-active {
    display: block;
}

.coc-tab-btn {
    width: 18rem; /* Match .coc-btn */
    padding: 1rem 0.4rem; /* Match .coc-btn */
    margin-top: 0.5rem; /* Match .coc-btn */
    border-radius: 0.8rem; /* Match .coc-btn */
    border-top: 0.15rem solid #eeeeeed0; /* Match .coc-btn */
    box-shadow: -0.1rem -0.1rem 0 #222, 0.1rem -0.1rem 0 #222, -0.1rem 0.1rem 0 #222, 0.1rem 0.1rem 0 #222, 0 0.3rem 0 #222, 0 0.5rem 0 rgba(0, 0, 0, 0.1); /* Match .coc-btn */
    cursor: pointer;
    background: #7ec62d; /* Match .coc-green */
    border: 0.1rem solid #98de4e; /* Match .coc-green */
    transition: transform 0.2s ease-in-out, filter 0.2s, background-color 0.2s; /* Include background transition */
}

.coc-tab-btn::after {
    position: absolute;
    content: "";
    width: 95%;
    height: 2.2rem;
    left: 50%;
    top: 10%;
    border-radius: 0.5rem;
    transform: translateX(-50%);
    background: linear-gradient(to top, rgba(255, 255, 255, 0.2), #dcf684); /* Match .coc-green::after */
}

.coc-tab-btn .coc-shadow-text {
    font-size: 1rem; /* Match .coc-btn */
    position: relative;
    z-index: 1;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.coc-tab-btn.coc-tab-btn-active {
    background: #4caf50 !important; /* Keep active color */
    border-color: #66bb6a !important;
    transform: scale(1.05);
}

.coc-tab-btn.coc-tab-btn-active::after {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.2), #81c784) !important;
}

.coc-tab-btn.coc-tab-btn-active .coc-shadow-text {
    text-shadow: -0.045rem -0.045rem 0 #222, 0.045rem -0.045rem 0 #222, -0.045rem 0.045rem 0 #222, 0.045rem 0.045rem 0 #222, 0 0.3rem 0 rgba(0, 0, 0, 0.8);
}

.coc-tab-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.coc-tab-btn:hover .coc-shadow-text {
    text-shadow: -0.045rem -0.045rem 0 #222, 0.045rem -0.045rem 0 #222, -0.045rem 0.045rem 0 #222, 0.045rem 0.045rem 0 #222, 0 0.3rem 0 rgba(0, 0, 0, 0.8);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .coc-modal {
        margin: 1rem auto;
        padding: 8rem 0.3rem 0.3rem 0.3rem;
    }

    .coc-modal > h2 {
        font-size: 2rem;
    }

    .coc-modal h3 { font-size: 1.5rem; }
    .coc-modal h4 { font-size: 1rem; }

    .coc-content h2 {
        position: static !important;
        font-size: 2rem;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
        text-align: center !important;
        float: none !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100%;
    }

    .coc-content h2.coc-shadow-text {
        font-size: 1.5rem;
    }

    .coc-content p {
        font-size: 12px;
    }

    .coc-content p.coc-clashy-text {
        font-size: 0.9rem;
    }

    .coc-content img {
        max-height: 150px;
    }

    .coc-content img[src*="Clash-of-Clans-CWL.jpg"] {
        width: 90% !important;
        height: auto;
    }

    .hof-trophy-img,
    .hof-donor-img {
        width: 48px;
        height: 48px;
    }

    .coc-row {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        align-items: center;
    }

    .coc-label-btn {
        flex: 1;
        min-width: 0;
        max-width: 48%;
    }

    .coc-btn {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .coc-row:has(.coc-label-btn:only-child) {
        justify-content: center;
    }

    .coc-row:has(.coc-label-btn:only-child) .coc-label-btn {
        flex: 0 1 auto;
        max-width: 80%;
    }

    .coc-btn .coc-shadow-text {
        font-size: 0.9rem;
    }

    .coc-btn::after {
        height: 1.8rem;
    }

    .coc-btn.coc-red img {
        height: 1.8rem;
    }

    .coc-data-group input {
        max-width: 90%;
        font-size: 0.9rem;
    }

    .coc-data-group#clan-results,
    .coc-data-group#player-results {
        padding: 0.8rem;
    }

    #clan-tag,
    #player-tag {
        max-width: 100%; /* Fit screen */
        height: 4rem; /* Slightly smaller for mobile */
        font-size: 1rem;
        padding: 0.6rem;
    }
    
    #clan-tag::placeholder,
    #player-tag::placeholder {
        text-align: center;
    }
    
    .cwl-info-entry {
        font-size: 12px;
        padding: 8px;
    }

    .cwl-info-icon img,
    .cwl-info-icon .league-icon-placeholder {
        width: 32px;
        height: 32px;
    }

    .video-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    #lottery-countdown,
    #lottery-players li,
    #lottery-winners p {
        font-size: 12px;
    }

    #cwl-countdown {
        font-size: 1em;
    }

    .coc-tab-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .coc-tab-btn {
        width: 100%;
        max-width: 18rem; /* Match .coc-btn */
        padding: 0.5rem;
    }

    .coc-tab-btn .coc-shadow-text {
        font-size: 0.9rem; /* Match .coc-btn */
    }
}

@media (min-width: 480px) and (max-width: 767px) and (orientation: landscape) {
    .coc-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .coc-label-btn {
        width: 12rem;
    }

    .coc-btn {
        width: 12rem;
        font-size: 0.8rem;
    }

    .coc-btn .coc-shadow-text {
        font-size: .8rem;
    }

    .coc-tab-nav {
        flex-direction: row;
        gap: 1rem;
    }

    .coc-tab-btn {
        width: 12rem;
    }

    .coc-tab-btn .coc-shadow-text {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .coc-label-btn .coc-btn .coc-shadow-text {
        font-size: 1.3rem !important;
        font-family: 'Clash of Clans', 'Comic Sans MS', sans-serif !important;
    }

    .coc-tab-btn .coc-shadow-text {
        font-size: 1.3rem !important; /* Match .coc-btn */
    }
}