:root {
  --primary-color: #004B6E;
  --secondary-color: #0099C6;
  --tertiary-color: #C7D42E;
  --quaternary-color: #D9D9D9;
  --nav-font-size: 1.5rem;
  --footer-font-size: 3rem;
  --header-height: calc(var(--nav-font-size) + 3rem);
  --phone-height: 35rem;
  --tablet-height: 30rem;
  --footer-height: 10.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

/*Todo: Lightbox start*/

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
}

.lightbox:target {
  display: block;
}

.lightbox span {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.lighthouse1 {
  background-image: url("images/phone1.png");
}

.lighthouse2 {
  background-image: url("images/phone2.png");
}

.lighthouse3 {
  background-image: url("images/phone3.png");
}

.lighthouse4 {
  background-image: url("images/phone4.png");
}

.lighthouse5 {
  background-image: url("images/phone5.png");
}

.lighthouse6 {
  background-image: url("images/phone6.png");
}

.lighthouse7 {
  background-image: url("images/phone7.png");
}

.lighthouse8 {
  background-image: url("images/phone8.png");
}

/*Todo: Lightbox end*/

.canvas-container {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: calc(100vh - var(--header-height) - var(--footer-height));
}

canvas {
  background: white;
}

.main-images {
  display: flex;
  justify-content: space-evenly;
  height: calc(100vh - var(--header-height) - var(--footer-height));
  overflow: hidden;
}

#tablet-image {
  position: relative;
  height: var(--tablet-height);
  width: auto;
  margin-top: calc(100vh - var(--tablet-height) - 5rem);
}

#phone-image {
  position: relative;
  height: var(--phone-height);
  width: auto;
  margin-top: calc(100vh - var(--phone-height) - 5rem);
}

.headline {
  background-color: var(--primary-color);
  border-radius: 0 10px 10px 0;
  margin: 0;
  width: fit-content;
  padding: 0 2rem 0 4rem;
}

.functionality-headline {
  padding-top: calc(var(--header-height) + var(--footer-height) + 1rem);
  bottom: 0;
}

.safety-headline {
  border-radius: 0 10px 0 0;
  padding-top: calc(var(--header-height) + var(--footer-height) + 1rem);
  bottom: 0;
}

h1 {
  font-size: 3em;
  color: white;
  margin: 0;
}

h3 {
  margin: 0 2rem;

}

header {
  background-color: var(--primary-color);
  width: 100%;
  height: var(--header-height);
  position: fixed;
  top: 0;
  align-content: center;
  font-weight: bold;
  z-index: 1;
}

header ul {
  margin: 0 2rem;
  list-style: none;
  background-color: var(--primary-color);
  overflow: hidden;
  text-align: center;
  font-size: var(--nav-font-size);
  padding: 0;
}

.header-text {
  visibility: visible;
  display: inline;
}

.header-icon {
  visibility: hidden;
  display: none;
}

main {
  background-color: white;
  padding-top: var(--header-height);
}

#footer {
  background-color: var(--primary-color);
  overflow: hidden;
  text-align: center;
  align-content: center;
  font-size: var(--footer-font-size);
  position: sticky;
  top: var(--header-height);
  bottom: 0;
  font-weight: bold;
  z-index: 1;
  height: var(--footer-height);
}

#footer p {
  color: white;
}

#black-footer {
  padding-top: 3rem;
  background-color: black;
  color: white;
  text-align: center;

  a {
    color: white;
  }
}

li a {
  display: inline-block;
  text-align: center;
  padding: 14px;
  text-decoration: none;
  color: white;
}

li {
  float: left;
}

.rightli {
  float: right;
}

.functionality-wrapper-div {
  background-color: var(--tertiary-color);
}

.functionality-grid-container {
  display: grid;
  grid-template-columns: 12fr 1fr 1fr 4fr 6fr 4fr 1fr 1fr 12fr;
  grid-template-rows: auto auto auto auto auto auto auto auto;
  grid-template-areas:
    "left-mobile left-dot-left left-dot-right left-text mid-text right-text right-dot-left right-dot-right right-mobile";
  align-items: center;
  margin: 2rem 10rem 0 10rem;
  padding-bottom: 10rem;
}

.functionality-grid-text {
  text-align: center;
  align-content: center;
  margin: 1rem;
}

.functionality-grid-dot {
  text-align: center;
  align-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.functionality-grid-line {
  text-align: center;
  align-content: center;
  height: 50%;
  width: 50%;
  grid-column-start: left-dot-right;
  grid-column-end: span 5;
}

.right-to-left-bottom {
  margin: -2px;
  border-bottom: 4px solid var(--secondary-color);
  border-right: 4px solid var(--secondary-color);
  border-radius: 0 0 4rem 0;
  justify-self: end;
  align-self: end;
}

.right-to-left-top {
  margin: -2px;
  border-top: 4px solid var(--secondary-color);
  border-left: 4px solid var(--secondary-color);
  border-radius: 4rem 0 0 0;
  justify-self: start;
  align-self: start;
}

.left-to-right-bottom {
  margin: -2px;
  border-bottom: 4px solid var(--secondary-color);
  border-left: 4px solid var(--secondary-color);
  border-radius: 0 0 0 4rem;
  justify-self: start;
  align-self: end;
}

.left-to-right-top {
  margin: -2px;
  border-top: 4px solid var(--secondary-color);
  border-right: 4px solid var(--secondary-color);
  border-radius: 0 4rem 0 0;
  justify-self: end;
  align-self: start;
}

.row-1 {
  grid-row-start: 1;
  grid-row-end: span 1;
}

.row-2 {
  grid-row-start: 2;
  grid-row-end: span 1;
}

.row-3 {
  grid-row-start: 3;
  grid-row-end: span 1;
}

.row-4 {
  grid-row-start: 4;
  grid-row-end: span 1;
}

.row-5 {
  grid-row-start: 5;
  grid-row-end: span 1;
}

.row-6 {
  grid-row-start: 6;
  grid-row-end: span 1;
}

.row-7 {
  grid-row-start: 7;
  grid-row-end: span 1;
}

.row-8 {
  grid-row-start: 8;
  grid-row-end: span 1;
}

.row-1-mobile {
  grid-column-start: right-mobile;
  grid-column-end: span 1;
  margin: -5rem auto;
  padding: 0 1rem;
}

.row-1-mobile img {
  height: 35rem;
  width: auto;
}

.row-1-text {
  grid-column-start: 2;
  grid-column-end: span 4;
  background-color: white;
  padding: 0.5rem;
  border-radius: 3rem;
}

.row-1-dot {
  grid-column-start: right-dot-left;
  grid-column-end: span 2;
}

.row-2-mobile {
  grid-column-start: left-mobile;
  grid-column-end: span 1;
  margin: -5rem auto;
  padding: 0 1rem;
}

.row-2-mobile img {
  height: 35rem;
  width: auto;
}

.row-2-text {
  grid-column-start: 5;
  grid-column-end: span 4;
  background-color: white;
  padding: 0.5rem;
  border-radius: 3rem;
}

.row-2-dot {
  grid-column-start: left-dot-left;
  grid-column-end: span 2;
}


.dot {
  height: 60px;
  width: 60px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: inline-block;
}

.text-field {
  padding: 1rem;
}

.card-wrapper {
  display: flex;
  justify-content: center;
  margin: 5rem 0;
}

.card {
  display: inline-block;
  width: 150px;
  height: 150px;
  perspective: 1000px;
}

.card-body {
  display: flex;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s;
  transform-origin: center center;
  text-align: center;
  width: 100%;
  height: 100%;
}

.card:hover .card-body,
.card:focus .card-body {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  height: 100%;
  width: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front {
  background-size: cover;
  background-position: center;
  background-color: var(--primary-color);
  border-radius: 50%;

  i {
    color: var(--tertiary-color);
    font-size: 5rem;
  }
}

.card-back {
  transform: rotateY(180deg);
  padding: 10px;
  box-sizing: border-box;
  background-color: var(--tertiary-color);
  border-radius: 50%;

  i {
    color: var(--primary-color);
    font-size: 5rem;
    transform: rotateY(180deg);
  }
}

.card:focus {
  outline: none;
}

.safety-wrapper-div {
  background-color: var(--secondary-color);
}

.safety-grid-container {
  display: grid;
  grid-template-columns: [left] auto [right] auto;
  grid-template-rows: [first] auto [second] auto;
  grid-template-areas:
    "left right";
  align-items: center;
  margin-top: 5rem;
  padding: 0 20rem;
}

.safety-grid-item {
  text-align: center;
  align-content: center;
  margin: -3rem;
}

.safety-grid-item-last {
  text-align: center;
  align-content: center;
  margin-top: -3rem;
}

.safety-grid-left-first-row,
.safety-grid-right-second-row {
  background-color: var(--quaternary-color);
  border-radius: 1rem;
  padding: 0.5rem;
  margin: 0 2rem;
}

.security-h3 {
  width: max-content;
  background-color: var(--tertiary-color);
  border-radius: 0 1rem 1rem 0;
}

@media (max-width: 1400px) {
  .functionality-grid-container {
    grid-template-columns: 1fr;
    grid-template-areas:
            "left-mobile"
            "left-text"
            "mid-text"
            "right-text"
            "right-mobile";
    margin: 0 1rem;
    padding-bottom: 3rem;
  }

  .functionality-grid-line,
  .functionality-grid-dot {
    display: none;
    visibility: hidden;
  }

  .row-1-text {
    grid-column-start: 1;
  }

  .row-2-text {
    grid-column-start: 2;
  }

  .row-1-mobile {
    grid-column-start: 5;
  }

  .row-2-mobile {
    grid-column-start: 1;
  }

  .row-1-mobile img,
  .row-2-mobile img {
    width: 20vw;
    height: auto;
    margin: auto;
  }

  .functionality-grid-text {
    margin: 1rem 0;
  }

  .safety-grid-container {
    padding: 1rem 3rem;
  }
}

@media (max-width: 1070px) {
  .main-images {
    display: block;
    text-align: center;
  }

  #tablet-image {
    width: 45%;
    height: auto;
    margin-bottom: auto;
  }

  #phone-image {
    width: 25%;
    height: auto;
    margin-bottom: auto;
  }

  #footer p {
    margin: auto 3rem;
  }

  .text-field {
    padding: 0;
  }

  .security-h3 {
    width: 75%;
  }
}

@media (max-width: 700px) {

  .header-text {
    display: none;
    visibility: hidden;
  }

  .header-icon {
    display: inline;
    visibility: visible;

    .fa-solid {
      font-size: 2rem;
      color: white;
    }
  }

  ul {
    display: flex;
    justify-content: space-evenly;
  }

  .main-images {
    display: block;
    text-align: center;
  }

  #footer {
    font-size: 2rem;
  }

  .safety-grid-container {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding-bottom: 4rem;
  }

  .invis {
    visibility: hidden;
    display: none;
  }

  .safety-grid-item, .safety-grid-item-last {
    flex: 1;
    text-align: center;
    margin: 0;
  }

  h1 {
    font-size: 6vw;
  }

  h3 {
    font-size: 3vw;
  }


  .card-front, .card-back {
    i {
      font-size: 2.5rem;
    }
  }


  .icon {
    margin: 0;
  }

  .card-wrapper {
    margin-bottom: -1rem;
    margin-top: 3rem;
  }

  .card {
    width: 5rem;
    height: 5rem;
  }


  .safety-icon-1 {
    order: 1;
  }

  .safety-text-1 {
    order: 2;
  }

  .safety-icon-2 {
    order: 3;
  }

  .safety-text-2 {
    order: 4;
  }

  .safety-icon-3 {
    order: 5;
  }

  .safety-text-3 {
    order: 6;
  }

  .safety-icon-4 {
    order: 7;
  }

  .safety-text-4 {
    order: 8;
  }

  .safety-icon-5 {
    order: 9;
  }

  .safety-text-5 {
    order: 10;
  }

  .safety-icon-6 {
    order: 11;
  }

  .safety-text-6 {
    order: 12;
  }

}

@media (max-width: 480px) {
  #tablet-image {
    display: none;
    visibility: hidden;
  }

  #phone-image {
    width: 75%;
    height: auto;
  }
}