/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);
  --result-color: hsl(220, 42.4%, 52.4%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --h1-font-size: 2rem;
  --normal-font-size: 1rem;
  --small-font-size: .813rem;
  --result-font-size: 3em;
  --description-font-size: 1.5em
}

/*=============== BASE ===============*/

header {
  grid-area: header;
  background-color: #fff;
  padding: 20px;
}
article {
  grid-area: content;
  background-color: #b6b5d4;
  padding: 20px;
}
aside {
  grid-area: sidebar;
  background-color: #b6b5d4;
  padding: 20px;
}
footer {
  padding: 20px;
  grid-area: footer;
  background-color: #fff;
}
.wrapper {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: 1fr 3fr;
  grid-template-areas:
    "header  header"
    "sidebar content"
    "footer  footer";
}

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

body {
  background-color: #e9e3ea;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

a {
  text-decoration: none;
}


/*===== GRID ======*/
.container {
  margin: 0.5em 5em;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 50px repeat(3, 1fr);
  grid-template-rows: 3rem 20px 100px 100px;
  gap: 1rem;
}

.heading {
  grid-column-start: 1;
  grid-column-end: 8;
  grid-row-start: 2;
  grid-row-end: 1;
  justify-self: center;
}
.img-a {
  grid-area: 3 / 1 / span 2 / span 1;
}
.img-b {
  grid-area: 3 / 2 / span 1 / span 1;
}
.img-c {
  grid-area: 4 / 2 / span 1 / span 1;
}
.textblock {
  grid-area: -3 / -4 / span 2 / span 2;
  align-self: center;
}
/*=============== CALCULATOR ===============*/
.calc {
  position: relative;
  height: 55vh;
  display: grid;
  width: 50%; 
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
}

.calc-grid-child-element { 
    margin: 10px; 
}

.calc__bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.calc__form {
  position: relative;
  margin-inline: 1.5rem;
  background-color: hsla(0, 0%, 100%, .01);
  border: 2px solid hsla(0, 0%, 100%, .7);
  padding: 2.5rem 1rem;
  color: var(--white-color);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
}

.calc__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 1.25rem;
}

.calc__inputs, 
.calc__box {
  display: grid;
}

.calc__inputs {
  row-gap: 1.25rem;
  margin-bottom: 1rem;
}

.calc__box {
  grid-template-columns: 1fr max-content;
  column-gap: .75rem;
  align-items: center;
  border: 2px solid hsla(0, 0%, 100%, .7);
  padding-inline: 1.25rem;
  border-radius: 4rem;
}

.calc__input, 
.calc__button {
  border: none;
  outline: none;
}

.calc__input {
  width: 100%;
  background: none;
  color: var(--black-color);
  padding-block: 1rem;
}

.calc__input::placeholder {
  color: var(--white-color);
}

.calc__box i {
  font-size: 1.25rem;
}

.calc__check, 
.calc__check-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc__check {
  margin-bottom: 1rem;
  font-size: var(--small-font-size);
}

.calc__check-box {
  column-gap: .5rem;
}

.calc__check-input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--white-color);
}

.calc__button {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: var(--white-color);
  border-radius: 4rem;
  color: var(--black-color);
  font-weight: 500;
  cursor: pointer;
}

.result__form {
  display: grid;
  position: relative;
  margin-inline: 1.5rem;
 /* background-color: hsla(0, 0%, 100%, .01);*/
  padding: 8.5rem 1rem;
  color: var(--result-color);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
}

.result__box {
  font-size: var(--result-font-size);
  text-align: center;
  border: 2px solid hsla(0, 0%, 100%, .7);
  grid-template-columns: 1fr max-content;
  column-gap: .75rem;
  padding-inline: 1.25rem;
  border-radius: 4rem;
}

.calc__register a {
  color: var(--white-color);
  font-weight: 500;
}

.calc__register a:hover {
  text-decoration: underline;
}

.calc__description p {
  text-align: justify;
  text-justify: inter-word;
  color: var(--black-color);;
  margin: 6px 0;
  font-size: var(--description-font-size);
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 576px) {
  .login {
    justify-content: center;
  }
  .calc__form {
    width: 320px;
    padding-inline: 2.5rem;
  }
  .calc__title {
    margin-bottom: 2rem;
  }
}

/*====== GALLERY LOGO ======*/
div.gallery {
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 50%;
  height: auto;
}

div.desc {
  padding: 15px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

.responsive {
  padding: 0 6px;
  float: left;
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
