@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: 'Nunito', sans-serif;
}

body {
  margin: 0;
  padding: 0;
}

main {
  display: grid;
  place-content: center;
  justify-items: center;
  width: 100svw;
  height: 100svh;
}

h1 {
  margin-left: 0.5ch;
  margin-bottom: 0;
  letter-spacing: 0.5ch;
  color: #1c658c;
}

h2 {
  color: hsl(0deg 0% 20%);
}

@media (orientation: portrait) {
  h1 {
    font-size: calc(80svw * 0.075);
  }
}

@media (orientation: landscape) {
  h1 {
    font-size: calc(80svh * 0.075);
  }
}

a {
  font-size: large;
  color: #1c658c;
  text-decoration: none;
}

.window {
  display: grid;
  grid-template-areas:
    "about       services"
    "commitment  contact";
  --rows: 47.5% 47.5%;
  --columns: 47.5% 47.5%;
  grid-template-rows: var(--rows);
  grid-template-columns: var(--columns);
  gap: 5%;
  @media (orientation: portrait) {
    width: 80svw;
    height: 80svw;
  }
  @media (orientation: landscape) {
    width: 80svh;
    height: 80svh;
  }

  transition: all 400ms;
}

.open {
  @media (orientation: portrait) {
    width: 90svw;
    height: 85svh;
  }
}

.pane {
  position: relative;

  transition: opacity 200ms;
}

.about {
  grid-area: about;
  background-color: #1c658c;
}

.about:hover {
  opacity: 0.9;
}

.services {
  grid-area: services;
  background-color: #398ab9;
}

.services:hover {
  opacity: 0.9;
}

.commitment {
  grid-area: commitment;
  background-color: #398ab9;
}

.commitment:hover {
  opacity: 0.9;
}

.contact {
  grid-area: contact;
  background-color: #1c658c;
}

.contact:hover {
  opacity: 0.9;
}

.title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: white;

  transition: opacity 200ms;
}

.heading {
  text-align: center;
  cursor: pointer;
}

.heading:hover {
  opacity: 0.9;
}

.page {
  width: 100%;
  height: 100%;
  padding: 1rem;
  color: white;
  overflow: scroll;
  opacity: 1;

  transition: opacity 200ms;
}

.hide {
  opacity: 0;
}

.erase {
  width: 0%;
  height: 0%;
  overflow: hidden;
}

.about-pic {
  background: no-repeat center/cover url('assets/about.webp');
}

.commitment-pic {
  background: no-repeat top/cover url('assets/commitment.webp');
}

.contact-pic {
  background: no-repeat bottom/cover url('assets/contact.webp');
}

.services-pic {
  background: no-repeat center/cover url('assets/services.webp');
}

.section-heading {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-content {
  margin-top: 1rem;
  padding: 1rem;
  color: hsl(0deg 0% 20%);
}

.glassbox {
  border: 1px solid hsl(0deg 0% 100% / 0.4);
  background-color: hsl(0deg 0% 100% / 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(10px);
}
