@font-face {
  font-family: "Gotham SSm";
  font-style: normal;
  font-weight: 100 300;
  src: local(""), url("../fonts/GothamSSm-Light.otf") format("woff2");
}

@font-face {
  font-family: "Gotham SSm";
  font-style: normal;
  font-weight: 400 600;
  src: local(""), url("../fonts/GothamSSm-Medium.otf") format("woff2");
}

@font-face {
  font-family: "Gotham SSm";
  font-style: normal;
  font-weight: 700 900;
  src: local(""), url("../fonts/GothamSSm-Bold.otf") format("woff2");
}

:root {
  --green: #007e32;
}

html {
  background-color: var(--green);
  min-height: 100vh;
  width: 100vw;
  min-width: fit-content;
  color: #fff;
  font-family: "Gotham SSm";
  font-weight: 400;
  line-height: 1.5;
}

body {
  margin: 0;
  background-image: url("../images/mehi-tausta.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  min-height: 100vh;
  width: 100vw;
  min-width: fit-content;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 45px;
}

p {
  font-size: 1.2rem;
  line-height: 32px;
  font-weight: 100;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  max-height: 104px;
  min-height: 104px;
}

.lang-menu {
  position: absolute;
  width: 72px;
  border: 1px solid #fff;
  border-radius: 5px;
  padding: 8px;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 1.2rem;
  margin: 20px;
  letter-spacing: 0.2px;
  line-height: 1;
}
.lang-menu > ul {
  padding-inline-start: 10px;
  padding-inline-end: 10px;
  margin-block-start: 0;
  margin-block-end: 0;
  position: absolute;
  top: 10px;
  right: 0;
}

.lang-menu form {
  margin: 0;
}
.lang-menu img {
  height: 24px;
  margin: 5px 0 5px 5px;
}

.lang-menu img:hover {
  cursor: pointer;
}

.lang {
  list-style: none;
}

.lang button {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

.lang {
  visibility: hidden;
  height: 0;
}

.lang.show {
  visibility: visible;
  height: inherit;
  margin: 5px 0;
}

.lang-menu ul.show {
  background-color: #efefef;
  color: var(--green);
}

.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  flex-direction: row;
  gap: 4rem;
  text-align: left;
  min-height: 90vh;
}

.logo {
  background-image: url("../images/mehi-logo.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  width: 500px;
  min-height: 30vh;
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

.status {
  width: 500px;
  min-height: 30vh;
  padding: 16px;
}
.status > h1 {
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

.button {
  height: 56px;
  width: fit-content;
  position: relative;
  font-size: 1rem;
  color: var(--green);
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  text-transform: uppercase;
  padding: 12px 16px 12px 16px;
  margin-block-start: 1em;
  margin-block-end: 1em;
}

.button > a {
  color: inherit;
  text-decoration: none;
}

.button:hover {
  cursor: pointer;
}

/* Taken from Bootstrap 5.0 standard breakpoints
  small >= 576px
  medium >= 768px
  large >= 992px
*/
@media only screen and (max-width: 992px) {
  .content {
    text-align: center;
  }

  .logo {
    margin: 0 auto;
  }
}

@media only screen and (max-width: 576px) {
  body {
    padding-bottom: 100%;
  }
  .content {
    margin: 0;
  }
  header {
    flex-direction: row-reverse;
  }
}

/* For mobiles in horizontal view */
@media only screen and (max-height: 414px) {
  body {
    padding-bottom: 20%;
  }
  .content {
    flex-wrap: nowrap;
    gap: 1rem;
  }
  .logo,
  .status {
    width: 40%;
  }
  .status h1 {
    font-size: 1.5rem;
  }
}
