* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: black;
}

footer {
    background: #000;
    color: white !important;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

footer p {
    color: white !important;
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #000;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 101;
    transition: opacity 0.3s;
    opacity: 0.8;
}

.back-to-top:hover {
    background: #333;
}

.back-to-top.show {
    display: flex;
}

.recipes {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.recipe {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.recipe:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recipe h4 {
    color: #444;
    margin-bottom: 0.5rem;
}

.recipe h4 a {
    color: #444;
    text-decoration: underline;
    cursor: pointer;
}

.recipe h4 a:hover {
    color: #000;
}

.recipe-modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    color: black;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #999;
}



body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    padding-top: 80px;
    padding-bottom: 80px;
}

body.home-page {
    background: url('images/background1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    overflow: hidden;
}

nav {
    background: #000;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: #333;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.logo {
    margin-bottom: 2rem;
}

.logo img {
    max-width: 375px;
    height: auto;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

@media (min-width: 769px) and (max-width: 1024px) {
    .members {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .members {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .logo img {
        max-width: 250px;
    }
    
    h1 {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
    }
    
    main {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    nav {
        margin: 0;
        padding: 1rem;
        width: 100vw;
        position: fixed;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        text-align: center;
        top: 0;
    }
    
    body {
        padding-top: 80px;
    }
    

}



@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.75rem;
        text-align: center;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .profile-info {
        padding: 1rem;
    }
}

h1 {
    background: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    margin-top: 1rem;
    margin-bottom: 0;
    color: #000;
}

body.home-page h1 {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 10px;
}

body.members-page {
    background: url('images/background2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.members-page h1 {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 10px;
}

body.tournament-results-page h1 {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 10px;
}

body.tournament-results-page {
    background: url('images/mtg4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.about-page {
    background: url('images/mtg2.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

@media (max-width: 768px) {
    body.about-page {
        background-size: cover;
    }
}

body.about-page main {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 2rem auto;
    min-height: auto;
    display: block;
    justify-content: flex-start;
    align-items: flex-start;
}

body.about-page h1 {
    color: white;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

body.about-page p {
    color: white;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.podcast-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.podcast-links a {
    background: #dc3545;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.podcast-links a:hover {
    background: #c82333;
}

.members {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.member {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.member h3 {
    margin-bottom: 0.5rem;
    color: #000;
}

/* Profile page styles */
.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    color: #444444;
}

.profile-info h2 {
    margin: 0 0 1rem 0;
    color: #666;
    font-weight: normal;
}

.profile-info {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #444444;
    flex: 1;
    position: relative;
}

.nerdz-points {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #444444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nerdz-points {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
        margin-top: 0;
    }
    
    .profile-header {
        margin-top: 8rem;
    }
    
    main {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    h1 {
        margin-top: 2rem;
    }
}

.profile-details {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-details h3 {
    color: #444444;
    margin-top: 2rem;
}

.profile-details ul {
    margin: 1rem 0;
}

body:not(.home-page):not(.members-page):not(.about-page):not(.tournament-results-page) main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: left;
    min-height: auto;
    display: block;
    justify-content: flex-start;
    align-items: flex-start;
}

body:has(.kyle-profile) { background: url('images/yawg.jpg') center/cover no-repeat !important; color: white; }
body:has(.kyle-profile) h3, body:has(.kyle-profile) .back-link { color: white !important; }
body:has(.zander-profile) { background: url('images/zanderbg1.png') center/cover no-repeat !important; color: white; }
body:has(.zander-profile) h3, body:has(.zander-profile) .back-link { color: white !important; }
body:has(.josh-profile) { background: url('images/joshbg1.jpg') center/cover no-repeat !important; color: white; }
body:has(.josh-profile) h3, body:has(.josh-profile) .back-link { color: white !important; }
body:has(.ryan-profile) { background: url('images/ryanbg2.jpg') center/cover no-repeat !important; color: white; }
body:has(.ryan-profile) h3, body:has(.ryan-profile) .back-link { color: white !important; }
body:has(.tony-profile) { background: url('images/bolasstainedglass.jpg') center/cover no-repeat !important; color: white; }
body:has(.tony-profile) h3, body:has(.tony-profile) .back-link { color: white !important; }
body:has(.adam-profile) { background: url('images/adambg1.jpg') center/cover no-repeat !important; color: white; }
body:has(.adam-profile) h3, body:has(.adam-profile) .back-link { color: white !important; }
body:has(.stefan-profile) { background: url('images/wakinghaven.jpg') center/cover no-repeat !important; color: black; }
body:has(.stefan-profile) h3, body:has(.stefan-profile) .back-link { color: black !important; }
body:has(.drake-profile) { background: url('images/drakebg1.jpg') center/cover no-repeat !important; color: black; }
body:has(.drake-profile) h3, body:has(.drake-profile) .back-link { color: white !important; background: rgba(0,0,0,0.7) !important; padding: 0.5rem 1rem !important; border-radius: 5px !important; display: inline-block !important; }
body:has(.drake-profile) .profile-info { opacity: 0.7; }
body:has(.drake-profile) .recipes { opacity: 0.7; }

body:has(.drake-profile) p { color: #333 !important; }
body:has(.drake-profile) .profile-info p { color: #333 !important; }
body:has(.drake-profile) .profile-info h1, body:has(.drake-profile) .profile-info h2 { color: #333 !important; }
body:has(.cole-profile) { background: url('images/cooking.jpg') center/cover no-repeat !important; color: black; }
body:has(.kyle-profile) h3, body:has(.kyle-profile) .back-link { color: white !important; background: rgba(0,0,0,0.7) !important; padding: 0.5rem 1rem !important; border-radius: 5px !important; display: inline-block !important; }
body:has(.kyle-profile) .profile-info, body:has(.kyle-profile) .recipes { opacity: 0.7; }

body:has(.kyle-profile) p, body:has(.kyle-profile) .profile-info p, body:has(.kyle-profile) .profile-info h1, body:has(.kyle-profile) .profile-info h2 { color: #333 !important; }

body:has(.zander-profile) h3, body:has(.zander-profile) .back-link { color: white !important; background: rgba(0,0,0,0.7) !important; padding: 0.5rem 1rem !important; border-radius: 5px !important; display: inline-block !important; }
body:has(.zander-profile) .profile-info, body:has(.zander-profile) .recipes { opacity: 0.7; }

body:has(.zander-profile) p, body:has(.zander-profile) .profile-info p, body:has(.zander-profile) .profile-info h1, body:has(.zander-profile) .profile-info h2 { color: #333 !important; }

body:has(.josh-profile) h3, body:has(.josh-profile) .back-link { color: white !important; background: rgba(0,0,0,0.7) !important; padding: 0.5rem 1rem !important; border-radius: 5px !important; display: inline-block !important; }
body:has(.josh-profile) .profile-info, body:has(.josh-profile) .recipes { opacity: 0.7; }

body:has(.josh-profile) p, body:has(.josh-profile) .profile-info p, body:has(.josh-profile) .profile-info h1, body:has(.josh-profile) .profile-info h2 { color: #333 !important; }

body:has(.ryan-profile) h3, body:has(.ryan-profile) .back-link { color: white !important; background: rgba(0,0,0,0.7) !important; padding: 0.5rem 1rem !important; border-radius: 5px !important; display: inline-block !important; }
body:has(.ryan-profile) .profile-info, body:has(.ryan-profile) .recipes { opacity: 0.7; }

body:has(.ryan-profile) p, body:has(.ryan-profile) .profile-info p, body:has(.ryan-profile) .profile-info h1, body:has(.ryan-profile) .profile-info h2 { color: #333 !important; }

body:has(.tony-profile) h3, body:has(.tony-profile) .back-link { color: white !important; background: rgba(0,0,0,0.7) !important; padding: 0.5rem 1rem !important; border-radius: 5px !important; display: inline-block !important; }
body:has(.tony-profile) .profile-info, body:has(.tony-profile) .recipes { opacity: 0.7; }

body:has(.tony-profile) p, body:has(.tony-profile) .profile-info p, body:has(.tony-profile) .profile-info h1, body:has(.tony-profile) .profile-info h2 { color: #333 !important; }

body:has(.adam-profile) h3, body:has(.adam-profile) .back-link { color: white !important; background: rgba(0,0,0,0.7) !important; padding: 0.5rem 1rem !important; border-radius: 5px !important; display: inline-block !important; }
body:has(.adam-profile) .profile-info, body:has(.adam-profile) .recipes { opacity: 0.7; }

body:has(.adam-profile) p, body:has(.adam-profile) .profile-info p, body:has(.adam-profile) .profile-info h1, body:has(.adam-profile) .profile-info h2 { color: #333 !important; }

body:has(.stefan-profile) h3, body:has(.stefan-profile) .back-link { color: white !important; background: rgba(0,0,0,0.7) !important; padding: 0.5rem 1rem !important; border-radius: 5px !important; display: inline-block !important; }
body:has(.stefan-profile) .profile-info, body:has(.stefan-profile) .recipes { opacity: 0.7; }

body:has(.stefan-profile) p, body:has(.stefan-profile) .profile-info p, body:has(.stefan-profile) .profile-info h1, body:has(.stefan-profile) .profile-info h2 { color: #333 !important; }

body:has(.cole-profile) h3, body:has(.cole-profile) .back-link { color: white !important; background: rgba(0,0,0,0.7) !important; padding: 0.5rem 1rem !important; border-radius: 5px !important; display: inline-block !important; }
body:has(.cole-profile) .profile-info, body:has(.cole-profile) .recipes { opacity: 0.7; }

body:has(.cole-profile) p, body:has(.cole-profile) .profile-info p, body:has(.cole-profile) .profile-info h1, body:has(.cole-profile) .profile-info h2 { color: #333 !important; }

body:has(.kyle-profile) footer p, body:has(.zander-profile) footer p, body:has(.josh-profile) footer p, body:has(.ryan-profile) footer p, body:has(.tony-profile) footer p, body:has(.adam-profile) footer p, body:has(.stefan-profile) footer p, body:has(.drake-profile) footer p, body:has(.cole-profile) footer p { color: white !important; }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    cursor: pointer;
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #444444;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* Member card links */
.member a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.member a:hover img {
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.3s ease;
}

.member h3, .member p {
    background: #f8f8f8;
    padding: 0.5rem;
    border: 1px solid black;
    margin: 0;
}

.member h3 {
    border-radius: 5px 5px 0 0;
    border-bottom: none;
}

.member p {
    border-radius: 0 0 5px 5px;
}
.kyle-member h3, .kyle-member p {
    background: #8B0000;
    color: white;
}
main p {
    text-align: left;
}

.commander-img-right {
    width: 50px;
    height: 70px;
    object-fit: cover;
    margin-left: 10px;
    vertical-align: middle;
}

.commander-img-left {
    width: 50px;
    height: 70px;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
}
.profile-details h3:nth-of-type(2) + ul {
    font-size: 1.2em;
    line-height: 1.5;
}
ul {
    list-style-type: none;
}
.commander-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: 8px;
}

.commander-name {
    padding: 10px;
    font-size: 1.2em;
    border: 1px solid black;
    color: black;
}

.commander-image {
    border: 1px solid black;
    padding: 10px;
}

.commander-image img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    margin: 2px;
}

.commander-image {
    opacity: 1 !important;
}

.commander-image img {
    opacity: 1 !important;
}
.decklist-link {
    color: #444444;
    text-decoration: underline;
    font-size: 0.9em;
}

.decklist-link:hover {
    text-decoration: underline;
}


.zander-member {
    background: linear-gradient(90deg, blue, red, black);
}
.josh-member {
    background: linear-gradient(90deg, green, red);
}
.ryan-member {
    background: linear-gradient(90deg, black, green, blue);
}
.tony-member {
    background: linear-gradient(90deg, black, red);
}
.adam-member {
    background: linear-gradient(90deg, blue, red);
}

.stefan-member {
    background: linear-gradient(90deg, blue, white, green);
}
.drake-member {
    background: linear-gradient(90deg, blue, white);
}
.member {
    border: 2px solid black;
}
.kyle-member {
    background: #36454F;
}
.cole-member {
    background: #F3E5AB;
}
/* Tournament Results Tabs */
.tab-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.arrow-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab-display {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.tab-year {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
    text-align: center;
}

.tab-year.active {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    opacity: 1;
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.tab-year.inactive {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    opacity: 0.8;
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .tab-selector {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
        align-items: center;
    }
    
    .tab-display {
        width: auto;
        justify-content: center;
    }
    
    .tab-year.inactive {
        display: none;
    }
    
    .arrow-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .tab-year {
        font-size: 1.4rem;
        padding: 1rem 2rem;
        min-width: 120px;
    }
    
    .tab-year.active {
        transform: scale(1);
    }
}

.tab-content {
    display: none;
    border: none;
    padding: 20px;
    color: white;
}

.tab-content.active {
    display: block;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid black;
    border-radius: 10px;
    overflow: hidden;
}

.results-table th, .results-table td {
    border: 1px solid black;
    padding: 10px;
    text-align: left;
    color: white;
    background: rgba(0, 0, 0, 0.4);
}

.results-table th {
    background: rgba(0, 0, 0, 0.4);
    font-weight: bold;
    color: white;
}

.results-table a {
    color: white;
    text-decoration: underline;
}

.results-table a:hover {
    color: #ccc;
}

.official-links {
    margin-top: 3rem;
    text-align: center;
}

.official-links h2 {
    color: white;
    margin-bottom: 1rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.links-grid a {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid white;
    transition: background 0.3s;
}

.links-grid a:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .official-links {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .links-grid a {
        padding: 1.25rem;
        font-size: 1.1rem;
    }
}

