body {
    background-color: #222;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    text-align: center;
    
}

header {

    padding: 20px;
    background-color: #000000ee;
    text-align: left;
    display: flex;
    align-items: center;
    height: 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}

h1 {
    text-align: center;
    
}

header img {
    max-width: 100%;
    width: auto;
    height: 80px;
    margin: 0;
    vertical-align: middle;
    display: inline-block;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    
}

nav a {
    color: #fff;
    padding: 14px 20px;
    text-decoration: none;
    text-transform: uppercase;
}

nav a:hover {
    background-color: #ff6600;
    transition: 0.3s;
}


.flex-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    gap: 20px;
    margin: 20px auto;
    max-width: 90%; /* Adjust based on layout needs */
}




/* Original styles for both chart wrappers */
.chart-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px auto;
    margin-right: 20px;
    flex-wrap: nowrap;
    flex-direction: column; 
    background-color: #000;
    border-radius: 10px;
    margin-bottom: 0;
    column-count: 4;
}






.chart-wrapper-overall {
    height: 300px; /* Adjust the height as needed */
    background-color: #000; /* Background color of the container */
    border-radius: 10px;
    position: relative; /* For positioning elements inside */
    margin: 20px auto; /* Center the container horizontally */
    margin-right: 20px;
    display: flex; /* Flexbox to enable centering */
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
    text-align: center; /* Optional: Center-align text */
}

.chart-wrapper-radar {
    height: 300px; /* Adjust the height as needed */
    background-color: #000; /* Background color of the container */
    border-radius: 10px;
    position: relative; /* For positioning elements inside */
    margin: 20px auto; /* Center the container horizontally */
    margin-right: 20px;
    display: flex; /* Flexbox to enable centering */
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
    text-align: center; /* Optional: Center-align text */
}

.chart-container-overall {
    max-width: 80%; /* Adjust the max width of each chart to make them smaller */
    width : 100%;
    text-align: center;
    border-radius: 0px;
    box-sizing: border-box;
    max-height: 200px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.chart-container-overall canvas{
    max-width: 100%;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}


/* Optional: To add a shadow for better effect */

.chart-wrapper-overall, 
.chart-wrapper-radar,
.chart-wrapper {
    max-width: 100%;
}

.chart-wrappers {
    flex: 1; /* Set the chart section to take 3 parts of the available space */
}



.chart-container {
    flex: 1;
    max-width: 90%; /* Adjust the max width of each chart to make them smaller */
    width : 100%;
    text-align: center;
    border-radius: 0px;
    box-sizing: border-box;
    max-height: 200px;
    align-items: center;
    justify-content: center;
}

.chart-container-overall {
    flex: 1;
    max-width: 80%; /* Adjust the max width of each chart to make them smaller */
    width : 100%;
    text-align: center;
}

.chart-container canvas {
    width: 100%;
    height: 100%; /* Adjust the height of each chart */
    max-height: 50px;
    margin-bottom: 20px;
    border: #ffffff 1px solid;
    justify-content: center;
}

/* Container for holding multiple charts */
.comparison-container {
    display: flex; /* Flex for horizontal layout */
    justify-content: center; /* Center all the charts horizontally */
    gap: 20px; /* Add space between charts */
    flex-wrap: wrap; /* Allow wrapping if there's not enough space */
    margin: 20px 0;
    align-items: center;
}





.comparison-area {
    text-align: center;
    margin: 0 20px;
}

.comparison-area select,
.comparison-area input[type="number"] {
    margin: 10px 0;
    padding: 5px;
    width: 100px;
}

.footer1 {
    background-color: #111;
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0px -2px 10px rgba(255, 255, 255, 0.1);
  }

  /* Vertical Footer links */
  .footer1 a {
    color: #ccc;
    display: block;
    margin: 15px 0;
    text-decoration: none;
  }

  .footer1 a:hover {
    color: #fff;
  }

  /* Footer container */
  .footer-container1 {
    max-width: 1200px;
    margin: 0 auto;
  }


footer {
    background-color: #333;
    color: #fff;
    padding: 0px;
    text-align: center;
    clear: both;
    margin-bottom: 0;
    width: 100%;
}

footer p {
    margin-bottom: 10px;
}

@media (min-width: 600px) {
    h1 {
        font-size: 2.5em;
    }


}

@media (min-width: 900px) {
    h1 {
        font-size: 2.5em;
    }

   
}

@media (max-width: 600px) {
    nav {
        
        display: none;
    }



    .chart-container canvas {
        width: 20%; /* Ensure two charts fit per row */
        height: auto;
        margin: 0 10px; /* Add some space between charts */
    }


}

@media (max-width: 400px) {
    .chart-wrapper h3 {
        font-size: 0.5em;
    }
}


@media (601px <= width <= 900px) {
    .how-to-redeem,
    .more-stories {
        margin: 0 auto; /* Remove unwanted margins */
        max-width: 94%;
    }



    .left-column {
        position: center;
    }

    .container1 {
        flex-direction: column;
        display: flex;
    }

    .right-column {
        width: 100%;
        max-width: 100%;
    }


    .chart-container canvas {
        width: 30%; /* Ensure two charts fit per row */
        height: auto;
        margin: 0 10px; /* Add some space between charts */
    }



   
}

@media (901px <= width <= 1200px) {
    .how-to-redeem,
    .more-stories {
        margin: 0 auto; /* Remove unwanted margins */
        max-width: 94%;
    }


    .container1 {
        flex-direction: row;
        display: flex;
        gap: 20px;
    }

    .right-column {
        width: 100%;
        max-width: 100%;
    }


   
}

@media (1201px <= width <= 1500px) {
    .how-to-redeem,
    .more-stories {
        margin: 0 auto; /* Remove unwanted margins */
        max-width: 96%;
    }


    .container1 {
        flex-direction: row;
        display: flex;
        gap: 20px;
    }


    .more-stories {
        height: 100%;

    }



   
}  

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    padding: 10px;
    flex: 2;
    width: 100%;
    max-width: 700px;
    justify-content: center;
    background-color: #000000;
    border-radius: 10px;
    box-sizing: border-box;
}

button, select {
    background-color: #222;
    color: #f0f0f0;
    border: none;
    padding: 15px 20px;
    margin: 10px auto;
    cursor: pointer;
    border-radius: 25px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-items: center;
    justify-content: center;
}

button:hover, select:hover {
    background-color: #333;
}



/* Other existing styles... */

.corner-btn.selected {
    background-color: #555; /* Darker background to show it is selected */
    box-shadow: 0 0 10px 2px #ff6600; /* Green glow to highlight */
    border: 2px solid #ff6600; /* Green border for clear selection */
}

.corner-btn:hover {
    background-color: #444;
}

.inscription-btn {
    background-color: #222;
    color: #f0f0f0;
    border: none;
    padding: 15px 20px;
    margin: 10px auto;
    cursor: pointer;
    border-radius: 25px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-items: center;
    justify-content: center;

}

#inscriptionSelect option:nth-child(2) {
    color: rgb(255, 242, 0);
    font-weight: bold;
}

#inscriptionSelect option:nth-child(3) {
    color: rgb(98, 179, 255);
    font-weight: bold;
}

#inscriptionSelect2 option:nth-child(2) {
    color: rgb(255, 242, 0);
    font-weight: bold;
}

#inscriptionSelect2 option:nth-child(3) {
    color: rgb(98, 179, 255);
    font-weight: bold;
}


.hidden {
    display: none !important;
}




#positionDropdown ul {
    list-style: none;
    background-color: #1f1f1f;
    padding: 0;
    width: 120px;
}

#positionDropdown ul li {
    padding: 10px;
    cursor: pointer;
    border: #000000 1px solid;
}

#positionDropdown ul li:hover {
    background-color: #333;
}

.filter {
    display: flex;
    justify-content: center; /* Center the buttons */
    width: 350px;
    margin-top: 20px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}


.filterButtons  {
    align-items: center;
    justify-content: center;
}

.corner-btn {
    width: 120px;
    height: 50px;
    min-width: 120px;

}


.show-filter {
    opacity: 1;
    transform: scale(1);
}

.comparison-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
    text-align: center;

}
.comparison-container > div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    text-align: center;
    width: 450px;
    justify-content: center;

}

.comparison-container select {

    width: 200px;

}

.comparison-container h3 {

    width: 150px;

}

.input-container {
    margin-left: 10px;
}

.popup-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Black overlay */
  z-index: 1000; /* On top of everything */
}

/* Popup content */
.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  background-color: #111;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Popup text */
.popup-text {
  color: white;
  font-size: 16px;
  margin: 20px 0;
}

/* Media query for smaller screens (e.g., tablets, between 600px to 900px) */
@media (max-width: 900px) {
    .flex-wrapper {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center items horizontally */
        gap: 20px; /* Maintain spacing */
        padding: 10px; /* Adjust padding */
    }
    .container {
        width: 100%; /* Ensure the container takes full width */
        margin: 0 auto; /* Center container */
        max-width: 900px;
    }
    .chart-wrappers {
        max-width: 100%; /* Make sure charts take full width */
        margin: 0 auto;
        align-items: center;
        justify-content: center;
    }
    .comparison-container {
        display: flex; /* Flex for horizontal layout */
        justify-content: center; /* Center all the charts horizontally */
        gap: 5px; /* Add space between charts */
        flex-wrap: wrap; /* Allow wrapping if there's not enough space */
        margin: 0 auto;
        align-items: center;
    }

    .comparison-container > div {
        width: 250px; /* Set the width of each chart to 100% */
        justify-content: center;
        margin-left: 0px auto;
    }


    .comparison-container span {
        display: none;
    }

    .chart-wrapper-overall {
        margin: 20px auto;

    }

    .chart-wrapper-radar {
        margin: 20px auto;
    }       

    .chart-wrapper {
        margin: 20px auto;
    }
}

/* Media query for very small screens (e.g., mobile devices, max-width 600px) */
@media (max-width: 600px) {
    .flex-wrapper {
        flex-direction: column; /* Ensure vertical stacking */
        align-items: center; /* Center items horizontally */
        gap: 5px; /* Adjust the spacing */
        padding: 5px; /* Add some padding */
    }
    .chart-wrappers {
        width: 100%; /* Full width */
        margin: 0 auto; /* Center items */
    }
    .chart-container,
    .chart-container-overall {
        max-width: 90%; /* Reduce chart width */
        width: 100%; /* Ensure full width within container */
    }
    .chart-container canvas {
        width: 100%; /* Ensure charts remain responsive */
        height: auto; /* Adjust height for better scaling */
        margin-bottom: 20px;
    }
    .comparison-container span {
        display: none;
    }

    .container {
        width: 100%; /* Ensure the container takes full width */
        margin: 0 auto; /* Center container */
        max-width: 600px;
    }
}

/* Media query for screens smaller than 900px */
@media (max-width: 900px) {

    .container h3 {
        font-size: 1rem; 
        margin-bottom: 5px; 
        text-align: center; 
    }
    .container select, 
    .container input {
        width: 100px; 
        margin: 5px 0; 
    }
    .container button {
        width: 100px; 
        margin: 5px 0; 
        padding: 5px 10px; /* Reduced padding */
        font-size: 0.9rem; /* Adjusted font size */
    }


    .corner-btn {
        min-width: 100px;
    }

    .flex-wrapper {
        flex-direction: column; /* Ensure vertical stacking */
        align-items: center; /* Center items horizontally */
        gap: 15px; /* Adjust the spacing */
        padding: 5px; /* Add some padding */
    }
    .chart-wrappers {
        width: 100%; /* Full width */
        margin: 0 auto; /* Center items */
    }
    .chart-container,
    .chart-container-overall {
        max-width: 90%; /* Reduce chart width */
        width: 100%; /* Ensure full width within container */
    }
    .chart-container canvas {
        width: 100%; /* Ensure charts remain responsive */
        height: auto; /* Adjust height for better scaling */
        margin-bottom: 20px;
    }


}

/* Media query for screens smaller than 600px */
@media (max-width: 600px) {

    .container h3 {
        font-size: 0.8rem; /* Further reduced heading size */
    }
    .container select, 
    .container input, 
    .container button {
        width: 80px; 
        font-size: 0.8rem; /* Further adjusted font size */
        padding: 6px; /* Reduced padding */
        max-width: 250px; /* Set a max-width to prevent oversizing */
    }
    .filterButtons {
        max-width: 90%;
    }

    .corner-btn {
        min-width: 50px;
    }

}

@media  (max-width: 768px) {
    nav { 
        display: none;
    }
    
}


