@import url('https://fonts.googleapis.com/css2?family=Asap:wght@300&family=Bungee+Inline&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300&display=swap');

body {

  --btn-size: 100px;
  --accent-color: #cc0400;
  --btn-link-color: rgba(210,210,210,0.6);
  --btn-lang-color: rgba(80,80,80,0.6);

  margin: 0;
  width: 100vw;
  height: 100vh;
  font-size: 16px;
  font-family: 'Public Sans', sans-serif;
  line-height: 1.5;
  color: #fff;
}

/* ***** Background ***** */

canvas {
  position: absolute;
  width: 100vw;
  height: 100vh;
}

/* ***** Header ***** */

.page-header {
  position: relative;
  display: flex;
  height: 200px;
  width: 100vw;
  justify-content: center;
  align-items: center;
}

.page-header .logo {
  height: 100px;
}

/* ***** Body ***** */

.page-body {
  position: relative;
  display: flex;
  height: calc(100vh - 200px - 50px);
  width: 100vw;
  align-items: center;
  justify-content: center;
}

/* ***** Navigation ***** */

/* SVG icons: https://www.svgrepo.com/collection/solar-bold-icons/ */

.menu {
  position: relative;
  width: var(--btn-size);
  height: var(--btn-size);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: 1.25s;
  line-height: 100%;
}

.menu:after {
  content: '';
  width: var(--btn-size);
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('assets/menu-closed.svg');
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--accent-color);
  border-radius: inherit;
  transition: 1.25s;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

.open_menu:after {
  background-image: url('assets/menu-open.svg');
}

.nav-item {
  width: var(--btn-size);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--btn-link-color);
  position: absolute;
  transition: 0.75s;
  user-select: none;
  left: 0;
  top: 0;
  transform: scale(0.1);
  box-shadow: 0 5px 5px rgba(0,0,0,.25);
  text-decoration: none;
  font-family: sans-serif;
  color: white;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  visibility: hidden;
}

.menu.open_menu .nav-item {
  visibility: visible;
}

.nav-item img {
  width: 60px;
  height: 60px;
}

.nav-item.contact img {
  margin-bottom: 8px;
}

.nav-item.lang {
  color: var(--btn-link-color);
  font-size: calc(var(--btn-size)* .2);
  background: var(--btn-lang-color);
  line-height: calc(var(--btn-size)* .2);
  padding-top: 5px;
}

.open_menu .nav-item {
  transform: scale(1) rotate(360deg);
}

.open_menu .nav-item:hover {
  transform: scale(1.25) rotate(360deg);
}

.open_menu .nav-item:nth-child(1) {
  top: calc(var(--btn-size) * -.4);
  left: calc(var(--btn-size) * -1.2);
}

.open_menu .nav-item:nth-child(2) {
  top: calc(var(--btn-size) * -1.2);
  left: 0px;
}

.open_menu .nav-item:nth-child(3) {
  top: calc(var(--btn-size) * -.4);
  left: calc(var(--btn-size) * 1.2);
}

.open_menu .nav-item:nth-child(4) {
  top: calc(var(--btn-size) * 1);
  left: calc(var(--btn-size) * -.8);
}

.open_menu .nav-item:nth-child(5) {
  top: var(--btn-size);
  left: calc(var(--btn-size) * .8);
}

/* ***** Back / Home ***** */

button.back {
  position: fixed;
  top: 200px;
  right: calc(20% - 50px);
  background: var(--accent-color);
  color: white;
  font-size: 20px;
  font-weight: bold;
  border-radius: 100%;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  line-height: 40px;
  border: none;
  padding: 0;
  cursor: pointer;
}

button.back:after {
  content: '\00D7';
}


/* ***** Content ***** */

.page-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.page-content .row {
  display: flex;
}

.page-content .column {
  flex: 50%;
}

/* ***** Footer ***** */

.page-footer {
  height: 50px;
  width: 100vw;
  background: orange;
}

#reminder {
  background: #565656;
  color: #fff;
  position: relative;
  height: 100%;
  text-align: center;
  line-height: 50px;
  vertical-align: middle;
  /* Hide notice after 5 seconds */
  -moz-animation: hideAnimation 0s ease-in 5s forwards; /* Firefox */
  -webkit-animation: hideAnimation 0s ease-in 5s forwards; /* Safari and Chrome */
  -o-animation: hideAnimation 0s ease-in 5s forwards; /* Opera */
  animation: hideAnimation 0s ease-in 5s forwards; /* Standard */
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

@keyframes hideAnimation {
  to {
    width:0;
    height:0;
    overflow: hidden;
  }
}

@-webkit-keyframes hideAnimation {
  to {
    width:0;
    height:0;
    visibility: hidden;
  }
}

/* Sections */

section {
  display: none;
  overflow-y: auto;
  max-height: calc(100vh - 200px - 50px);
  margin-right: 20%;
  margin-left: 20%;
}

section h1 {
  font-family: 'Bungee Inline', cursive;
  font-size: 22px;
}

section p {
  margin-top: 0;
  margin-bottom: 25px;
}

section a {
  background-image: linear-gradient(
      to right,
      var(--accent-color),
      var(--accent-color) 50%,
      #ffffff 50%
  );
  background-size: 200% 100%;
  background-position: -100%;
  display: inline-block;
  position: relative;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease-in-out;
}

section a:before {
  content: '';
  background: var(--accent-color);
  display: block;
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  transition: all 0.3s ease-in-out;
}

section a:hover {
  background-position: 0;
  text-decoration: none;
}

section a:hover::before {
  width:100%;
}

/* ***** Services ***** */

#services {

}

#services .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#services .column {
  width: 48%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

#services .column-4 {
  width: 22%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

#services h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  font-weight: bold;
  font-size: 24px;
}

#services ul {
  padding-top: 10px;
  padding-left: 20px;
  margin: 0;
}

/* ***** About ***** */

#about {

}

#about .about-me {
  padding-right: 20px;
  padding-bottom: 20px;
  text-align: right;
}

#about .about-portrait {
  width: 300px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: 0;
}

#about .about-name {
  font-size: 22px;
  color: #cc0400;
  text-transform: uppercase;
  text-align: right;
  display: block;
}

#about .about-position {
  text-align: right;
  display: block;
  margin-bottom: 15px;
}

#about .about-link {
  font-size: 15px;
  margin-bottom: 5px;
}

/* ***** Contact ***** */

#location {
  overflow: hidden;
}

#location .location-address {
  border-bottom: 1px solid white;
  padding-bottom: 10px;
}

#location .location-contact {
  padding-top: 10px;
  text-align: right;
}

#location .location-link {
  font-size: 14px;
}

#location .location-map {
  position: relative;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 660px;
}

#location .location-map img.location-main {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 660px;
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  object-fit: cover;
}

#location .location-map img.location-hover {
  position: absolute;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 660px;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 4s;
}

#location .location-map:hover img.location-hover {
  opacity: 1;
}
