
html, body { 
    font-family: 'Karla', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0f1218;
    color: #f0f0f0;
    user-select: none;
    box-sizing: border-box;

}
h1 {
    text-align: center;
    user-select: none;
    
}
h2 {
    padding-bottom: 5px;
}

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 16px;
  font-weight: 200;
  letter-spacing: .5px;
}
/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}


 /*CURRENT PRIS*/



 #myChart {
   padding-top: 30px;
 }
.prisshowcurrent{
  text-align: center;
  color: #f0f0f0; 
  padding-top: 0px;
  font-size: 18px;
}
#currentPrice {
  color: #f0f0f0;
  font-size: 5.4rem;
  font-weight: bold;
}
/* PRICES LOWEST , HIGHST, AVAREGE*/

#lowestPrice,
#highestPrice,
#averagePrice {
  font-size: 2rem;
  font-weight: bolder;
  color: #f0f0f0;
  padding-top: 0px;
  line-height: 6px;

}

.cardinfo {
  display: flex; 
 justify-content: space-evenly;
  max-width: 800px;
  margin: 30px auto;
  /*margin: 200px 200px;
  align-self: center;*/ 
}

.text-and-toggle {
  display: flex;
  max-width: 860px;
  align-items: center;
  justify-content: space-between; /* Center the items together */
  flex-wrap: nowrap;
  margin-left: auto; /* Equal margin on both sides */
  margin-right: auto;
  margin-top: 80px;
  margin-bottom: 40px;
}
.text-and-toggle .smalltext {
  margin: 0; /* Removes default margin of paragraph tag */
  flex-grow: 1; /* Allows the text to take up available space */
  padding-right: 10px; /* Adds some space between the text and the switch */
  
}
.container {
  display: flex;
  margin: 0 auto; 
  flex-direction: grid;
  max-width: 860px;
  gap: 10px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  
}
.container > div {
  text-align: center;
  background-color: #181C23;
  padding: 1rem 2rem;
  width: 100%;
  border-radius: 20px;
  flex: 1 1 calc(33.33% - 10px);

}
.container > div > .priceEl {
  text-align: center;
  padding-bottom: 0px;
  line-height: 2px;
  font-size: 0.9rem;

}
.priceElspan {
  padding-top: 0px;
  
}

#currentInfo {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 10px;
  
}


/* PRICES CHART */


.card {
    display: flex; 
    flex-direction: column;
    max-width: 800px;
    margin: 10px auto;
    /*margin: 200px 200px;
    align-self: center;*/
    background-color: #181C23;
    border-radius: 25px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.canvasholder {
    width: 100%;
   
}
.smalltext {
 
    padding-top: 0;
    padding-bottom: 0;
    color: rgb(186, 186, 187);
    text-align: left;
    font-weight: lighter;
    letter-spacing: 1px;
}


/* AREA NAVIGATION */

.dropbtn {
  position: relative;
  color: #f0f0f0;
  padding: 14px;
  width: 100%; /* Set width to 100% */
  text-align: center; /* Center text horizontally */
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  border-radius: 25px;
  font-weight: 400;
  flex-grow: 1; 
  
}
.icon {
  position: absolute; /* Position the SVG absolutely within the dropdown button */
  
 
}

.icon-left {
  margin-left: 16px;
  left: 16px; /* Adjust the left position as needed */
  top: 50%; /* Center the SVG vertically */
  transform: translateY(-50%); /* Center the SVG vertically */
}

.icon-right {
  margin-right: 16px;
  right: 16px; /* Adjust the left position as needed */
 
}
.dropdown {
  display: flex;
  align-items: center; /* Align items vertically */
  justify-content: space-between; /* Space between items */
  position: relative;
  justify-content: center; /* Keep this to center the button horizontally */
  align-items: center; /* Keep this to center the button vertically */
  margin-top: 3rem;
  margin-bottom: 0; /* 'none' is not a valid value for margin */
  padding-top: 0;
  margin: 30px auto; /* Changed to 'auto' for horizontal centering */
  border: 1px solid #81C7BF;
  background-color: #0f1218;
  border-radius: 4.4375rem;
  max-width: 860px; /* Set your desired max-width here */
}

.dropdown:hover {
  background-color: #181c23; 
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f0f0f0;
  max-width: 800px;
  min-width: 160px;
  width: 100%;
  overflow: auto;
  text-align: center;
  z-index: 2;
  left: 50%; /* Position the dropdown content from the center */
  transform: translateX(-50%);
  top: 100%;
  
}


.dropdown-content a {
  color: #f0f0f0;
  padding: 1rem 1rem;
  text-decoration: none;
  display: block;
  font-size: 1.4rem;
}

.dropdown a:hover {background-color: #0f1218;}



/* Dropdown items */
.dropdown-item {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
 
}

/* Hover effects for items */
.dropdown-item:hover {
  background-color: #ddd;
}


svg {
  color: #69c9c0; 
}



.show {
  display: block;
}

/* PRICES TABLE */

#tablewrap{
  max-width: 800px;
  
}
.tablewrap {
  max-width: 800px; 
  margin: 0 auto; /* Center the table horizontally */
  background-color: #181C23;
  padding: 20px; /* Add padding for better readability */
  justify-content: center;
  
}

.tablewrap > div {
  overflow-x: auto; /* Enable horizontal scrolling for the table */
}

#priceTable {
  width: 100%;
  border-collapse: collapse;
  max-width: 800px;
  margin: 0 auto;
  justify-content: center;

   
}

#priceTable th,
#priceTable td {
 
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(221, 221, 221, 0.125); /* Add borders between rows */
  color: #f0f0f0; /* Text color */
}

#priceTable th {
  background-color: #181C23; /* Header background color */
}
.currenttimerow {
  background-color: rgba(255, 0, 0, 0.3); /* Background color for the current time row */
  /* Adjust other styles as needed for the current time row */
}


@media screen and (max-width: 600px) {

    .card {
        margin-top: 10px; 
        padding: 1.6rem 0.8rem;
        margin-bottom: 2rem;
        border-radius: 20px;

    }
   
    .dropdown {
      position: fixed;
      top: 0;
      left: 0;
    z-index: 999; 
      transform: none;
      text-align: center;
      justify-content: left;
      margin-top: 0;
      width: 99.4%;
     /* margin-left: 16px; 
     /* max-width: calc(100% - 32px);*/
  
    }
   
    p {
      color: #f0f0f0d3;
      margin-bottom: 0px;
    }
    .dropbtn {

      width: 100%; /* Set width to 100% */
      text-align: left; /* Center text horizontally */
      font-size: 1rem;
      border: none;
      cursor: pointer;
      font-family: 'Karla', sans-serif;
      margin-top: 0px;
     
      font-weight: 400;
      line-height: normal;
      padding-left: 50px;
    
    }
  
    .icon-left {
      margin-left: 6px;
      left: 10px; /* Adjust the left position as needed */
      top: 50%; /* Center the SVG vertically */
      transform: translateY(-50%); /* Center the SVG vertically */
    }
    
    .icon-right {
      margin-right: 6px;
      right: 10px; /* Adjust the left position as needed */
     
    }

    svg {
      width: 20px;
      height: 20px;
    }
    h2 {
      padding-bottom: 0px;
      font-size: 18px;
      margin-top: 0px;
      font-weight: 400;
    }
    .smalltext {
     
      padding-bottom: 0px;
     
      padding-right: 10px;
      
    }

    .cardinfo {
     margin-bottom: 30px;
    }
    .prisshowcurrent{
      padding-top: 40px;
      padding-bottom: 20px;
      color: rgb(228, 228, 228);
    }

    .canvasholder {
      padding: 0px;
    }
    .container > div {
   
      padding: 1.5rem 0.6rem;
      border-radius: 15px;
      flex: 1 1 calc(33.33% - 10px);
    
    }
    .container {
      margin-top: 20px;
    }
    body {
      margin-left: 16px;
      margin-right: 16px;
    }
#lowestPrice,
#highestPrice,
#averagePrice {
  font-size: 1.5rem; 
}
.priceEl {
  font-size: 1.2rem;
  line-height: 2px;
}
.prisshowcurrent {
  font-size: 1.2rem;
}

.container > div > .priceEl {
  text-align: center;
  padding-bottom: 0px;
  margin-bottom: 0px; /* Adjust the margin as needed */
}

.text-and-toggle .smalltext {
  margin: 0;
  padding-right: 10px; /* Maintain some space between the text and the switch */
  /* Optionally set a max-width if the text is too short */
  max-width: 80%; /* Adjust as needed */
}
footer {
  
  font-size: 14px;
  padding: 1rem;
  
}

}


/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(179, 179, 179, 0.797);
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #69c9c0;
}

input:focus + .slider {
  box-shadow: 0 0 1px #69c9c0;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
/* ANIMATION LOTTIE*/

.overlay {
  position: fixed; /* Fixed position */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  display: flex;
  align-items: center; /* Vertical centering */
  justify-content: center; /* Horizontal centering */
  z-index: 1000; /* Ensures the overlay is on top */
}




