body {
    font-family: 'Georgia', sans-serif;
    background-color: #f8f7f2;
    color: #3a2a22;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

h1 {
    color: #5d4037;
    text-align: center;
    font-size: 2.8rem;
    margin: 2rem 0 0.5rem;
    font-weight: bold;
    letter-spacing: 0.03em;
}

h2 {
    color: #5d4037;
    font-size: 1.8rem;
    margin-top: 2rem;
    font-weight: bold;
}

h3 {
    color: #5d4037;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    font-weight: bold;
}

p {
    text-align: justify;
    margin-bottom: 1.2rem;
}

.bgimg {
      background-image: url('chessset.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      position: relative;
      height: 300px;
      padding: 50px 0;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
}

.bgimg h1 {
    color: #000;
    text-align: center;
    font-size: 3.5rem;
    font-weight: bold;
    letter-spacing: 0.03em;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
    margin: 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}



hr, 
body::before,
body::after {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(93, 64, 55, 0), rgba(93, 64, 55, 0.75), rgba(93, 64, 55, 0));
    margin: 2rem auto;
    width: 95%;
}

body::before {
    content: "";
    display: block;
    margin-top: 1rem;
}

body::after {
    content: "";
    display: block;
    margin-bottom: 1rem;
}


nav {
    background-color: #5d4037;
    text-align: center;
    padding: 1rem 0;
    margin: 2rem 0;
    box-shadow: none;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #f1ebe5;
    text-decoration: none;
    padding: 0.7rem 2rem;
    display: inline-block;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    border-radius: 0;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #d7ccc8;
    background-color: transparent;
    text-decoration: underline;
}

.nav-link-c {
    text-decoration: none;
    color: #fff;
    background-color: transparent;
    border-radius: 0;
}

.nav-link-c-active {
    text-decoration: underline;
    color: #fff;
    background-color: transparent;
    border-radius: 0;
}



.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}



aside {
    background-color: #f1ebe5;
    border-radius: 0;
    border-left: 5px solid #5d4037;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: none;
}

aside h2 {
    font-size: 1.4rem;
    border-bottom: 1px solid #d7ccc8;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #5d4037;
}

aside ul {
    margin-left: 1.5rem;
    padding-left: 1.5rem;
}

aside a {
    color: #5d4037;
    text-decoration: underline;
}

aside a:hover {
    color: #8d6e63;
    text-decoration: underline;
}


figure {
    margin: 1rem 0;
    text-align: center;
}

figcaption {
    font-style: italic;
    color: #8d6e63;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

img {
    border-radius: 0;
    border: 1px solid #d7ccc8;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}


article {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #d7ccc8;
}

article:last-child {
    border-bottom: none;
}


b {
    color: #5d4037;
    font-weight: bold;
}


a {
    color: #5d4037;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.2s ease;
}

a:hover {
    color: #5d4037;
    text-decoration: underline;
}

a:visited {
    color: #b3a69e !important;
    text-decoration: underline;
    font-weight: normal;
}
p a, p a[target="_blank"] {
    color: #5d4037;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.2s ease;
}

p a:hover, p a[target="_blank"]:hover {
    color: #5d4037;
    text-decoration: underline;
}

p a:visited, p a[target="_blank"]:visited {
    color: #b3a69e !important;
    text-decoration: underline;
    font-weight: normal;
}

video {
    border: 1px solid #d7ccc8;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}




@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0.3rem 0;
    }
    
    #sakkvilagbajnoksagok,
    #lebonyolitas {
        font-size: 1.5rem;
        padding-left: 0.8rem;
    }
    
    .row {
        flex-direction: column;
    }
}


.champion-name {
    font-weight: bold;
    color: #5d4037;
}

#mult, #jelen {
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}

.section-title {
    border-bottom: 1px solid #d7ccc8;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.champions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #d7ccc8;
}

.champions-table th {
    background-color: #5d4037;
    color: #f1ebe5;
    text-align: left;
    padding: 0.8rem 1rem;
    font-weight: bold;
    border-bottom: 2px solid #8d6e63;
}

.champions-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #d7ccc8; 
}

.champions-table tr:nth-child(even) {
    background-color: #f8f5f0;
}

.champions-table tr:hover {
    background-color: #f1ebe5;
}

.champions-table tr:last-child td {
    border-bottom: none;
}

details {
    margin-bottom: 1rem;
    color: #8d6e63;
}

details summary {
    cursor: pointer;
    padding: 0.5rem 0;
}

details summary:hover {
    color: #5d4037;
}

caption {
    padding: 0.5rem;
    color: #8d6e63;
    font-style: italic;
    text-align: left;
}

.carousel-content {
    position: relative;
    background-color: #f1ebe5;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 800px;
}

.champion-carousel-img {
    max-height: 400px;
    object-fit: cover;
    border: 3px solid #d7ccc8;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.carousel-caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 1rem;
    background-color: rgba(93, 64, 55, 0.8);
    border-radius: 4px;
    margin-top: 1rem;
}

.carousel-caption h3 {
    color: #fff;
    margin-top: 0;
    font-weight: bold;
}

.carousel-caption p {
    color: #f1ebe5;
    text-align: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(93, 64, 55, 0.5);
    padding: 1.5rem;
    border-radius: 50%;
}

.carousel-indicators button {
    background-color: #8d6e63;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.carousel-indicators button.active {
    background-color: #5d4037;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0.3rem 0;
    }
    
    #sakkvilagbajnoksagok,
    #lebonyolitas {
        font-size: 1.5rem;
        padding-left: 0.8rem;
    }
    
    .row {
        flex-direction: column;
    }
    
    .champions-table {
        font-size: 0.9rem;
    }
    
    .champions-table th,
    .champions-table td {
        padding: 0.5rem;
    }
}


@media print {
    
    nav, 
    aside,
    .carousel-indicators,
    .carousel-control-prev,
    .carousel-control-next,
    .bgimg {
        display: none !important;
    }
    
    
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }
    

    img {
        max-width: 300px !important;
        max-height: 200px !important;
    }
    
    .champion-carousel-img {
        max-height: 200px !important;
    }
    

    .champions-table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .champions-table th {
        background-color: white !important;
        color: black !important;
        border-bottom: 1px solid #000;
    }
    
    .champions-table tr:nth-child(even) {
        background-color: white;
    }
    

    section, article {
        page-break-inside: avoid;
    }
    
    h1, h2 {
        page-break-after: avoid;
    }
    

    a {
        color: black !important;
        text-decoration: underline;
    }
    

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    

    .carousel-content {
        box-shadow: none;
        padding: 0;
    }
    
    .carousel-caption {
        background-color: white !important;
        color: black !important;
        padding: 0;
    }
    
    .carousel-caption h3,
    .carousel-caption p {
        color: black !important;
    }
    

    .carousel-item {
        display: none !important;
    }
    
    .carousel-item.active {
        display: block !important;
    }
}