@import url(https://fonts.googleapis.com/css2?family=Chivo+Mono:ital,wght@0,100..900;1,100..900&display=swap);

:root {
  --cl-light: #76abae;
  --cl-lightest: #eee;
  --cl-dark: #31363f;
  --cl-darkest: #222831;
  --fs-smaller: 3vw;
  --fs-small: 5vw;
  --fs-medium: 7vw;
  --fs-large: 10vw;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 50px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Chivo Mono", monospace;
}

@media only screen and (max-width: 290px) {
  body {
    display: none;
  }
}

body header nav .btnClose,
body header nav .menu,
body main article #intro .introImg,
body main .container #calc article #example {
  display: none;
}

body header nav .menu.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

body header nav .menu.fadeOut {
  animation: fadeOut 0.3s ease;
}

body main .container #resultContainer {
  display: none !important;
}

body main .container #resultContainer.show {
  display: flex !important;
}

body main .container #resultContainer #result {
  display: none;
}

body main .container #resultContainer.show #result {
  display: flex;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--cl-lightest);
}

body header {
  width: 100%;
  height: 18vh;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  background-color: var(--cl-darkest);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

body header div {
  width: 60vw;
  max-width: 200px;
  height: 7vh;
  min-height: 50px;
}

body header div #logoHome {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-normal);
}

body header nav .btnMenu {
  height: 5vh;
  min-height: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 99;
}

body header nav .btnMenu:hover {
  transform: scale(1.1);
}

body header nav .btnClose {
  height: 5vh;
  min-height: 50px;
  position: fixed;
  top: 50px;
  right: var(--spacing-md);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 99;
}

body header nav .btnClose:hover {
  transform: scale(1.1) rotate(90deg);
}

body header nav .menu {
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  text-align: center;
  position: fixed;
  background-color: rgba(34, 40, 49, 0.98);
  backdrop-filter: blur(10px);
}

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

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

body header nav .menu li {
  margin: 21vh 0 -12vh 0;
  list-style: none;
}

body header nav .menu li a {
  font-size: var(--fs-large);
  font-weight: bold;
  text-decoration: none;
  color: var(--cl-lightest);
  padding: var(--spacing-md);
  display: inline-block;
  transition: var(--transition-normal);
  position: relative;
}

body header nav .menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--cl-light);
  transform: translateX(-50%);
  transition: var(--transition-normal);
}

body header nav .menu li a:hover::after {
  width: 80%;
}

body main .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow-x: hidden;
}

body main .container #intro {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

body main .container #intro p {
  width: 95vw;
  max-width: 800px;
  font-size: var(--fs-medium);
  line-height: 1.6;
  color: var(--cl-dark);
  margin: var(--spacing-md) 0;
}

body main .container #resultContainer {
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  position: fixed;
  background-color: rgba(238, 238, 238, 0.9);
  backdrop-filter: blur(5px);
  z-index: 999;
  animation: fadeIn 0.6s ease;
  transition: opacity 0.6s ease;
}

body main .container #resultContainer #result {
  width: 90vw;
  max-width: 600px;
  height: 95vh;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  padding: var(--spacing-lg);
  background-color: var(--cl-dark);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

body main .container #resultContainer #result::-webkit-scrollbar {
  width: 8px;
}

body main .container #resultContainer #result::-webkit-scrollbar-track {
  background: var(--cl-darkest);
  border-radius: var(--border-radius-sm);
}

body main .container #resultContainer #result::-webkit-scrollbar-thumb {
  background: var(--cl-light);
  border-radius: var(--border-radius-sm);
}

body main .container #resultContainer #result::-webkit-scrollbar-thumb:hover {
  background: #5a9194;
}

body main .container #resultContainer #result a {
  width: 100%;
  text-decoration: none;
  margin-bottom: var(--spacing-lg);
}

body main .container #resultContainer #result .newCalc {
  width: 100%;
  height: 8vh;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: var(--spacing-md);
  color: var(--cl-dark);
  background-color: var(--cl-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  cursor: pointer;
}

body main .container #resultContainer #result .newCalc:hover {
  background-color: #5a9194;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

body main .container #resultContainer #result .newCalc img {
  width: 2.5vh;
  min-width: 20px;
  transition: var(--transition-fast);
}

body main .container #resultContainer #result .newCalc:hover img {
  transform: translateX(-4px);
}

body main .container #resultContainer #result .valCalculated,
body main .container #resultContainer #result .resultValues {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  margin-bottom: var(--spacing-xl);
}

body main .container #resultContainer #result .valCalculated h2,
body main .container #resultContainer #result .resultValues h2 {
  font-size: var(--fs-medium);
  margin-bottom: var(--spacing-md);
  color: var(--cl-lightest);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--cl-light);
  width: 100%;
}

body main .container #resultContainer #result .valCalculated div,
body main .container #resultContainer #result .resultValues div {
  width: 100%;
  min-height: 8vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  font-size: var(--fs-small);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  color: var(--cl-dark);
  background-color: var(--cl-lightest);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

body main .container #resultContainer #result .valCalculated div:hover,
body main .container #resultContainer #result .resultValues div:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

body main .container #resultContainer #result .valCalculated div p:first-child,
body main .container #resultContainer #result .resultValues div p:first-child {
  font-weight: 600;
}

body main .container #resultContainer #result .valCalculated div p:last-child,
body main .container #resultContainer #result .resultValues div p:last-child {
  font-weight: 700;
  color: var(--cl-light);
}

body main .container #resultContainer #result .graphics {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: var(--spacing-lg);
}

body main .container #resultContainer #result .graphics h2 {
  width: 100%;
  min-height: 5vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-medium);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  color: var(--cl-dark);
  background-color: var(--cl-light);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
}

body main .container #resultContainer #result .graphics div {
  width: 100%;
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  background-color: var(--cl-lightest);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
}

body main .container #calc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--spacing-xl) 0;
  background-color: var(--cl-dark);
}

body main .container #calc h1 {
  text-align: center;
  font-size: var(--fs-large);
  font-weight: bold;
  margin: var(--spacing-lg) var(--spacing-md);
  color: var(--cl-lightest);
  padding-bottom: var(--spacing-md);
  position: relative;
}

body main .container #calc h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--cl-light);
  border-radius: var(--border-radius-sm);
}

body main .container #calc article {
  width: 90vw;
  max-width: 1200px;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background-color: var(--cl-lightest);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

body main .container #calc article #calculator {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: var(--spacing-md);
}

body main .container #calc article #calculator div {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

body main .container #calc article #calculator div label {
  font-size: var(--fs-medium);
  font-weight: 600;
  color: var(--cl-dark);
}

body main .container #calc article #calculator div input,
body main .container #calc article #calculator div select {
  width: 100%;
  height: 5vh;
  min-height: 50px;
  font-size: var(--fs-small);
  padding: 0 5px;
  border: 2px solid transparent;
  border-radius: var(--border-radius-sm);
  color: var(--cl-dark);
  background-color: white;
  transition: var(--transition-fast);
  outline: none;
}

body main .container #calc article #calculator div input:focus,
body main .container #calc article #calculator div select:focus {
  border-color: var(--cl-light);
  box-shadow: 0 0 0 3px rgba(118, 171, 174, 0.1);
}

body main .container #calc article #calculator div input::placeholder {
  color: #999;
}

body main .container #calc article #calculator div select {
  cursor: pointer;
  background-color: white;
}

body main .container #calc article #calculator div > div {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-sm);
}

body main .container #calc article #calculator div > div input {
  flex: 2;
}

body main .container #calc article #calculator div > div select {
  flex: 1;
}

body main .container #calc article #calculator .btnCompute {
  align-items: center;
  margin-top: var(--spacing-md);
}

body main .container #calc article #calculator .btnCompute a {
  width: 100%;
  text-decoration: none;
}

body main .container #calc article #calculator .btnCompute a #compute {
  width: 100%;
  height: 8vh;
  min-height: 55px;
  font-size: var(--fs-medium);
  font-weight: bold;
  border: none;
  border-radius: var(--border-radius-xl);
  color: var(--cl-dark);
  background-color: var(--cl-light);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

body main .container #calc article #calculator .btnCompute a #compute:hover {
  background-color: #5a9194;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

body main .container #calc article #calculator .btnCompute a #compute:active {
  transform: translateY(-1px);
}

body main .container #about {
  width: 90vw;
  max-width: 800px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

body main .container #about h2 {
  font-size: var(--fs-medium);
  font-weight: bold;
  margin-bottom: var(--spacing-lg);
  color: var(--cl-dark);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

body main .container #about h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--cl-light);
  border-radius: var(--border-radius-sm);
}

body main .container #about p {
  font-size: var(--fs-medium);
  line-height: 1.7;
  color: #555;
}

body footer article {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: var(--cl-darkest);
}

body footer article #logoFooter {
  width: 60vw;
  max-width: 200px;
  height: 8vh;
  min-height: 60px;
  object-fit: contain;
  margin-bottom: var(--spacing-lg);
}

body footer article .footerIcons {
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

body footer article .footerIcons a {
  transition: var(--transition-normal);
}

body footer article .footerIcons a:hover {
  transform: scale(1.15);
}

body footer article .footerIcons img {
  height: 10vw;
  max-height: 40px;
  transition: var(--transition-normal);
}

body footer article .copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--spacing-xs);
  font-size: var(--fs-smaller);
  color: var(--cl-lightest);
  text-align: center;
}

body footer article .copyright h3 {
  font-weight: normal;
}

body footer article .copyright p {
  opacity: 0.8;
}

.custom-notification {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  max-width: 90vw;
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--cl-dark);
  color: var(--cl-lightest);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transition:
    top 0.3s ease,
    opacity 0.3s ease;
  opacity: 0;
  border-left: 4px solid var(--cl-light);
}

.custom-notification.show {
  top: 20px;
  opacity: 1;
}

.custom-notification.hide {
  top: -100px;
  opacity: 0;
}

.custom-notification.error {
  background-color: #d32f2f;
  border-left-color: #b71c1c;
}

.custom-notification.success {
  background-color: #388e3c;
  border-left-color: #1b5e20;
}

.custom-notification.info {
  background-color: var(--cl-dark);
  border-left-color: var(--cl-light);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--fs-small);
  font-weight: 500;
}

.notification-icon {
  font-size: 1.5em;
  flex-shrink: 0;
}

.notification-message {
  flex: 1;
  line-height: 1.4;
}

@media only screen and (min-width: 570px) and (max-width: 767.99px) {
  body header div,
  body footer article #logoFooter {
    height: 10vh;
  }

  body header nav .btnMenu {
    height: 7vh;
  }

  body header nav .btnClose {
    height: 7vh;
    top: 40px;
  }

  body main .container #resultContainer #result .valCalculated div,
  body main .container #resultContainer #result .resultValues div {
    min-height: 12vh;
  }

  body main .container #resultContainer #result .graphics h2,
  body main .container #calc article #calculator div input,
  body main .container #calc article #calculator div select {
    height: 7vh;
  }

  body main .container #resultContainer #result .graphics div {
    min-height: 40vh;
  }

  body main .container #calc article #calculator .btnCompute a #compute {
    height: 12vh;
  }

  body footer article .footerIcons img {
    height: 8vw;
  }

  body footer article .copyright {
    font-size: 2.5vw;
  }
}

@media only screen and (min-width: 768px) {
  :root {
    --fs-smaller: 1.1rem;
    --fs-small: 1.3rem;
    --fs-medium: 1.6rem;
    --fs-large: 2rem;
  }

  body header nav .btnMenu,
  body header nav .btnClose {
    display: none;
  }

  body header {
    height: 12vh;
    min-height: 80px;
    padding: 0 var(--spacing-xl);
  }

  body header div {
    width: 200px;
    height: 60px;
  }

  body header nav {
    width: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  body header nav .menu {
    width: auto;
    height: auto;
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
    gap: var(--spacing-xl);
    background-color: transparent;
    backdrop-filter: none;
  }

  body header nav .menu li {
    margin: 0;
  }

  body header nav .menu li a {
    font-size: 1.1rem;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  body header nav .menu li a:hover {
    color: var(--cl-light);
  }

  body main .container #intro {
    min-height: 50vh;
    flex-direction: row;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
  }

  body main .container #intro p {
    width: 50%;
    max-width: 600px;
    font-size: 1.7rem;
    text-align: left;
  }

  body main .container #intro .introImg {
    display: block;
    width: 40%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
  }

  body main .container #resultContainer #result {
    width: 80vw;
    max-width: 1000px;
    padding: var(--spacing-xl);
  }

  body main .container #resultContainer #result .newCalc {
    font-size: 1.3rem;
    height: 10vh;
  }

  body main .container #resultContainer #result .newCalc img {
    width: 30px;
  }

  body main .container #resultContainer #result .valCalculated,
  body main .container #resultContainer #result .resultValues {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }

  body main .container #resultContainer #result .valCalculated h2,
  body main .container #resultContainer #result .resultValues h2 {
    width: 100%;
  }

  body main .container #resultContainer #result .valCalculated div {
    width: calc(50% - var(--spacing-sm));
    min-height: 10vh;
  }

  body main .container #resultContainer #result .resultValues div {
    width: calc(33.333% - var(--spacing-sm));
    min-height: 10vh;
  }

  body main .container #resultContainer #result .graphics div {
    min-height: 40vh;
  }

  body main .container #calc article {
    display: flex;
    flex-direction: row;
  }

  body main .container #calc article #calculator {
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    padding-right: var(--spacing-xl);
    border-right: 2px solid var(--cl-light);
  }

  body main .container #calc article #calculator div input,
  body main .container #calc article #calculator div select {
    height: 5vh;
    min-height: 55px;
  }

  body main .container #calc article #calculator .btnCompute {
    width: 100%;
  }

  body main .container #calc article #calculator .btnCompute a #compute {
    height: 10vh;
    min-height: 60px;
  }

  body main .container #calc article #example {
    display: block;
    flex: 0.6;
    padding: var(--spacing-lg);
    background-color: rgba(118, 171, 174, 0.1);
    border-radius: var(--border-radius-sm);
  }

  body main .container #calc article #example h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--cl-dark);
  }

  body main .container #calc article #example p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    color: #555;
  }

  body main .container #calc article #example p:nth-child(3),
  body main .container #calc article #example p:nth-child(5),
  body main .container #calc article #example p:nth-child(7) {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--cl-light);
    margin-bottom: var(--spacing-md);
  }

  body footer article {
    flex-direction: row;
    justify-content: space-between;
    padding: var(--spacing-xl);
  }

  body footer article #logoFooter {
    order: 1;
    margin: 0;
  }

  body footer article .footerIcons {
    order: 3;
    width: auto;
    margin: 0;
  }

  body footer article .footerIcons img {
    height: 50px;
    cursor: pointer;
  }

  body footer article .copyright {
    order: 2;
    font-size: 0.9rem;
    margin: 0;
  }

  .notification-content {
    font-size: 1rem;
  }

  .custom-notification {
    min-width: 400px;
  }
}

@media only screen and (min-width: 1300px) {
  body {
    overflow-x: hidden;
  }

  body header div {
    width: 250px;
  }

  body main .container #intro {
    min-height: 60vh;
  }

  body main .container #intro p {
    font-size: 2.2rem;
  }

  body main .container #resultContainer #result {
    width: 70vw;
    max-width: 1200px;
  }

  body main .container #resultContainer #result .valCalculated div,
  body main .container #resultContainer #result .resultValues div {
    min-height: 12vh;
  }

  body main .container #resultContainer #result .graphics div {
    min-height: 50vh;
  }

  body main .container #calc article #calculator div input,
  body main .container #calc article #calculator div select {
    height: 6vh;
  }

  body main .container #calc article #calculator .btnCompute a #compute {
    height: 8vh;
  }

  body main .container #about p {
    font-size: 2.2rem;
  }

  body footer article .footerIcons img {
    height: 60px;
  }

  body footer article .copyright {
    font-size: 1rem;
  }
}
