@import url("css/css2.css?family=Poppins:wght@300&family=Roboto:wght@300&display=swap");
*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: grid;
  place-items: center;
  font-family: "Roboto", sans-serif;
  background: #261f33;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.tabs-container {
  width: 100%;
  max-width: 900px;
  height: 60vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 500px 1fr;
  border-radius: 7px;
}

.tabs-main {
  width: 100%;
  height: 100%;
  position: relative;
  background-image: url("../img/mars-surface.png");
  background-repeat: no-repeat;
}
.tabs-main header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  padding: 14px 2em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.tabs-main header h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #EC938B;
  font-family: "Poppins", sans-serif;
}

.info {
  position: relative;
  width: 100%;
  border-radius: 7px;
}
.info svg {
  display: block;
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin-left: auto;
}
.info p {
  padding: 10px 20px;
  position: absolute;
  top: -130px;
  right: 0px;
  width: 100%;
  z-index: 100;
  background: #EC938B;
  text-align: left;
  color: #FFF;
  line-height: 1.4rem;
  font-size: 1rem;
}

.fadeUp-enter-active, .fadeUp-leave-active {
  opacity: 1;
  transform: translateY(0px);
  transition: 0.5s;
}

.fadeUp-enter, .fadeUp-leave-to {
  opacity: 0;
  transform: translateY(10px);
}

.tabs-page {
  position: absolute;
  top: 5%;
  left: 0;
  width: 100%;
  height: 50%;
  padding: 2em;
  display: grid;
  grid-template-columns: 30% 1fr;
  padding: 2em;
}
.tabs-page__sol h1, .tabs-page__sol h2 {
  color: #e6e6e6;
  font-size: 4rem;
  font-family: "Poppins", sans-serif;
  letter-spacing: 2px;
  line-height: 3rem;
}
.tabs-page__sol h2 {
  font-size: 1.5rem;
}
.tabs-page__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.readings {
  text-align: center;
  padding: 0px 10px 10px;
}
.readings h3 {
  color: #FFF;
}
.readings svg {
  margin: 1em 0;
  width: 180px;
}

.stat {
  font-size: 1.5rem;
}
.stat__unit {
  color: #FFF;
}
.stat__metric {
  margin: 10px 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #CCCCCC;
}
.stat__metric span {
  font-weight: 600;
  cursor: pointer;
}

.activeUnit {
  color: #EC938B;
  pointer-events: none;
}

.tabs-menu {
  height: min-content;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6em, 1fr));
  border-top: 1px solid #e87f75;
}

.tab {
  height: 100%;
  background: #EC928C;
  padding: 12px;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s;
  border-right: 1px solid #e87f75;
  color: #dbdbdb;
  transform: scaleY(1);
  transform-origin: 0% 100%;
}
.tab:hover {
  background: #e67268;
  position: relative;
}
.tab:hover p {
  font-weight: 600;
  color: #fafafa;
}
.tab strong {
  display: block;
  margin-bottom: 6px;
}

.active {
  background: #e67268;
  pointer-events: none;
  transform: scaleY(1.05);
}
.active p {
  font-weight: 600;
  color: #fafafa;
}

@media (max-width: 470px) {
  .tabs-container {
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(7, 1fr);
  }
}