body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: white;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  outline: none;
  cursor: pointer;
}

.link-button {
  all: unset;
  cursor: pointer;
  text-decoration: none;
}

.container {
  margin: 2rem;
  border: 2px solid black;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 4rem);
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  font-size: 1.2rem;
  border-bottom: none;
  border-top: 3px solid black;
  border-left: 3px solid black;
  border-right: 3px solid black;
}

/* GRID LAYOUT */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  border: 2px solid black;
  flex: 1;
}

.wide{
  grid-column: span 2;  
}

.grid > div{
  border: 2px solid black;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
}

/* shared styles */
.text {
  font-family: Poppins, sans-serif;
  font-size: 6rem;
  text-align: center;
}

.blue {
  color: #0074d9;
  font-size: 2rem;
  text-align: center;
}

.icon {
  width: 10rem;
  animation: rotate 20s linear infinite;
  justify-self: center;
}

.row:hover .icon {
  animation-duration: 5s;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* SERVICES SECTION */
.services{
  height: 500vh;
  width: 100vw;
}

.start {
  display: flex;
  height: 15vh;
  width: 100vw;
  border-top: 6px solid black;
  border-bottom: 6px solid black;
  position: sticky;
  top: 0;
  background-color: white;
} 

.start1 {
  font-size: 3rem;
  width: 30vw;
  display: flex;
  justify-content: center;  
  align-items: center;
  border-right: 6px solid black;
}

.start2 {
  font-size: 1.5rem;
  width: 70vw;
  display: flex;
  justify-content: center;  
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

.menu{
  display: flex;
  height: 15vh;
  width: 98vw;
  align-items: center;
  justify-content: space-between;
  margin: 0 1vw 0 1vw;
  position: sticky;
  top: calc(15vh + 12px);
}

.mainmenu {
  width: 40vw;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 1.25rem;
  color: #0074d9
}

.menuicon {
  width: 60px;
  height: 60px;
}

.book{
  font-size: 1.2rem;
  color: white;
  background-color: black;
  height: 6vh;
  width: 12vw;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid black;
  margin-right: 1vw;
}

.book:hover {
  background-color:white;
  color: black;
}

.content {
  display: flex;
  height: 70vh;
  width: 100vw; 
  margin-bottom: 30vh;
}

.content:last-child {
  margin-bottom: 0;
}

.textdata {
  width: 50vw;
  height: 70vh;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 4vw
}

.textdata h1{
  color: #0074d9;
}

.imagedata {
  width: 50vw;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagedata img {
  width: 80%;
  height: auto;
}

.footer {
  position: relative; 
  height: 100vh;
  width: 100vw;
  background-color: black;
  overflow: hidden;
}

.footerback {
  position: absolute;
  top: -10vh;
  left: 0;
  width: 100%;
  height: 100%;
  color: #09090B;
  font-size: 14rem;
  line-height: 0vh;
  font-weight: 900;
  z-index: 0; 
  pointer-events: none;
}

.footerdata {
  position: relative;
  top: 2vh;
  z-index: 2; /* above the background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  font-size: 3rem;
  font-weight: 200;
}

.footerdata > img {
  width: 8vw;
  height: auto;
  margin: 2vh 0;
}

.call-button{
  height: 10vh;
  width: 20vw;
  color: #3F3F47;
  border: 2px solid #3F3F47;
  background-color: black;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.call-button:hover {
  background-color: black;
  color: white;
  border-color: white;
}

.footercredit {
  position: absolute;
  bottom: 1vh;
  right: 2vw;
  color: #595964;
  font-size: 1rem;
  z-index: 2;
  opacity: 0.9;
}

@media (max-width: 1024px) {
  html {
    font-size: 12px;
  }
  
  .start1{
     font-size: 2rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 8px;
  }

  .header{
    font-size: 3rem;
    padding: 2rem;
  }

  .icon{
    width: 15rem;
  }

  .book{
    width: 25vw;
    font-size: 2rem;
  }

  .mainmenu{
    opacity: 0;
  }

  .content {
    flex-direction: column;
    height: 90vh;
    margin-bottom: 5vh;
  }

  .textdata{
    width: 100vw;
    height: 40vh;
    padding: 0 2vw;
    font-size: medium;
  }

  .imagedata {
    width: 100vw;
    height: 50vh;
  }

  .call-button{
    height: 12vh;
    width: 40vw;
    font-size: 3rem;
  }

  .footerdata {
    font-size: 5rem;
  }

  .footerdata > img {
    width: 16vw;
    height: auto;
    margin: 0vh;
  }

  .footercredit {
    font-size: 2rem;
  }
}

@media (max-width: 380px) {
  html {
    font-size: 6px;
  }

  .book {
    width: 30vw;
    font-size: 2.2rem;
  }
}
