@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #e6e6e6;
    --second-bg-color: #f5f5f7;
    --text-color: #424245; 
    --main-color: #0066cc;
    --secondary-color: #000000;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    box-sizing: border-box;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    text-decoration:underline;
    text-underline-offset: .5rem;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.sponsorer-content {
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    /* gap: 2.5rem; */
    z-index: 1;
    width: 100%;
    /* background: var(--second-bg-color); */
    /* border-radius: 10px; */
    border-bottom: 2px solid;
    margin-top: 0rem;
    overflow: hidden;
}

.headingSpons {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 1rem;
    grid-row: 1 / 2;
    grid-column: 1 / 5; /* span across all four columns */
    padding-left: 1rem;
    padding-right: 1rem;
}

.företag {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.företag img {
  max-width: 200px;
  max-height: 200px;
}

.home-img {
    display: flex;
    grid-template-columns: repeat(2, 1fr);
    flex-direction: column;
    overflow: hidden;
    border-radius: 5rem;
    text-align: right;
    margin-top: 0rem;
}

.home-img img {
    max-width: 886px;
    width: 40vw;
    max-height: 1235px;
    /* border-radius: 5rem; */
    /* border: 2px solid #e4e4e4; */
    float: right;
    /* animation: floatImage 4s ease-in-out infinite; */
}

/* 
@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
} */

.home-content {
    min-width: 30vw;
    margin-left: 3rem;
    margin-right: 3rem;
}

.home-content h3{
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 25%;
    font-size: 2rem;
    color: var(--main-color);
    /* margin: 0rem 1.5rem 1rem 0; */
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--text-color);
    color: var(--second-bg-color);
    border-color: black;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 1rem;
    font-size: 1.6rem;
    color: white;
    letter-spacing: .1rem;
    /* font-weight: 600; */
    transition: .5s ease;
}

.btnMaraton {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--secondary-color);
    border-radius: 1rem;
    font-size: 1.6rem;
    color: white;
    letter-spacing: .1rem;
    /* font-weight: 600; */
    transition: .5s ease;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-img img{
    width: 35vw;
    max-height: 784px;
    max-width: 735px;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content {
    margin-left: 3rem;
    margin-right: 3rem;
    max-width: 1000px;
}

.about-content h2{
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.tabeller h2 {
    margin-bottom: 5rem;
}

.tabeller-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
}

#tabellercontainerMaraton {
    max-width: 1300px;
    margin: 0 auto;
}

.tabeller-container .tabeller-box {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .2s ease;
}

.tabeller-container .tabeller-box:hover {
    border-color: var(--main-color);
    /* transform: scale(1.02); */
}

.tabeller-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.tabeller-box h3 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.tabeller-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.tabeller-container .tabeller-box-maraton {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .2s ease;
}

.tabeller-container .tabeller-box-maraton:hover {
    border-color: var(--secondary-color);
    /* transform: scale(1.02); */
}

.tabeller-box-maraton i {
    font-size: 7rem;
    color: var(--secondary-color);
}

.tabeller-box-maraton h3 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.tabeller-box-maraton p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

#statistik {
    padding-top: 9rem;
}

.spelare {
    background: var(--bg-color);
}

.spelare h2 {
    margin-bottom: 4rem;   
}

.spelare-container {
    display:grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 2.5rem;
    max-width: 2000px;
    margin: 0 auto;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    position: relative;
    width: 250px;
    height: 400px;
    border-radius: 15px; /* Slightly increased roundness for a smoother look */
    background: linear-gradient(145deg, #2c2c2c, #151515); /* Gradient background for more depth */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); /* Stronger, larger shadow for more floating effect */
    overflow: hidden;
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.card:hover {
    transform: translateY(-10px); /* Slightly lift the card */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}
.ds-top {
    height: 80px;
    background: #0066cc;
}
.avatar-holder {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    overflow: hidden;
    border: 5px solid #151515;
}
.avatar-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.name {
    text-align: center;
    margin-top: 60px;
    color: white;
}
.name h4 {
    font-size: 18px;
}
.name p {
    font-size: 1.3rem;
}
.stats {
    text-align: center;
    color: white;
    margin-top: 10px;
    font-size: 1.3rem;
}
.ds-skill {
    width: 80%;
    margin: auto;
    margin-top: 10px;
    position: absolute;
    bottom: 10%;
    left: 10%;
}
.skill {
    margin-bottom: 8px;
}
.skill h6 {
    font-size: 12px;
    color: white;
    margin-bottom: 3px;
}
.bar {
    height: 5px;
    background: #0066cc;
    text-align: right;
    color: white;
    font-size: 12px;
}

.bar p {
    margin: 0;
    font-size: 10px;
    padding-top: 1px;
}
.bar:hover {
    background: #e67e22;
}

.spelare-container .spelare-box {
    position: relative;
    /* border-radius: 2rem; */
    box-shadow: 0 0 1rem var(--second-bg-color);
    overflow: hidden;
    display: flex;
}

.spelare-box .spelareImg {
    position:absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 25%;
    height: 35%;
    display: flex;
    border-radius: 50%;
    z-index: 98;
}

.spelare-box .bakgrundsImg {
    width: 100%;
    transition: .5s ease;
}

.spelare-box:hover .bakgrundsImg {
    transform: scale(1.05);
}

.spelare-box .spelare-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    /* border-radius: 2rem; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    /* transform: translateY(125%); */
    transition: .4s ease;
    z-index: 97;
    color: white;
}

.spelare-box:hover .spelare-layer {
    transform: translateY(0);
}

.spelare-layer h4 {
    font-size: 2rem;
    margin-top: 11rem;
}

.spelare-layer p {
    font-size: 1.4rem;
    margin-top: .3rem;
}

.spelare-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20rem;
    height: 5rem;
}

.spelare-layer a i {
    font-size: 2rem;
    color: var(--second-bg-color);

}

.leaderboard {
    margin-right: auto;
    margin-left: auto;
    display: block;
   /* padding-top: 12rem; */ /* PADDING MOVED TO .description */
    background: var(--second-bg-color);
}

.description {
    width: 100%;
    display: inline-block;
    text-align: center;
    color: var(--text-color);
    transform: translateY(0rem);
}

.description p {
    font-size: 1.2rem;
    font-weight: 400;
}

.description input {
    font-size: 1.7rem;
}

.descriptionSearch {
    width: 100%;
    display: inline-block;
    text-align: center;
    margin-top: 0.5rem;
    color: white;
    transform: translateY(70px);   
}

.descriptionSearch input {
    font-size: 1.7rem;
    border-radius: 0.5rem;
    text-align: center;
}

.descriptionSearch input::placeholder {
    color:black;
}

.searchPlayer {
    border-radius: 0.5rem;
    border: none;
    background-color: transparent;
    border-bottom: #3498db 2px solid;
    color: var(--text-color);
}

.search {
    border-radius: 0.5rem;
    border: none;
    background-color: transparent;
    border-bottom: var(--main-color) 2px solid;
    padding: .5rem;
    font-size: 1.4rem;
    color: var(--text-color);
}

.search:focus {
    outline: none;
}

#myTable {
    max-width: 200rem;
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: -1.8rem;
    width: 100%;
    color: var(--text-color); 
    margin-right: auto;
    margin-left: auto;
    cursor: default;
    border-collapse: collapse;
}

#myTable thead tr th {
    background-color: var(--main-color);
    color: white;
    font-weight: 200;
}

.tooltip {
    position: absolute;
    z-index: 9999;
    font-size: 14px;
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--text-color);
    border-radius: 4px;
    padding: 6px 12px;
    top: 20px !important;
  }

  .tooltip span {
    font-weight: bold;
  }

  .result-v {
    color: green;
  }
  
  .result-f {
    color: red;
  }
  
  .result-o {
    color: gray;
  }

#myTable tbody tr:first-child td:nth-child(1) {
    color: #b99f16;
}

#myTable tbody tr:nth-child(2) td:nth-child(1) {
    color: rgb(139, 139, 139);
}

#myTable tbody tr:nth-child(3) td:nth-child(1) {
    color: #CD7F32;
}

#myTable .golden-row td {
    color: goldenrod !important; /* You can adjust the color as needed */
}

#myTable tbody tr td:nth-child(8) {
    background-color: rgba(47, 144, 209, 0.25);
}
  
  
/* table thead {
    opacity: .8;
} */

table p strong{
    cursor:pointer;
    align-self: center;
    justify-self: center;
}

table img {
    width: 2rem;
    height: 2rem;
    border-radius: 100%;
    
}

#myTable td {
    max-width: 1.7rem;
    padding-top: 1.3rem;
    text-align: center;
    border-bottom: 1px solid black;
    /* border-bottom: 2px solid rgba(255, 255, 255, 0.363); */
}

tbody tr {
    /* box-shadow: 0 1px rgba(100, 100, 100, .5); */
    /* border-radius: 10px; */
    min-width: 5rem;
}

table td:nth-child(2) p{
    display: inline-block;
    transform: translateY(-.5rem);
    padding-left: .5rem;
    text-align: left;
}

table td:nth-child(2) {
    max-width: 5rem;
}

.tabell tr:nth-child(even) :not(:nth-child(8)) {
    background-color: var(--bg-color);
}

.tabell tr:nth-child(odd) :not(:nth-child(8)) {
    background-color: var(--bg-color);
}

.chart-container {
    width: 95%; /* Makes the chart container 95% of the screen width */
    max-width: 1700px; /* Optional: Set a maximum width if you don't want it to grow too large */
    margin: 0 auto; /* Center the canvas */
}

.statChart {
    width: 100%; /* Make the canvas 100% of the parent container's width */
    height: auto; /* Let the height adjust based on aspect ratio */
    max-height: 500px;
    min-height: 300px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.2rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .4s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

.footerSecond {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--bg-color);
}

.footerSecond-text p {
    font-size: 1.2rem;
}

.footerSecond-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .4s ease;
}

.footerSecond-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footerSecond-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

.button-container {
    text-align: center;
    transform: translateY(25px);  
}

#toggle-results-btn {
    background-color: var(--main-color);
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;  
  }
  
#toggle-results-btn:hover {
    background-color: #0055ab;
}
  
  
#match-results-wrapper {
    display: none;
}

#match-results {
    margin-top: 10rem;
    max-width: 170rem;
    font-size: 1.6rem;
    font-weight: 500;
    width: 85%;
    margin-right: auto;
    margin-left: auto;
    cursor: default; 
    border-collapse: collapse;
}

#match-results thead tr th {
    background-color: var(--main-color);
    color: white;
    font-weight: 200;
    box-shadow: 0 1px rgba(100, 100, 100, .5);
}

#match-results td {
    max-width: 2rem;
    padding-top: 0.5rem;
    text-align: center;
    color: var(--text-color);
    /* border-bottom: 2px solid rgba(255, 255, 255, 0.363); */
    font-size: 1.3rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-bottom: 1px solid black;
}

.h2hTitles {
    border-radius: 5rem;
}

.h2hRows {
    background-color: var(--bg-color);
}

.remaining-matches-wrapper {
    text-align:center;
    padding: 1% 0% 1% 0%;
    max-width: 1800px;
    margin: 0 auto;
}

.remaining-matches-wrapper h1{
    font-size: 2.5rem;
}

/* Centering the player list wrapper */
.player-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px; /* Space between items */
}

/* Styling the checkbox grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Responsive grid layout */
    gap: 5px;
    max-width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Styling each individual clickable item */
.checkbox-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid #000;
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
}

/* Hover effect to indicate clickability */
.checkbox-item:hover {
    background-color: rgba(47, 144, 209, 0.1); /* Light blue background on hover */
}

/* Highlight the selected item */
.checkbox-item.selected {
    background-color: rgba(47, 144, 209, 0.3); /* Highlighted item */
    border-color: #00aaff;
}

/* Highlight the player boxes */
.checkbox-item.highlight {
    background-color: #f39d1278; /* Highlight color */
    border: 1px solid #e67e22; /* Optional: border for better visibility */
    color: white; /* Optional: Change text color */
    cursor: pointer; /* Change cursor to indicate it is clickable */
}

/* Circular checkbox */
.player-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #000;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Styling the label */
.checkbox-item label {
    font-size: 1.3rem;
    color: var(--text-color);
    cursor: pointer;
}

/* On checkbox checked, change the background color */
.player-checkbox:checked {
    background-color: var(--main-color);
    border-color: #00aaff;
}

/* On hover, the checkbox slightly increases in size */
.player-checkbox:hover {
    transform: scale(1.1);
}

/* Responsive adjustments for small screens */
@media (max-width: 600px) {
    .checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    }
}

.match-list p{
    font-style:italic;
    font-size: 1.5rem;
}

.match-list h3{
    font-style:italic;
    font-size: 1.5rem;
}

/* Match list table styling */
.remaining-matches-wrapper table {
    margin: 0 auto;
    width: auto;
    font-size: 1.8rem;
    text-align: left;
}

.vinnareJumbo {
    margin-top: 5rem;
    overflow: hidden;
}

.vinnareJumbo p {
    text-align: center;
    padding-top: 0rem;
    padding-bottom: 1rem;
    font-size: 1.6rem;
    padding-left: 3rem;
    padding-right: 3rem;
}

.vinnareJumbo img {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 20rem;
    height: 20rem;
    display: flex;
    border-radius: 50%;
}

.vinnareJumbo p {
    padding-left: 4rem;
    padding-right: 4rem;
}

.vinnare,
.jumbo {
    padding-top: 0rem;
}

.jumbo {
    padding-bottom: 2rem;
}

.headingVinnare {
    text-align: center;
    font-size: 4.5rem;
    font-weight: 600;
    padding-left: 2rem;
    padding-right: 2rem;
}

.headingJumbo {
    text-align: center;
    font-size: 4.5rem;
    font-weight: 600;
}

/* CSS for galleri webdevelopment */

.galleri-container {
    width: 100%;
    min-height: 100vh;
   /*  display: flex; */
    align-items: center;
    justify-content: center;
    padding: 50px 8%;
    margin-top: 8rem;
}

.galleri-container h2 {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.galleri {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: 20px;
}

.galleri img {
    width: 100%;
}
  
 /* INFO CURTAIN */
 
 .main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5vh;
    margin-bottom: 1rem;
  }
  
  /* Info button */
  .info-button {
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 1rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .info-button:hover {
    background-color: #0055ab;
  }
  
  /* Curtain styles */
  .curtain {
    position: fixed;
    top: -100%; /* Initially hidden (above the screen) */
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Fallback background for browsers that don't support backdrop-filter */
    background: rgba(191, 191, 191, 0.2);
    
    /* Apply blur effect for browsers that support backdrop-filter */
    backdrop-filter: blur(10px); /* Blur effect for browsers that support it */
    -webkit-backdrop-filter: blur(10px); /* Fallback for Safari iOS and older Safari versions */
    
    display: flex;
    justify-content: center;
    align-items: center;
    transition: top 0.5s ease; /* Smooth slide-down effect */
    z-index: 1000; /* Ensure it's above other elements */
  }
  
  
  .curtain-content {
    background: rgba(0, 0, 0, 0); /* Fully transperant*/
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px); /* Blurred effect */
    padding: 1rem 2rem 0px 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Optional: subtle shadow for depth */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Optional: faint border for definition */
  }

  .curtain-content p {
    margin-bottom: 1rem;
    font-size: 1.4rem;
  }
  
  
  /* Close button */
  .close-button {
    background: none;
    border: none;
    color: rgb(0, 0, 0) !important;
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    top: 0.55rem;
    right: 1rem;
  }
  
  /* Prevent scrolling when curtain is open */
  body.noscroll {
    overflow: hidden;
  }

  /* Expandable container styling */
.expandable {
    margin-bottom: 1rem;
    position: relative;
  }
  
  /* Expand button styling */
  .expand-button {
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: 18px;
    line-height: 30px;
    cursor: pointer;
    margin-right: 10px;
    display: inline-block;
  }

  .expand-button:hover {
    background-color: #0055ab;
  }
  
  /* Title styling */
  .expand-title {
    font-size: 1.7rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color);
  }
  
/* Expandable content styling */
.expandable-content {
    max-height: 0; /* Collapsed by default */
    overflow: hidden;
    opacity: 0; /* Fully transparent when collapsed */
    padding-top: 1rem; /* Optional: adds spacing inside expanded area */
    transition: max-height 0.4s ease-out, opacity 0.6s ease-out; /* Only the max-height transitions */
  }
  
  /* Expanded state */
  .expandable-content.expanded {
    max-height: 14rem; /* Adjust as needed */
    opacity: 1; /* Fully visible when expanded */
    transition: max-height 0.4s ease-in, opacity 0.6s ease-in; /* Expand first with ease-in */
  }

/*  @MEDIA BREAKPOINTS  */

  @media(max-width:1774px) {
    .home-img img {
        width: 50vw;
    }

    .home-content {
        margin-top: 2rem;
        margin-bottom: 2rem;
        max-width: 80vw;
    }

    .sponsorer-content {
        width: 80vw;
    }

}

@media(max-width:1316px) {
    .home-img img {
        width: 70vw;
    }
}

@media(max-width:860px) {
    .företag img {
        max-width: 160px;
        max-height: 160px;
      }

      .sponsorer-content p {
        font-size: 0.8rem !important;
    }

    .description {
        display: block;
        transform: translateY(0);
    }
    table {
        max-width: 90vw;
        overflow-x: scroll;

    }
}

@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .sponsorer-content {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto 1fr 1fr;
    }

    .headingSpons {
        grid-row: 1 / 2;
        grid-column: 1 / 4; /* span across all three columns */
    }

    .spelare-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    /* .header {
        padding: 2rem 3%;
    } */

    section {
        padding: 10rem 3% 2rem;
    }

    .tabeller {
        padding-bottom: 7rem,;
    }

    .spelare {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: auto;
    }

    .footer,
    .footerSecond {
        padding: 2rem 3%;
    }

}

@media(max-width:861px)
{
    .main-content {
        margin-top: 0rem;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
        padding: 2rem 9%;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .sponsorer-content {
        margin-bottom: 2rem;
    }

    .företag img {
        max-width: 140px;
        max-height: 140px;
      }

    .home-img {
        grid-template-columns: 1fr;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 80vw;

    }

    .about {
        flex-direction: column-reverse;
    }

    .about img {
        width: 70vw;
        margin-top: 4rem;
    }

    .tabeller h2 {
        margin-bottom: 3rem;
    }

    .spelare h2 {
        margin-bottom: 3rem;
    }
}

@media (max-width: 617px) {
    .spelare-container {
        grid-template-columns: 1fr;
    }

    .företag img {
        max-width: 80px;
        max-height: 80px;
      }

      .headingSpons {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 1rem;
        grid-row: 1 / 2;
        grid-column: 1 / 4; /* span across all three columns */
    }

    .home-img {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    table {
        font-size: 1.1rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .contact form .input-box input {
        width: 100%;

    }

    .sponsorer-content p {
        font-size: 5px !important;
        /* display: none; */
    }

    .företag img {
        max-width: 70px;
        max-height: 70px;
      }

    #myTable {
        font-size:1.4rem !important;
      }

}

@media (max-width: 365px) {

    .sponsorer-content p {
        font-size: 0.4rem !important;
    }

    .företag img {
        max-width: 50px;
        max-height: 50px;
      }

      .headingSpons {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 1rem;
        grid-row: 1 / 2;
        grid-column: 1 / 4; /* span across all three columns */
    }

    .home-content h1 {
        font-size: 4rem;
        font-weight: 700;
        line-height: 1.3;
    }

    .home-img img {
        width: 80vw;
    }

    .about-img img {
        width: 80vw;
    }

    .footer,
    .footerSecond {
        flex-direction: column-reverse
    }

    .footer p,
    .footerSecond p {
        text-align: center;
        margin-top: 2rem;
    }
}
  
  

