@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

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

html{
    display: flex;
    width: 100%;
    height: 100%
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #121212; /* Dark mode background */
    color: #e0e0e0; /* Light text color */
    margin: 0;
    
    display: flex;
    min-height: 100vh;
    width: 100%;
    height: 100%;
    justify-content: center;

}

.suggestion-pill{
    background-color: #6200ea;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 9999px;
    margin-bottom: 10px;
    margin-left: 10px;
    width: fit-content;
    font-weight: bold;
    cursor: pointer;

}

.estimated-price{
    color: lightgreen
}

#suggestions {
    background: #1e1e1e; /* Darker container */
    margin-top: 2rem;
    padding: 1rem 1rem;
    border-radius: 8px;
    border: #7c1eff 2px solid;
}

.container {
    display: flex;
    max-width: 700px;
    width: 100%;
    flex-direction: column;

    background: #1e1e1e; /* Darker container */

    margin: 1rem auto;
    padding: 1rem;
    border-radius: 0.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

h1, h2 {
    text-align: center;
    color: #ffffff; /* White headings */
}

input {
   
    display: flex;
    padding: 1rem 2rem;
    margin-bottom: 3rem;
    border: none;
    outline: none;
    font-size: 1.2rem;
    border-radius: 0.6rem;
    background-color: #333333; /* Input background */
    color: #ffffff; /* Input text color */
}

button {
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    background-color: #6200ea; /* Primary button color */
    color: white;
    border: none;
    border-radius: 0.6rem;
    font-size: 1.2rem    ;
    cursor: pointer;
}

button:hover {
    background-color: #3700b3; /* Button hover effect */
}

.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-container label {
   color: #ffffff; /* Label color */
}

.readings-section {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #444444; /* Table borders */
    padding: 10px;
}

th {
    background-color: #333333; /* Header background */
}

tbody tr:nth-child(even) {
    background-color: #2a2a2a; /* Zebra striping for rows */
}

tbody tr:hover {
    background-color: #444444; /* Row hover effect */
}

/* Light mode styles */
body.light-mode {
   background-color: #ffffff; /* Light mode background */
   color: #000000; /* Dark text color */
}

.container.light-mode {
   background-color: #f9f9f9; /* Lighter container */
}

input.light-mode,
button.light-mode {
   background-color: #e0e0e0; /* Lighter input/button background */
   color: #000000; /* Dark text in light mode */
}

.toggle-container.light-mode label {
   color: #000000; /* Dark label in light mode */
}


.loading-container {
    display: none;
    justify-content: center;
    align-items: center;    

}
.lds-hourglass,
.lds-hourglass:after {
  box-sizing: border-box;
  
}
.lds-hourglass {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-hourglass:after {
  content: " ";
  display: block;
  border-radius: 50%;
  width: 0;
  height: 0;
  margin: 8px;
  box-sizing: border-box;
  border: 32px solid currentColor;
  border-color: currentColor transparent currentColor transparent;
  animation: lds-hourglass 1.2s infinite;
}
@keyframes lds-hourglass {
  0% {
    transform: rotate(0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  50% {
    transform: rotate(900deg);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  100% {
    transform: rotate(1800deg);
  }
}


/* media contaier for phone */
@media (max-width: 550px) {
    .container {
        padding: 1rem 0.5rem;
        padding-top: 2rem;
        width: 100%;
        margin: 1rem 0.5rem;
    }

    input {
        padding: 1rem 0.7rem;
        margin-top: 1.5rem;
        font-size: 1rem;
    }

    button {
        padding: 1rem 0.7rem;
        font-size: 1rem;
    }

    .toggle-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .toggle-container label {
        margin-bottom: 0.5rem;
    }

    .readings-section {
        margin-top: 10px;
    }
}