/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;400;700&display=swap');



body {
  font-family: 'Oswald', sans-serif;
  font-weight: 200;
  margin: 0;
  padding: 0;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
}

h1 {
  font-size: 4rem;
  text-align: center;
  font-weight: 200;
  color: #F7952D;
}

h2 {
  font-size: 1.33rem;
  margin-bottom: 2rem;
  font-weight: 200;
  color: #F7872C;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 200;
  color: white;
  text-align: center;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 200;
  color: #F7872C;
  text-align: center;
}



button {
  background-color: #1C0D02FF;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  width: 200px;
  transition: background-color 0.3s ease;
  font-family: 'Oswald', sans-serif; /*  to update the font family for buttons */
}

button:hover {
  background-color: #555;
}

.time-range-btn.time-range-active {
  background-color: #F7872C;
  color: white;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-gap: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
    text-align: center;
  }

  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 0.65rem;
  }

  h4 {
    font-size: 14px;
    color: #D2B48C;
  }

  button {
    font-size: 0.8rem;
  }
}

.time-range-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 340px;
  }
  
.time-range-buttons button {
  width: 50px; /* Adjust this value to set the desired width of the buttons */
  height: 26px; /* Adjust this value to set the desired height of the buttons */
  font-size: 81%;
  padding: 0.5rem 0.25rem;
  white-space: nowrap; /* Prevents text from wrapping to the next line */
  overflow: hidden; /* Hides any overflowing text */
  font-weight: bold;
  /*text-overflow: ellipsis;  Adds an ellipsis (...) when the text overflows */
  margin: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
  
  
  
.symbol-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto;
  max-width: 360px;
  min-width: 319px;
  gap: 0.05px;
  margin: 0 auto;
}
  
.symbol-buttons button {
  width: 45px; /* Adjust this value to set the desired width of the buttons */
  height: 24px; /* Adjust this value to set the desired height of the buttons */
  font-size: 50%;
  padding: 0.5rem 0.25rem;
  white-space: nowrap; /* Prevents text from wrapping to the next line */
  overflow: hidden; /* Hides any overflowing text */
  font-weight: bold;
  /*text-overflow: ellipsis;  Adds an ellipsis (...) when the text overflows */
  margin: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

  
.parent-container {
  width: 100%; /* Adjusts to the full width of its parent */
  height: auto; /* Adjusts based on the content inside */
  background-color: #fdf9efff;
}


.graph-canvas {
  width: 80%;
  height: 49.44%; /* Golden ratio percentage */
  min-height: 150px;
  max-height: 324px;
  max-width: 525px;
  position: relative;
}

@media (max-width: 768px) {
  .graph-canvas {
    min-width: 350px;
    min-height: 200px;
  }
}


.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}


  .symbol-btn, .time-range-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

.button-group {
  display: flex;
}

.button-group button {
  margin-left: 0.5rem;
  border-radius: 5px; /* Add rounded edges */
  background-color: #004722ff; 
}

.button-group button:hover {
  background-color: #005B4B; 
}



.pie-chart-canvas {
  width: 20%; /* Adjust this value to match the width of other items */
  height: auto; /* Golden ratio percentage */
  max-height: 400px; /* Adjust the value according to your needs */
  position: relative;
  margin-top: 80px;
  margin-bottom: 10px;
}

.symbol-btn.primary-active {
  background-color: #F7872C;
}

.symbol-btn.secondary-active {
  background-color: #8A6A6A;
}

#orange-bar {
  background: #F7872C;
  padding-top: 1px;
  padding-bottom: 10px;
  color: white;
  border-bottom: 2.5px dashed #fdf9efff;
  /*border-image: url('zigzag-pattern.png') 30 round;*/
  margin-top: 0; /*  */
  margin-bottom: 50px;
  font-size: 1vw; /*  to make the font size responsive */
  
}
    #orange-bar h1, #orange-bar h2, #orange-bar h3 {
        margin: 0;
    }
    
    #graph {
      border-bottom: 2.5px dashed white;
      padding-bottom: 100px;
    }
    
    
    #bottom-bar2 {
    background: #1C0D02FF;
    padding: 500px 50px 5px 50px;
    color: #ffffff;
    text-align: center;
    }
    
     #introduction {
            background: #1C0D02FF;
            padding-top: 250px;
          
        }
        #introduction h1::after {
            content: '\A';
            white-space: pre;
        }
        #marko, #liinus {
            display: flex;
            align-items: center;
            gap: 1px;
        }
        #marko a, #liinus a {
    display: block;
    text-align: center;
    text-color: white;
}

        #collaboration {
            color: white;
        }

/* Default setting for larger screens */
#dataTable {
  width: 30%;
  border-collapse: collapse;
}

#dataTable td, #dataTable th {
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 1.2vw; /* This will adjust the font size based on the viewport width */
}

@media (max-width: 600px) { /* Adjust this value based on when you want the changes to take effect */
  #dataTable {
    margin-left: 5px;
    margin-right: 5px;
    
  }
  #dataTable td, #dataTable th {
    font-size: 2vw; /* Adjust this value as needed - it's larger since the viewport is smaller */
  }
}

/* Target the 2nd column (categoryAllocation) of data rows only */
#dataTable tbody td:nth-child(2) {
    color: #F7872C;
    font-weight: bold;
}

/* Target the 4th column (asset_allocation) of data rows only */
#dataTable tbody td:nth-child(4) {
    color: #F7872C;
}

thead {
  background-color: #f2f2f2;
}

.category-cell {
    color: #F7872C;
    font-weight: bold;
}



.person {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.person img {
  width: 70px; 
  height: auto; 
  object-fit: cover; 
}

.maisema {
  width: 30%; 
  height: auto; 
  margin: auto;
  padding-bottom: 40px;
  display: block;
}

/* When screen is less than 768px, adjust the height and width of the image */
@media (max-width: 767px) {
  .person img {
    width: 50px;
    height: 50px;
  }
  .maisema {
  width: 80%;
  }

}


.team {
  display: flex;
  justify-content: space-around;
  gap: 0px;
}


.person p {
  text-align: center;
  margin-top: 0px; /* Add some space between the image and the name */
}

.logo {
    width: 120px;
    height: auto;
}

@media (max-width: 768px) {
    .logo {
        width: 90px;
    }
}


/*
.connect-button {
    background-color: #004722ff;
    color: #80ff00;
    border: none;
    padding: 0.5em 0.5em;
    max-width: 100px;
    text-align: center; 
    vertical-align: middle; 
    text-decoration: none;
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 20px;
    font-family: 'Oswald', sans-serif;
}


.connect-button:hover {
    background-color: #80ff00;
    color: #004722ff;
}

 @media screen and (max-width: 768px) {
            .connect-button {
                padding: 0.5em 1.5em;
                font-size: 20px;
                width: 35%;
            }
        }
        
*/
   
.connect-button {
    background-color: #555;
    color: #242121;
    border: none;
    padding: 0.5em 0.5em;
    max-width: 100px;
    text-align: center; /* This line centers the text horizontally */
    vertical-align: middle; /* This line centers the text vertically */
    text-decoration: none;
    display: inline-flex; 
    justify-content: center; /* These two lines center the text vertically within the button */
    align-items: center; /* when used with display: inline-flex */
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 20px;
    font-family: 'Oswald', sans-serif; /* Add the Oswald font */
}


 @media screen and (max-width: 768px) {
            .connect-button {
                padding: 0.5em 1.5em;
                font-size: 20px;
                width: 35%;
            }
        }

.infinite-mass {
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 25vh;
    text-align: center;
    color: #F7872C;
    margin-bottom: 120px;
    margin-top: 10px;
}

.economics {
    font-size: 7rem; /* adjust the size as needed */
}

@media (max-width: 768px) {
  infinte-mass {
    font-size: 3rem;
  }

  economics {
    font-size: 3.5rem;
  }

}

#bottom-bar {
    background: #1C0D02FF;
    padding: 500px 50px 5px 50px;
    color: #ffffff;
    text-align: center;
    border-top: 2.5px dashed #fdf9efff;
}


#step1 {
            background: #1C0D02FF;
        }


#loader {
  display: none;
  position: absolute;
  z-index: 9999;
  top: 60%;
  left: 48.25%;
  transform: translate(-50%, -50%);
  border: 16px solid #f3f3f3;
  border-top: 16px solid #F7872C;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 2s linear infinite;
}

#loader2 {
  display: none;
  position: absolute;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 16px solid #f3f3f3;
  border-top: 16px solid #F7872C;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 2s linear infinite;
  /* Position the loader relative to #my-section */
  top: 50%; /* Adjust this value to position the loader vertically */
  left: 50%; /* Adjust this value to position the loader horizontally */
  transform: translate(-50%, -50%);
}

.contact {
    background-color: #1C0D02FF;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.center {
    width: 12.5%;
    height: auto;
}

@media (max-width: 768px) {
    .center {
       width:100px;
}
}

.fund-title1{
  font-size: 3rem;
  padding-top: 0px;
  margin-top: 0px;
  padding-bottom: 0px;
  margin-bottom: 0px;
  color: white;
  display: inline-block;
}

.fund-title2{
  font-size: 4.75rem;
  padding-top: 0px;
  margin-top: 0px;
  padding-bottom: 0px;
  margin-bottom: 0px;
  color: white;
  display: inline-block;
}

.fund-title3{
  font-size: 2.0rem;
  padding-top: 0px;
  margin-top: 0px;
  padding-bottom: 0px;
  margin-bottom: 0px;
  color: white;
  display: inline-block;
}

.protocol-text{
  font-size: 2.25rem;
  padding-top: 0px;
  margin-top: 0px;
  padding-bottom: 0px;
  margin-bottom: 0px;
  color: white;
}

.algo {
  font-size: 12px;
  color: white;
}

.copyright{
  font-size: 12px;
}

@media (max-width: 768px) {
.fund-title1{
  font-size: 33px;
}

.fund-title2{
  font-size: 54px;
}

.fund-title3{
  font-size: 23px;
}

.protocol-text{
  font-size: 25.7px;
}

.algo{
  font-size: 8px;
}

.copyright{
  font-size: 8px;
}

}

#orange-bar h3,
#orange-bar div,
#orange-bar p {
    margin: 0;
    line-height: 1.2;
    display: inline-block;
}


.top-bar {
  display: flex;
  justify-content: flex-start;
  background-color: #000;
  padding-top: 10px;
  padding-bottom: 0px;
  padding-left: 10px;
  overflow-x: auto; 
  z-index: 1000;
  position: relative;
}

.top-bar-item {
  position: relative;
  text-align: center;
  padding-top: 10px;
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 30px;
  box-sizing: border-box;
  color: white;
  font-weight: bold;
  font-size: 20px;
  margin-right: 5px;
  background-color: #333;
  flex: 1 0 auto; /* Adjusts basis to auto and allows items to grow */
  min-width: 40px; /* Adjust as needed */
  min-height: 80px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Responsive adjustments for smaller screens, allowing items to wrap */
@media (max-width: 768px) {
  .top-bar {
    flex-wrap: wrap; /* Allows items to wrap to the next line */
  }

  .top-bar-item {
    padding-top: 10px;
    font-size: 0.6em; /* Adjust font size as needed */
    margin-right: 4px;
    margin-bottom: 0px; /* Adds space between rows when wrapped */
  }
}

@media (max-width: 480px) {
  .top-bar-item {
    font-size: 0.6em; /* Smaller font size for very small screens */
  }
}


.top-bar-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  background-color: black;
  width: 10px;
  height: 10px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.api-message {
    margin-bottom: 20px; /* Adds space below each message */
    padding: 10px; /* Adds space inside each message div */
    border-bottom: 1px solid #ccc; /* Optional: adds a line below each message for better separation */
    /* You can add other styles here, such as background-color, border-radius, etc. */
}

#thesis {
  margin: 0 0; /* Adjusts the left and right margins */
  max-width: 100%; /* Ensures the section does not exceed the width of the screen */
}

#thesis h3 {
  color: #F7872C;
  font-size: 1rem;
  white-space: pre-wrap; /* Allows the text to wrap to the next line */
  margin: 0 0;
}

/* Media query for larger screens */
@media (min-width: 768px) {
  #thesis {
    margin: 0 20%; /* Increases margin for larger screens */
  }
}

/* Media query for even larger screens */
@media (min-width: 1024px) {
  #thesis {
    margin: 0 30%; /* Further increases margin for even larger screens */
  }
}




