:root {
  font-family: "Montserrat";
  background-color: #f6f8fc;
  --arrow-bg: rgba(255, 255, 255, 0.3);
  --arrow-icon: url(https://upload.wikimedia.org/wikipedia/commons/9/9d/Caret_down_font_awesome_whitevariation.svg);
  --option-bg: white;
  --select-bg: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
}

main {
  margin: auto;
  border-radius: 1rem;
  padding: 0.5rem;
  gap: 0.25rem;
}

p {
  line-height: 0.01;
  font-size: 1rem;
}

option {
  background-color: white;
  border-radius: 4px;
  padding: 2px;
}

.nav-header {
  display: flex;
  justify-content: center;
  padding: 1rem 0rem;
  display: flex;
  align-items: center;
  margin: auto;
  text-align: center;
}

select {
  background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>")
    no-repeat;
  background-position: calc(100% - 0.75rem) center !important;
  -moz-appearance: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 2rem !important;
}

h2 {
  margin-top: 0;
}
header {
  width: 100%;
  position: sticky;
  top: 0px;
  z-index: 50;
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px, 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  --tw-backdrop-blur: blur(12px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness)
    var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale)
    var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert)
    var(--tw-backdrop-opacity) var(--tw-backdrop-saturate)
    var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness)
    var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale)
    var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert)
    var(--tw-backdrop-opacity) var(--tw-backdrop-saturate)
    var(--tw-backdrop-sepia);
  background-color: #fff;
}

.location-text {
  text-align: start;
  font-weight: 700;
  --tw-text-opacity: 1;
  color: rgb(15 23 42);
}

.main-card {
  border: solid 1px;
  padding: 0.75rem;
  border-radius: 1.25rem;
}

.logo {
  height: 3rem;
  margin-left: 2rem;
  margin-right: 2rem;
  width: auto;
  display: none;
}

.arrow-logo {
  display: none;
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: 2rem;
}

.path-dark {
  fill: #545454;
}

.path-yellow {
  fill: #fbd008;
}

.info-box {
  padding: 16px 24px 24px;
  border-radius: 8px;
  width: 640px;
  max-width: 100%;
  background-color: #f6f8fc;
}

.welcome-text {
  line-height: 1.75;
  color: #a0aec0;
}

.input-label {
  color: #4299e1;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.input {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 16px;
  flex-grow: 1;
}

.icon {
  stroke: #454545;
}

.submit-button {
  border-radius: 8px;
  border-style: solid 1px;
  border-color: #fbd008;
  color: #454545;
  padding: 8px 16px;
  cursor: pointer;
  width: 100%;
}

.flex-col {
  display: flex;
  text-align: center;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-label {
  display: flex;
  flex-direction: row;
  gap: 5px;
  text-align: center;
  justify-content: space-between;
}
.logout {
  border: solid 1px;
  padding: 2px 10px;
  border-radius: 5px;
}

.login {
  text-align: center;
}

.flex-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.flex-center-login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
}

.data-container {
  text-align: center;
}

.text-label {
  font-size: 1.25rem;
}

.text-welcome {
  font-size: 1.25rem;
  font-weight: 700;
}

.no-data-message {
  display: none;
  color: #656565;
  font-weight: 700;
  font-size: 4rem;
}

.main-nav {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  width: 100%;
  background-color: #f8f8f8;
  border-radius: 12px;
}

.tab {
  overflow: hidden;
  background-color: #f8f8f8;
}

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

.tab button:hover {
  background-color: #ddd;
}

.tab button.active {
  background-color: #ccc;
}

.tabcontent {
  display: none;
  /* padding: 6px 12px; */
  border-top: none;
  animation: fadeEffect 1s;
}

h3 {
  padding: 0px 24px;
}

.chart-container {
  float: left;
  display: flex;
  flex-direction: row;
  background-color: #f1f1f1;
}

.monthlinks {
  display: block;
  background-color: inherit;
  color: black;
  padding: 0px 16px;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: 0.5s;
}

.monthlinks:hover {
  background-color: #ddd;
}

.monthlinks.active {
  background-color: #ccc;
}

.month-tabcontent {
  display: none;
  align-items: center;
  justify-content: center;
  margin: auto;
  height: 595.2px;
  width: 100%;
  text-align: center;
  border-left: none;
  animation: fadeEffect 1s;
  align-items: center;
  justify-content: center;
}

.custom-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f1f1f1;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
  display: none; /* Hidden initially */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* IDs */
#recordedAt {
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: #454545;
}

#currentData {
  font-size: 5rem;
  font-weight: 1000;
}

#pastData {
  font-size: 2rem;
  font-weight: 1000;
}

#stationType {
  font-size: 1.5rem;
  font-weight: 1000;
}

@media (min-width: 412px) {
  .submit-button {
    width: 25%;
  }
  .container {
    max-width: 412px;
  }
  .custom-select {
    width: 100%;
  }
  #currentData {
    font-size: 3.5rem;
  }
  .chart-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
  }
  .input-group {
    display: flex;
    flex-direction: row;
  }

  .flex-center {
    align-items: center;
    width: 100%;
  }
  h3 {
    padding: 0px 4px;
    text-align: center;
  }
  #stationType {
    font-size: 1.25rem;
  }
  .monthlinks {
    width: 100px;
    padding: 0px 0px;
  }
  .month-tabcontent {
    width: 100%;
  }
  .tab {
    background-color: #f0f0f0;
  }
  .tablinks {
    width: 50%;
    font-weight: 500;
    font-size: 1rem;
  }
  .flex-center-login {
    width: 100%;
    height: 100%;
  }
}
@media (min-width: 640px) {
  .flex-center-login {
    width: 75%;
    height: 100%;
  }
  .logo {
    display: block;
  }

  .arrow-logo {
    display: block;
  }

  .container {
    max-width: 640px;
  }
  .custom-select {
    width: 100%;
  }
  #currentData {
    font-size: 4rem;
  }
  .data-container {
    width: 100%;
  }
  .flex-center {
    align-items: normal;
  }
  h3 {
    padding: 0px 4px;
    text-align: center;
  }
  #stationType {
    font-size: 1.5rem;
  }
  .monthlinks {
    width: 130px;
    padding: 0px 0px;
  }
  .month-tabcontent {
    width: 100%;
  }
  .tablinks {
    width: 50%;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
  .custom-select {
    width: 100%;
  }
  #currentData {
    font-size: 4.5rem;
  }
  .data-container {
    width: 100%;
  }
  h3 {
    padding: 0px 4px;
    text-align: center;
  }
  .monthlinks {
    width: 168px;
    padding: 0px 0px;
  }
  .month-tabcontent {
    width: 100%;
  }
  .tablinks {
    width: 25%;
  }
}
@media (min-width: 1024px) {
  .flex-center-login {
    width: 50%;
    height: 100%;
  }
  .container {
    max-width: 1024px;
  }
  .custom-select {
    width: 100%;
  }
  #currentData {
    font-size: 5rem;
  }
  .chart-container {
    flex-direction: column;
  }
  .data-container {
    width: 100%;
  }
  h3 {
    padding: 0px 4px;
    text-align: center;
  }
  .monthlinks {
    width: 185.5px;
    padding: 0px 0px;
  }
  .month-tabcontent {
    width: 80%;
  }
  .tablinks {
    width: 20%;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
  .custom-select {
    width: 100%;
  }
  #currentData {
    font-size: 5rem;
  }
  .data-container {
    width: 100%;
  }
  h3 {
    padding: 0px 4px;
    text-align: center;
  }
  .monthlinks {
    width: 200px;
    padding: 0px 0px;
  }
  .month-tabcontent {
    width: 80%;
  }
  .tablinks {
    width: 100px;
  }
}
@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
  .custom-select {
    width: 100%;
  }
  #currentData {
    font-size: 5rem;
  }
  .chart-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
  }
  .data-container {
    width: 100%;
  }
  h3 {
    padding: 0px 4px;
    text-align: center;
  }
  .monthlinks {
    width: 200px;
    padding: 0px 0px;
  }
  .month-tabcontent {
    width: 80%;
  }
  .tablinks {
    width: 100px;
  }
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
