@import url('../fonts/Montserrat/Montserrat.css');

body {
  margin: 0px;
  padding: 0px;
}

.main-header {
  background: url(../images/header.jpg);
  height: 50vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 7.4em;
}

footer {
  margin-top: 10em;
  height: 25em;
  background-color: #282C34;
  color: white;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

footer div {
  margin: 0.2em;
}

footer a {
  color: white;
}

html {
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

nav {
  width: 100%;
  position: fixed;
  top: 0;
}

nav ul {
  list-style: none;
}

nav li {
  padding: 0 1em;
  display: inline;
}

.menu {
  display: flex;
  justify-content: center;
  background: white;
  padding-top: 2em;
  padding-bottom: 2em;
  width: 100%;
  height: 100%;
}

article ul {
  line-height: 2em;
}

article {
  padding-top: 7.4em;
  margin: 0em 20%;
}

main {
  margin-left: 20%;
  margin-right: 20%;
}

.video {
  margin: 0 20%;
}

.gallery {
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.gallery div {
  margin: 1%;
  width: 48%;
}

.gallery img {
  width: 100%;
}

.version {
  white-space: nowrap;
}

.hikarilogo {
  height: 3em;
  width: 3em;
}

.freebsdlogo {
  width: 7rem;
  margin: 0.5em;
}

.waylandlogo {
  width: 7rem;
  margin: 0.5em;
}

.matrixlogo {
  width: 8rem;
}

.darcslogo {
  width: 10rem;
}

.side-by-side {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

a {
  color: #F378A7;
  text-decoration: none;
}

.download a {
  color: white;
  font-weight: 500;
  text-decoration: none;
}

a:focus {
  outline: 0;
  text-decoration: underline;
}

h2 {
  font-weight: normal;
}

.community-link {
  margin-bottom: 1em;
}

.logos {
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 2em;
  margin-right: 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.download {
  display: flex;
  justify-content: center;
}

.header-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-left: 25%;
  margin-right: 25%;
  height: 100%;
}

.download-button {
  width: 15em;
  text-align: center;
  border-radius: 10px;
  background-color: #78a7f3;
  padding: 1em 1em;
  margin-top: 1em;
  margin-bottom: 1em;
}

.download-buttons {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.clone-command {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: white;
  font-family: monospace;
  background-color: #282C34;
  margin: 2em;
  font-size: 0.9rem;
  padding: 1em;
  border-radius: 10px;
}

.overlay-container {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overlay {
  font-weight: bold;
  font-size: 7em;
  background-color: rgba(255,255,255,0.7);
  padding: 0.2em 0.5em 0.2em 0.2em;
  width: 5em;
}

.overlay-subtitle {
  font-size: 2.5em;
  background-color: rgba(255,255,255,0.7);
  padding: 0.2em 0.5em 0.2em 0.2em;
  margin-left: 3em;
  width: 13em;
}

.screencast-link {
  margin-top: 1em;
}

.screencast-img {
  width: 100%;
  margin-top: 2em;
}

.clone-this {
  margin-top: 3em;
}

.license {
  text-align: center;
  margin: auto;
  width: 20em;
  font-size: 0.6em;
}

@media only screen and (max-width: 2000px) {
  .header-container {
    margin-left: 15%;
    margin-right: 15%;
  }

  article {
    margin: 0 5em 0 5em;
  }
}

@media only screen and (max-width: 1400px) {
  .header-container {
    flex-direction: column;
  }

  .overlay-container {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
  }

  .overlay {
    font-size: 4.5em;
  }

  .overlay-subtitle {
    font-size: 1.6em;
  }

  article {
    margin: 0 5em;
  }

  .video {
    margin: 0 5em;
  }

  .download-buttons {
    width: 100%;
  }
}

@media only screen and (max-width: 1200px) {
  .logos {
    display: none;
  }
}

@media only screen and (max-width: 800px) {
  .overlay-container {
    display: none;
  }
}

@media only screen and (max-height: 780px) {
  .overlay-container {
    display: none;
  }
}
