/* Google Font Link */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #e0ddca;
}

/* waves */
.ocean {
  height: 80px;
  /* change the height of the waves here */
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-x: hidden;
}

.wave {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%23003F7C'/%3E%3C/svg%3E");
  position: absolute;
  width: 200%;
  height: 100%;
  animation: wave 10s -3s linear infinite;
  transform: translate3d(0, 0, 0);
  opacity: 0.8;
}

.wave:nth-of-type(2) {
  bottom: 0;
  animation: wave 18s linear reverse infinite;
  opacity: 0.5;
}

.wave:nth-of-type(3) {
  bottom: 0;
  animation: wave 20s -1s linear infinite;
  opacity: 0.5;
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-25%);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Style of Plot Calculator */

hr {
  border: 0;
  height: 1px;
  background: #333;
  background-image: -webkit-linear-gradient(left, #ccc, #333, #ccc);
  background-image: -moz-linear-gradient(left, #ccc, #333, #ccc);
  background-image: -ms-linear-gradient(left, #ccc, #333, #ccc);
  background-image: -o-linear-gradient(left, #ccc, #333, #ccc);
}

/* loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(246, 248, 226, 0.91);
  /* Set the background color of the loader */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Make sure the loader stays on top of other elements */
}

#loader img {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
}

/* #loader::after {
  margin-top: 11ch;
  content: 'Please wait while loading...';
  padding: 0 15px;
  font-size: 20px;
} */

.loader-icon {
  background: #fff url(/images/loader_gif.gif) no-repeat center center;
  background-size: 30%;
  height: 100vh;
  width: 100%;
  position: fixed;
  z-index: 100;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* custom scroll bar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  min-width: 420px;
  padding: 35px 50px;
  border-radius: 15px;
  background: linear-gradient(145deg, #e6e1e1, #ffffff);
  -webkit-box-shadow: 10px 10px 32px -7px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 10px 10px 32px -7px rgba(0, 0, 0, 0.75);
  box-shadow: 10px 10px 32px -7px rgba(0, 0, 0, 0.75);
}

h1 {
  font-size: 30px;
  text-align: center;
  color: #1c093c;
}

p {
  position: relative;
  margin: auto;
  width: 100%;
  text-align: center;
  color: #606060;
  font-size: 14px;
  font-weight: 400;
}

/* all similar content styling codes */
section {
  padding: 100px 0;
}

.max-width {
  max-width: 1300px;
  padding: 0 80px;
  margin: auto;
}

/* navbar styling */
.navbar {
  position: fixed;
  width: 100%;
  z-index: 999;
  padding: 15px 0;
  font-family: 'Ubuntu', sans-serif;
  transition: all 0.3s ease;
  background: #9ccd62;
}

.navbar.sticky {
  padding: 15px 0;
  background: #9ccd62;
}

.navbar .max-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}

.navbar .logo a {
  color: #f6f8e2;
  font-size: 35px;
  font-weight: 600;
  text-decoration: none;
}

.navbar .logo a span {
  color: #3c3d42;
  transition: all 0.3s ease;
}

.navbar.sticky .logo a span {
  color: #3c3d42;
}

.navbar .menu li {
  list-style: none;
  display: inline-block;
}

.navbar .menu li a {
  display: block;
  color: #f6f8e2;
  font-size: 18px;
  font-weight: 500;
  margin-left: 25px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar .menu li a:hover {
  color: #3c3d42;
}

.navbar.sticky .menu li a:hover {
  color: #fff;
}

/* menu btn styling */
.menu-btn {
  color: #fff;
  font-size: 23px;
  cursor: pointer;
  display: none;
}

.navbar .media-icons a {
  color: crimson;
  font-size: 18px;
  margin: 0 6px;
}

nav.sticky .media-icons a {
  color: #FFF;
}

/* home section styling */
.home {
  display: flex;
  /* background: url("/images/calculate.svg") no-repeat center; */
  height: 100vh;
  color: #f6f8e2;
  min-height: 500px;
  background-size: cover;
  background-attachment: fixed;
  font-family: 'Ubuntu', sans-serif;
}

.home .max-width {
  width: 100%;
  display: flex;
}

.home .max-width .row {
  margin-right: 0;
}

form {
  width: 100%;
  position: relative;
  margin: 30px auto 0 auto;
}

.row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 20px 30px;
  margin-bottom: 20px;
}

label {
  color: #1c093c;
  font-size: 18px;
}

textarea,
input {
  width: 100%;
  font-weight: 400;
  padding: 8px 10px;
  border-radius: 5px;
  border: 1.2px solid #c4cae0;
  margin-top: 5px;
}

textarea {
  resize: none;
}

textarea:focus,
input:focus {
  outline: none;
  border-color: #6f6df4;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: all 0.4s;
  visibility: hidden;
  opacity: 0;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 100px auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 30%;
  position: relative;
  transition: all 5s ease-in-out;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
  position: absolute;
  top: 0;
  right: 15px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.popup .close:hover {
  color: #FF0000;
}

.popup .content {
  color: #000;
  max-height: 30%;
  font-size: 20px;
  overflow: auto;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.field a {
  text-decoration: none;
  position: relative;
  top: 1ch;
  border: unset;
}

.button {
  padding: 1ch 2ch;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  color: #000;
  background-color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease 0s;
  cursor: pointer;
  outline: none;
}

.button:hover {
  background-color: #23c483;
  box-shadow: 0px 15px 20px rgba(46, 229, 157, 0.4);
  color: #fff;
  transform: translateY(-7px);
}

.button:active {
  transform: translateY(-1px);
}

/* footer section styling */
footer {
  background: #111;
  padding: 15px 23px;
  color: #fff;
  text-align: center;
}

footer span a {
  color: #9ccd62;
  text-decoration: none;
}

footer span a:hover {
  text-decoration: underline;
}

@media (max-width: 1104px) {

  /* Style the dropdown menu */

  nav ul ul {
    display: none;
    position: absolute;
    top: 60px;
    padding: 10px;
    justify-content: space-around;
    align-items: center;
    /* the height of the main nav */
  }

  /* Display Dropdowns on Hover */
  nav ul li:hover>ul {
    display: flex;
    flex-wrap: wrap;
  }

  /* Fisrt Tier Dropdown */
  nav ul ul li {
    width: 160px;
    float: none;
    /* display: flex; */
    position: relative;
    background-color: #000000;
  }

  /* Second, Third and more Tiers	*/
  nav ul ul ul li {
    position: relative;
    top: -60px;
    left: 170px;
  }
}

@media (max-width: 991px) {
  .max-width {
    padding: 0 50px;
  }

  /* Style the dropdown menu */

  nav ul ul {
    display: none;
    position: absolute;
    top: 60px;
    padding: 10px;
    justify-content: space-around;
    align-items: center;
    /* the height of the main nav */
  }

  /* Display Dropdowns on Hover */
  nav ul li:hover>ul {
    display: flex;
    flex-wrap: wrap;
  }

  /* Fisrt Tier Dropdown */
  nav ul ul li {
    width: 160px;
    float: none;
    /* display: flex; */
    position: relative;
    background-color: #000000;
  }

  /* Second, Third and more Tiers	*/
  nav ul ul ul li {
    position: relative;
    top: -60px;
    left: 170px;
  }
}

@media (max-width: 947px) {
  .menu-btn {
    display: block;
    z-index: 999;
  }

  .menu-btn i.active:before {
    content: "\f00d";
  }

  .navbar .menu {
    position: fixed;
    height: 100vh;
    width: 100%;
    left: -100%;
    top: 0;
    background: #111;
    text-align: center;
    padding-top: 80px;
    transition: all 0.3s ease;
  }

  .navbar .menu.active {
    left: 0;
  }

  .navbar .menu li {
    display: block;
  }

  .navbar .menu li a {
    display: inline-block;
    margin: 20px 0;
    font-size: 25px;
  }

  .max-width {
    max-width: 930px;
  }

  /* Style the dropdown menu */

  nav ul ul {
    display: none;
    position: absolute;
    top: 14ch;
    left: 30ch;
    padding: 10px;
    font-size: 16px;
    justify-content: space-around;
    align-items: center;
    /* the height of the main nav */
  }

  /* Display Dropdowns on Hover */
  nav ul li:hover>ul {
    display: flex;
    flex-wrap: wrap;
  }

  /* Fisrt Tier Dropdown */
  nav ul ul li {
    width: 160px;
    float: none;
    /* display: flex; */
    position: relative;
    background-color: #000000;
  }

  /* Second, Third and more Tiers	*/
  nav ul ul ul li {
    position: relative;
    top: -60px;
    left: 170px;
  }
}

@media (max-width: 768px) {

  /* waves */
  .ocean {
    height: 80px;
    /* change the height of the waves here */
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-x: hidden;
  }

  .wave {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%23003F7C'/%3E%3C/svg%3E");
    position: absolute;
    width: 200%;
    height: 100%;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
  }

  .wave:nth-of-type(2) {
    bottom: 0;
    animation: wave 18s linear reverse infinite;
    opacity: 0.5;
  }

  .wave:nth-of-type(3) {
    bottom: 0;
    animation: wave 20s -1s linear infinite;
    opacity: 0.5;
  }

  @keyframes wave {
    0% {
      transform: translateX(0);
    }

    50% {
      transform: translateX(-25%);
    }

    100% {
      transform: translateX(-50%);
    }
  }

  label {
    display: flex;
    flex-direction: wrap;
    margin-left: -2ch;
    color: #1c093c;
    font-size: 14px;
  }

  .container {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: 0%;
    min-width: 300px;
    height: 0%;
    min-height: 550px;
    padding: 35px 50px;
    border-radius: 15px;
    background: linear-gradient(145deg, #e6e1e1, #ffffff);
  }

  form {
    min-width: 20px;
    position: relative;
    margin: 30px auto 0 auto;
  }

  .row {
    min-width: 320px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px 30px;
    margin-bottom: 20px;
  }

  input {
    width: 70%;
    margin-left: -3.2ch;
    font-weight: 400;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1.2px solid #c4cae0;
    margin-top: 5px;
  }

  .overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.4s;
    visibility: hidden;
    opacity: 0;
  }

  .overlay:target {
    visibility: visible;
    opacity: 1;
  }

  .popup {
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 90%;
    position: relative;
    transition: all 5s ease-in-out;
  }

  .popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
  }

  .popup .close {
    position: absolute;
    top: 0;
    right: 15px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
  }

  .popup .close:hover {
    color: #FF0000;
  }

  .popup .content {
    max-height: 30%;
    font-size: 18px;
    overflow: auto;
  }

  .button {
    margin-left: 5ch;
    padding: 1ch 2ch;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    color: #000;
    background-color: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
  }
}

@media (max-width: 320px) {

  /* waves */
  .ocean {
    height: 80px;
    /* change the height of the waves here */
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-x: hidden;
  }

  .wave {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%23003F7C'/%3E%3C/svg%3E");
    position: absolute;
    width: 200%;
    height: 100%;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
  }

  .wave:nth-of-type(2) {
    bottom: 0;
    animation: wave 18s linear reverse infinite;
    opacity: 0.5;
  }

  .wave:nth-of-type(3) {
    bottom: 0;
    animation: wave 20s -1s linear infinite;
    opacity: 0.5;
  }

  @keyframes wave {
    0% {
      transform: translateX(0);
    }

    50% {
      transform: translateX(-25%);
    }

    100% {
      transform: translateX(-50%);
    }
  }

  label {
    display: flex;
    flex-direction: wrap;
    margin-left: -2ch;
    color: #1c093c;
    font-size: 14px;
  }

  .container {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: 0%;
    min-width: 300px;
    height: 0%;
    min-height: 551px;
    padding: 35px 50px;
    border-radius: 15px;
    background: linear-gradient(145deg, #e6e1e1, #ffffff);
  }

  form {
    min-width: 20px;
    position: relative;
    margin: 30px auto 0 auto;
  }

  .row {
    /* width: 100%; */
    min-width: 320px;
    display: grid;
    /* flex-wrap: wrap; */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 0px 0px;
    margin-bottom: 20px;
  }

  input {
    width: 70%;
    margin-left: -4ch;
    /* min-width: 320px; */
    font-weight: 400;
    padding: 8px 8px;
    border-radius: 5px;
    border: 1.2px solid #c4cae0;
    margin-top: 5px;
  }

  .overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.4s;
    visibility: hidden;
    opacity: 0;
  }

  .overlay:target {
    visibility: visible;
    opacity: 1;
  }

  .popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 90%;
    position: relative;
    transition: all 5s ease-in-out;
  }

  .popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
  }

  .popup .close {
    position: absolute;
    top: 0;
    right: 15px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
  }

  .popup .close:hover {
    color: #FF0000;
  }

  .popup .content {
    max-height: 30%;
    font-size: 20px;
    overflow: auto;
  }

  .button {
    margin-left: 5ch;
    padding: 1ch 2ch;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    color: #000;
    background-color: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
  }
}