@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

body {
    min-height: 100vh;
    background: linear-gradient(-45deg, #F7A72B, #F1429B,#20A1E4,#17D39D) 0/ 500%;
    animation: gradient 20s infinite alternate;
    /* background-size: cover; */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    margin: 0;
}

main {
    flex: 1; /* Allow main content to take available space */
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between sections */
}

@keyframes gradient { to { background-position: 100% }}

html, body {
    overflow-x: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Start of Header */
nav {
    background-color: #CA3F00;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    width: 100%;
    list-style:  none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li {
    height: 60px;
}

nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #fff;
}

nav a:hover {
    color: #ff5100;
}

nav li:first-child{
    margin-right: auto;
}

.logo {
    max-width: 60px;
}

.logo:hover {
    background-color: #ff5100;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: #ca4000c9;
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
}

.sidebar li:not(:first-child) a:hover {
    background-color: #fff;
    border-radius: 0.4rem;
    color: #CA3F00;
}

.menu-button {
    display: none;
    fill: #fff;
}
/* end of Header */

.home {
    padding: 0 5%;
    text-align: center;
    color: black;
    display: flex;
    justify-content: center;
    border: black;
    width: 100%;
}

.home h1 {
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 3.25rem;
    font-weight: 600;
}

.home p{
    font-size: 0.85rem;
    width: auto;
    font-weight: 300;
    margin: -5px auto 25px;
    text-align: center;
    max-width: 75%;
}

/* home page info grid */
.info-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 
        repeat(auto-fit, minmax(250px, 1fr));
    margin-inline: auto;
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 10px;
}


.infogrid1,.infogrid2 {
    grid-row: span 3;
    display: grid;
    gap: 1rem;
    background: yellow;
    border: 2px solid #CA3F00;
    border-radius: 0.5rem;
    overflow: hidden;
    padding-left: 50px;
    padding-bottom: 20px;
    padding-right: 10px;
    padding-top: 10px;
    overflow-y: auto;
}

.infogrid3 {
    grid-row: span 3;
    display: grid;
    gap: 1rem;
    overflow: hidden;
    justify-content: center;
}




.infogrid1 h2,.infogrid2 h2{
    /* text-align: center; */
    justify-content: center;
}


.infogrid1 h3 {
    /* margin-left: -20px; */
    justify-content: center;
}



.infogrid2 h3 {
    justify-content: center;
}

.information ul,.information ol {
    padding-left: 40px !important;
}

.infoouterlist {
    display: list-item;
    list-style-type: disc;
}

.infoouterlist a {
    list-style-type: none;
    text-decoration: none;
    color: black;
}

.info-grid .infobuttonlist {
    display: list-item;
    list-style-type: none;
}

.inforulesbutton.inforulesbutton {
    background: #1f0d37;
    padding: 0.3rem 1.5rem;
    outline: none;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.inforulesbutton:hover {
    background: transparent;
    border-color: #1f0d37;
    color: #1f0d37;
}

.inforesultsbutton, .inforulesbutton {
    background: #1f0d37;
    padding: 0.3rem 0.5rem;
    outline: none;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.inforesultsbutton:hover {
    background: transparent;
    border-color: #1f0d37;
    color: #1f0d37;
}

.inforesultsbutton:hover {
    background: transparent;
    border-color: #1f0d37;
    color: #1f0d37;
}
/* home page info grid end */

.rules {
    padding: 0 5%;
    text-align: center;
    color: black;
    display: flex;
    justify-content: center;
    border: black;
    width: 100%;
    flex: 1;
}

.rulesinformation {
    flex: 4;
}

.rules h1 {
    margin-bottom: 10px;
    font-size: 3.25rem;
    font-weight: 600;
}

.rules p{
    font-size: 1rem;
    width: auto;
    font-weight: 300;
    margin: -5px auto 25px;
    text-align: center;
    max-width: 75%;
}

.rules-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 
        repeat(auto-fit, minmax(250px, 1fr));
    margin-inline: auto;
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 10px;
}

.rulesgrid1,.rulesgrid2 {
    grid-row: span 3;

    display: grid;
    gap: 1rem;
    background: rgba(255, 255, 0, 0.671);
    border: 2px solid #CA3F00;
    border-radius: 0.5rem;
    overflow: hidden;
    padding-left: 50px;
    padding-bottom: 20px;
    padding-right: 10px;
    text-align: 0 5%;
}

.rulesgrid1 h2,.rulesgrid2 h2{
    justify-content: center;
}

.nestedlistBlue {
    display: list-item;
    list-style-type: disc;
    color: blue;
    margin-left: 25px;
}

.nestedlistBlue p{
    color: black;
}

.nestedlistWhite {
    display: list-item;
    list-style-type: disc;
    color: #ffffff;
    margin-left: 25px;
}

.nestedlistWhite p{
    color: black;
}

.nestedlistRed {
    display: list-item;
    list-style-type: disc;
    color: red;
    margin-left: 25px;
}

.nestedlistRed p{
    color: black;
}

.italic-text {
    font-style: italic;
}

/* .sponsor {
    padding: 0 5%;
    text-align: center;
    color: black;
    display: flex;
    justify-content: center;
    border: black;
    width: 100%;
    flex: 1;
}

.sponsor h1 {
    margin-bottom: 10px;
    font-size: 3.25rem;
    font-weight: 600;
}

.sponsor p{
    font-size: 1rem;
    width: auto;
    font-weight: 300;
    margin: -5px auto 25px;
    text-align: center;
    max-width: 75%;
} */

/* sponsor grid */

.sponsor {
    flex: 1;
}

.sponsors-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 
        repeat(auto-fit, minmax(250px, 1fr));
    margin-inline: auto;
    margin: 10px auto;
    padding: 0 30px;
    margin-top: 10px;
}

.sponsors-grid > a {
    display: block;
    text-decoration: none;
    color: white;
}

.sponsors-grid > a > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(43, 44, 49);
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 20px;
}

.sponsors-grid > div {
    justify-content: center;
    align-items: center;
    background: rgba(43, 44, 49);
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 20px;
}

.sponsors-grid a:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
}

.sponsorgrid1 a {
    display: inline-block;
    color: white;
    transition: transform 0.2s ease-in-out;
}

.sponsorgrid1 a:hover {
    transform: scale(1.05);
}

.sponsors-grid img {
    width: 100%;
    height: 200px; /* or another consistent height */
    object-fit: fill;
    border-radius: 0.5rem;
}

.sponsors-grid h4 {
    text-align: center;
    color: white;
}

.sponsors-grid p {
    text-align: center;
    color: white;
}

.sponsors-grid ul {
    text-align: center;
    color: white;
    list-style: none;
}

.sponsors-grid a {
    text-decoration: none;
    color: white;
}

.sponsorgrid19 ul {
    list-style: disc;
    padding-top: 5px;
}

.sponsorgrid19 li {
    font-size: smaller;
}
/* end of sponsors grid */

/* raffle grid */
.raffle-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-inline: auto;
    margin: 10px auto;
    padding: 0 30px;
    margin-top: 10px;
}

.img-wrapper,.dream-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 2%;
}

.img-wrapper > img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: fill;
    object-position: center;
}

.img-wrapper > .imagecontent,
.dream .dream-wrapper > .imagecontent {
    position: absolute;
    inset: 0;
    font-size: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.img-wrapper > img,
.dream .dream-wrapper > img,
.img-wrapper > .imagecontent, 
.dream .dream-wrapper > .imagecontent {
    transition: 200ms ease-in-out;
}

.img-wrapper:hover > img.blur,
.dream .dream-wrapper > img.blur {
    filter: blur(5px);
}

.img-wrapper:hover > img.zoom,
.dream .dream-wrapper > img.zoom {
    transform: scale(1.1);
}

.img-wrapper > .imagecontent.fade,
.dream .dream-wrapper > .imagecontent.fade {
    opacity: 0;
}

.img-wrapper:hover > .imagecontent.fade,
.dream .dream-wrapper:hover > .imagecontent.fade {
    opacity: 1;
}

.img-wrapper > .imagecontent.slide-left,
.dream .dream-wrapper > .imagecontent.slide-left {
    transform: translateX(-100%);
}

.img-wrapper:hover > .imagecontent.slide-left,
.dream .dream-wrapper > .imagecontent.slide-left {
    transform: translateX(0);
}

.dream .dream-wrapper.tapped > .imagecontent.fade {
  opacity: 1;
}
.dream .dream-wrapper.tapped > .imagecontent.slide-left {
  transform: translateX(0);
}

.donate {
    padding: 0 5%;
    text-align: center;
    color: black;
    display: flex;
    justify-content: center;
    border: black;
    width: 100%;
    flex: 1;
}

.donate h1 {
    margin-bottom: 10px;
    font-size: 3.25rem;
    font-weight: 600;
}

.donate p{
    font-size: 1rem;
    width: auto;
    font-weight: 300;
    margin: -5px auto 25px;
    text-align: center;
    max-width: 75%;
}

.register {
    padding: 0 5%;
    text-align: center;
    color: black;
    display: flex;
    justify-content: center;
    border: black;
    width: 100%;
    flex: 1;
}

.register h1 {
    margin-bottom: 10px;
    font-size: 3.25rem;
    font-weight: 600;
}

.register p{
    font-size: 1rem;
    width: auto;
    font-weight: 300;
    margin: -5px auto 25px;
    text-align: center;
    max-width: 75%;
}

.gallery {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 40px 20px 0 20px;
}

.gallery .gallery-content {
    width: 50%;
    padding-bottom: 50px;
}

.gallery .gallery-content h3 {
    font-size: 3em;
    font-weight: bolder;
    padding-bottom: 10px;
    border-bottom: 3px solid #222;
}

.gallery .gallery-content h3 span {
    font-weight: 100;
}

.gallery .box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.gallery .box .dream {
    display: flex;
    flex-direction: column;
    width: 32.5%;
}

.gallery .box .dream img{
    width: 100%;
    padding-bottom: 15px;
    border-radius: 5px;
}

.gallery .btn {
    display: none;
    margin: 40px 0 70px 0;
    background: #222;
    padding: 15px 40px;
    border-radius: 5px;
}

.gallery .btn a {
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
    font-weight: bolder;
    letter-spacing: 3px;
}

.results {
    padding: 0 5%;
    text-align: center;
    color: black;
    display: flex;
    justify-content: center;
    border: black;
    width: 100%;
    flex: 1;
}

.results h1 {
    margin-bottom: 10px;
    font-size: 3.25rem;
    font-weight: 600;
}

.results p{
    font-size: 1rem;
    width: auto;
    font-weight: 300;
    margin: -5px auto 25px;
    text-align: center;
    max-width: 75%;
}

.results .button {
    background: #1f0d37;
    padding: 0.3rem 1.5rem;
    outline: none;
    border: 2px solid transparent;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.results .button:hover {
    background: transparent;
    border-color: #1f0d37;
    color: #1f0d37;
}


.slider {
    height: 200px;
    margin: 10px auto;
    position: relative;
    width: 100%;
    /* max-width: 1200px; */
    display: grid;
    place-items: center;
    background-color: #33424a;
    overflow: hidden;
}

.slide-track {
    display: flex;
    width: calc(250px * 36);
    animation: scroll 40s linear infinite;
    will-change: transform;
}

.slide-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    95% {
        transform: translateX(calc(-250px * 18)); 
    }
    100% {
        transform: translateX(calc(-250px * 18)); 
    }
}

.slide {
    height: 200px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    perspective: 100px;
}

.slide > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 1s;
}

.slide > img:hover {
    transform: translateZ(20px);
}

/* gradient shadows */

.slider::before,
.slider::after {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%,
    rgba(255,255,255,0) 100%);
    content: '';
    height: 100%;
    position: absolute;
    width: 15%;
    z-index: 2;
}

.slider::before {
    left: 0;
    top: 0;
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slide > h4 {
    color: white;
}







/*Start Results Table formatting */
  /* Sticky header row */
  #sheetTable thead tr {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: #007bff;
    color: white;
  }
  
  /* Sticky first two tbody rows */
  #sheetTable tbody tr:nth-child(1) {
    position: sticky;
    top: 60px; /* Adjust this to match the height of your header row */
    background-color: #e9ecef;
    z-index: 2;
  }
  #sheetTable tbody tr:nth-child(2) {
    position: sticky;
    top: 101px; /* header + row 1 height */
    background-color: #e9ecef;
    z-index: 1;
  }
  
  /* Even row shading starting from row 3 */
  #sheetTable tbody tr:nth-child(n+3):nth-child(even) {
    background-color: #f9f9f9;
  }
  
  #sheetTable tbody tr:hover {
    background-color: #f1f1f1;
  }
  
  #loader {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 20px 0;
  }
  
  .centered-title {
    text-align: center;
    font-size: 24px;  /* You can adjust the font size as needed */
    margin-bottom: 10px;  /* Add some spacing between the title and table */
  } 



 
/*End Results Table formmatting */

/* Footer */

.container {
    max-width: 1170px;
    margin: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.footer {
    background-color: #33424a;
    padding: 40px 0;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
}

.copyright {
    padding: 4px 0;
    text-align: center;
    color: #95AAB6;
    background-color: #f5f6f7;
}

.footer-col {
    width: 50%;
    padding: 0 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col h4 {
    font-size: 18px;
    color: #ffffff;
    text-transform: capitalize;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
}

.footer-col h4::before {
    content: ' ';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: #e91e63;
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}

.footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-col ul li p {
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    color: #bbbbbb;
    display: block;
    transition: all 0.3s ease;
}

.footer-col ul li a {
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    color: #bbbbbb;
    display: block;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255,255,255,0.2);
    margin-right: 10px;
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
    color: #33424a;
    background-color: #ffffff;
}
/* end of Footer */

@media(max-width: 990px){
    .home h1{
        font-size: 2.70rem;
    }

    .Tournament-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem; /* Adds spacing between buttons */
    }

    .Tournament-content .button {
        width: 100%; /* Makes buttons full-width */
        max-width: 300px; /* Optional: limits button width for better appearance */
        text-align: center; /* Ensures text is centered */
    }
    .table-container {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pastresults table {
        width: auto; /* Ensure table requires scrolling */
    }

    .pastresults th,
    .pastresults td {
        font-size: 0.9rem; /* Slightly smaller text for mobile */
        padding: 8px; /* Reduce padding for better fit */
    }

    /* Ensure first column is fully visible */
    .pastresults th:first-child,
    .pastresults td:first-child {
        min-width: 60px;
        padding-left: 10px; /* Ensure content isn't too close to edge */
    }

    .twentytwentyfiveresults table {
        width: auto; /* Ensure table requires scrolling */
    }

    .twentytwentyfiveresults th,
    .twentytwentyfiveresults td {
        font-size: 0.9rem; /* Slightly smaller text for mobile */
        padding: 8px; /* Reduce padding for better fit */
    }

    /* Ensure first column is fully visible */
    .twentytwentyfiveresults th:first-child,
    .twentytwentyfiveresults td:first-child {
        min-width: 60px;
        padding-left: 10px; /* Ensure content isn't too close to edge */
    }
}

@media(max-width: 860px) {
    .hideOnMobile {
        display: none;
    }
    .menu-button {
        display: block;
        color: #fff;
    }
    .menu-button:hover{
        fill: #ff5100;
    }
    .footer-col {
        width: 50%;
        margin-bottom: 30px;
    }
    .home h1{
        font-size: 1.70rem;
    }
    .Tournament-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem; /* Adds spacing between buttons */
    }

    .Tournament-content .button {
        width: 100%; /* Makes buttons full-width */
        max-width: 300px; /* Optional: limits button width for better appearance */
        text-align: center; /* Ensures text is centered */
    }

    .table-container {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pastresults table {
        width: auto; /* Ensure table requires scrolling */
    }

    .pastresults th,
    .pastresults td {
        font-size: 0.9rem; /* Slightly smaller text for mobile */
        padding: 8px; /* Reduce padding for better fit */
    }

    /* Ensure first column is fully visible */
    .pastresults th:first-child,
    .pastresults td:first-child {
        min-width: 60px;
        padding-left: 10px; /* Ensure content isn't too close to edge */
    }

    .twentytwentyfiveresults table {
        width: auto; /* Ensure table requires scrolling */
    }

    .twentytwentyfiveresults th,
    .twentytwentyfiveresults td {
        font-size: 0.9rem; /* Slightly smaller text for mobile */
        padding: 8px; /* Reduce padding for better fit */
    }

    /* Ensure first column is fully visible */
    .twentytwentyfiveresults th:first-child,
    .twentytwentyfiveresults td:first-child {
        min-width: 60px;
        padding-left: 10px; /* Ensure content isn't too close to edge */
    }

    .gallery .box {
        flex-direction: column;
    }

    .gallery .box .dream {
        width: 100%;
    }

}

@media (max-width: 622px){
    .gallery .gallery-content {
        width: 100%;
    }

    .gallery .gallery-content h3 {
        font-size: 1em;
    }
}

@media (max-width: 600px) {
    .slider {
        height: 100px;
        margin: 10px auto;
        max-width: 100%;
    }
    .slide {
        width: 150px;
        height: 100px;
    }
    .slide-track {
        width: calc(150px * 36); /* 18 unique + 18 duplicates */
        animation: scroll 30s linear infinite;
    }
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        95% {
            transform: translateX(calc(-150px * 18));
        }
        100% {
            transform: translateX(calc(-150px * 18));
        }
    }
}

@media(max-width: 500px) {
    .footer-col {
        width: 100%;
        margin-bottom: 30px;
    }
    .Tournament-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem; /* Adds spacing between buttons */
    }

    .Tournament-content .button {
        width: 100%; /* Makes buttons full-width */
        max-width: 300px; /* Optional: limits button width for better appearance */
        text-align: center; /* Ensures text is centered */
    }

    .table-container {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pastresults table {
        width: auto; /* Ensure table requires scrolling */
    }

    .pastresults th,
    .pastresults td {
        font-size: 0.9rem; /* Slightly smaller text for mobile */
        padding: 8px; /* Reduce padding for better fit */
    }

    /* Ensure first column is fully visible */
    .pastresults th:first-child,
    .pastresults td:first-child {
        min-width: 60px;
        padding-left: 10px; /* Ensure content isn't too close to edge */
    }

    .twentytwentyfiveresults table {
        width: auto; /* Ensure table requires scrolling */
    }

    .twentytwentyfiveresults th,
    .twentytwentyfiveresults td {
        font-size: 0.9rem; /* Slightly smaller text for mobile */
        padding: 8px; /* Reduce padding for better fit */
    }

    /* Ensure first column is fully visible */
    .twentytwentyfiveresults th:first-child,
    .twentytwentyfiveresults td:first-child {
        min-width: 60px;
        padding-left: 10px; /* Ensure content isn't too close to edge */
    }
}

@media(max-width: 430px) {
    .sidebar{
        width: 100%;
    }
    .footer-col {
        width: 100%;
        margin-bottom: 30px;
    }
    .home h1{
        font-size: 1.20rem;
    }
    .Tournament-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem; /* Adds spacing between buttons */
    }

    .Tournament-content .button {
        width: 100%; /* Makes buttons full-width */
        max-width: 300px; /* Optional: limits button width for better appearance */
        text-align: center; /* Ensures text is centered */
    }

    .table-container {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pastresults table {
        width: auto;; /* Ensure table requires scrolling */
    }

    .pastresults th,
    .pastresults td {
        font-size: 0.9rem; /* Slightly smaller text for mobile */
        padding: 8px; /* Reduce padding for better fit */
    }

    /* Ensure first column is fully visible */
    .pastresults th:first-child,
    .pastresults td:first-child {
        min-width: 60px;
        padding-left: 10px; /* Ensure content isn't too close to edge */
    }

    .twentytwentyfiveresults table {
        width: auto;; /* Ensure table requires scrolling */
    }

    .twentytwentyfiveresults th,
    .twentytwentyfiveresults td {
        font-size: 0.9rem; /* Slightly smaller text for mobile */
        padding: 8px; /* Reduce padding for better fit */
    }

    /* Ensure first column is fully visible */
    .twentytwentyfiveresults th:first-child,
    .twentytwentyfiveresults td:first-child {
        min-width: 60px;
        padding-left: 10px; /* Ensure content isn't too close to edge */
    }
}

.toggle-button, .button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 10px auto; /* Centers and vertically spaces */
    padding: 0.75rem 1.5rem;
    background-color: #1f0d37;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.toggle-button:hover, .button:hover {
    background: transparent;
    border: 2px solid #1f0d37;
    color: #1f0d37;
}yy
/* Style for parent containers to center and space buttons */
.Tournament-content, .fulltourney, .par3, .twentytwentyfour {
    text-align: center; /* Centers the buttons */
    padding: 20px 0; /* Adds vertical padding to section */
}
/* Ensure tables and nested content don't interfere with spacing */
.table-container {
    margin-top: 10px; /* Small gap above tables */
}
/* Optional: Hover effect for better UX */
.button:hover, .toggle-button:hover {
    background-color: #005bb5; /* Darker shade on hover */
}
/* Ensure footer and other sections don't overlap spacing */
.results, .twentytwentyfiveresults, .pastresults {
    margin-bottom: 20px; /* Space before footer */
}

/* Past Results Section */
.pastresults {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 20px 0;
    padding: 0; 
    flex: 2;
}

.twentytwentyfiveresults {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 20px 0;
    padding: 0; 
    flex: 2;
}

.tables-containerclass {
    flex: 1;
}

/* Table Container */
.table-container {
    width: 100%;
    max-width: 100%; /* Prevent container from exceeding viewport */
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /*Smooth scrolling on iOS*/
    margin: 0 auto 10px;
    padding: 0; /* Remove any padding that might shift content */
    box-sizing: border-box;
    overscroll-behavior-x: contain; /* Prevent scroll chaining */
}

/* Table Styling */
.pastresults table {
    display: none; /* Hidden by default for toggle */
    border-collapse: separate; /* Avoid border issues */
    border-spacing: 0;
    margin: 0; Remove any margins that might shift content
    
}

/* Past Results Section */
.pastresults {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 20px 0;
    padding: 0;
    flex: 2;
}

.twentytwentyfiveresults {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 20px 0;
    padding: 0;
    flex: 2;
}

/* Table Container */
.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto 10px;
    padding: 0;
    box-sizing: border-box;
    overscroll-behavior-x: contain;
}

/* Table Styling */
.pastresults table,
.twentytwentyfiveresults table {
    display: none;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Ensure table is visible when toggled */
.pastresults table[style*="display: table"],
.twentytwentyfiveresults table[style*="display: table"] {
    display: table !important;
}

/* Table Headers and Cells */
.pastresults th,
.pastresults td,
.twentytwentyfiveresults th,
.twentytwentyfiveresults td {
    border: 1px solid #000;
    padding: 10px;
    text-align: left;
    min-width: 80px;
    box-sizing: border-box;
}

.pastresults th,
.twentytwentyfiveresults th {
    background-color: #6c6c6c;
    color: white;
    font-weight: bold;
}

/* Alternating Row Colors */
.pastresults tr:nth-child(even),
.twentytwentyfiveresults tr:nth-child(even) {
    background-color: #fff;
}

.pastresults tr:nth-child(odd),
.twentytwentyfiveresults tr:nth-child(odd) {
    background-color: #ddd;
}

/* First Column Specific Styling */
.pastresults th:first-child,
.pastresults td:first-child,
.twentytwentyfiveresults th:first-child,
.twentytwentyfiveresults td:first-child {
    min-width: 60px;
}

/* Toggle Button */
.toggle-button {
    background: #1f0d37;
    padding: 0.3rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color


/* Toggle Button */
.toggle-button {
    background: #1f0d37;
    padding: 0.3rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    margin-bottom: 10px;
    display: inline-block;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.toggle-button:hover {
    background: transparent;
    border-color: #1f0d37;
    color: #1f0d37;
}
/* end Past Results table formatting */


/* Sticky header row */
#sheetTable thead tr {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: #007bff;
    color: white;
  }
  
  /* Sticky first two tbody rows */
  #sheetTable tbody tr:nth-child(1) {
    position: sticky;
    top: 42px; /* Adjust this to match the height of your header row */
    background-color: #e9ecef;
    z-index: 2;
  }
  #sheetTable tbody tr:nth-child(2) {
    position: sticky;
    top: 84px; /* header + row 1 height */
    background-color: #e9ecef;
    z-index: 1;
  }
  
  /* Even row shading starting from row 3 */
  #sheetTable tbody tr:nth-child(n+3):nth-child(even) {
    background-color: #f9f9f9;
  }
  
  #sheetTable tbody tr:hover {
    background-color: #f1f1f1;
  }
  
  #loader {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 20px 0;
  }
  
  .centered-title {
    text-align: center;
    font-size: 24px;  /* You can adjust the font size as needed */
    margin-bottom: 10px;  /* Add some spacing between the title and table */
  } 


  