:root {
  --header-height: 50px;
  --footer-height: 120px;

  --border-color: rgb(196, 196, 196);
  --background-color: rgb(240, 240, 240);
  --text-color: rgb(32, 32, 32);
  --text-hover-color: black;
  --button-color: rgb(72, 72, 72);
}

.media-only {
  display: none;
}

* {
  font-family: Montserrat;
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
}

.container {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
}

header {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: fixed;
  top: 0px;
  height: var(--header-height);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  z-index: 100;
  background-color: inherit;
  box-shadow: 0 3px 2px -2px var(--border-color);
}

header .container {
  display: flex;
  justify-content: space-between;
}

header .container img {
  height: var(--header-height);
}

header .container ul {
  list-style: none;
  line-height: var(--header-height);
  display: flex;
  flex-flow: row;
  gap: 30px;
}

header .container a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

header .nav_discord:hover{
  color: #7289DA;
}

header .nav_github:hover{
  color: #505050;
}

header .nav_patreon:hover{
  color: #FF424D;
}

header .nav_wiki:hover{
  color: #c39700;
}

footer {
  height: var(--footer-height);
  width: 100%;
  bottom: 0px;
  position: relative;
  border-top: 1px solid var(--border-color);
}

footer .container {
  display: flex;
  margin-top: 20px;
  font-size: 0.8rem;
}

main {
  position: relative;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  top: var(--header-height);
  margin-bottom: var(--header-height);
}

main .container {
  padding: 50px 0;
}

.text-center {
  text-align: center;
}

.align-center{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.locked {
  background-color: gray !important;
}

.locked > span, .locked > div {
  opacity: 40%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.locked > i {
  top: calc(50% - 2.5vh);
  position: absolute;
  right: calc(50% - 2.5vh);
  font-size: 5vh;
  z-index: 5;
}

.spacer {
  height: 50px;
}

.resources-container {
  display: flex;
  flex-flow: column;
  gap: 30px;
  padding: 50px 0;
}

.resources-row {
  display: flex;
  justify-content: center;
  gap: 70px;
}

.resource {
  display: inline-block;
  position: relative;
  width: 25vw;
  height: 130px;
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-top: 3px solid;
}

.resource .icon {
  width: 64px;
  height: 64px;
}

.resource .title {
  position: absolute;
  font-weight: bolder;
}

.resource .desc {
  position: absolute;
  margin-top: calc(1rem + 3px);
  font-size: 0.8em;
  max-width: calc(25vw - 100px);
  text-align: justify;
  text-justify: inter-character;
}

.resource .rating {
  position: absolute;
  bottom: 10px;
  left: 20px;
  font-size: 0.8em;
}

.resource .rating > i + i {
  margin-left: 1px;
}

.resource .read-more {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 0.8em;
  text-decoration: none;
  color: inherit;
}

@media only screen and (max-width: 1000px) {

  :root {
    --header-height: 144px;
    font-size: 32px;
  }

  .desktop-only {
    display: none;
  }

  .media-only {
    display: inherit;
  }

  .container {
    width: 95vw;
  }

  header .container .media-only i {
    line-height: var(--header-height);
    font-size: 2rem;
  }

  header .container .media-only .media-dropdown-menu {
    background-color: var(--background-color);
    position: absolute;
    top: var(--header-height);
    width: 100vw;
    height: calc(100vh - var(--header-height));
    left: -2.5vw;
    overflow: hidden;
    transition: all .3s ease-in-out;
    transform-origin: left top;
    transform: scaleY(0);
    padding: 2.5vw;
    font-size: 1.8rem;
  }

  header .container .media-only .media-dropdown-menu ul {
    list-style: none;
    display: block;
  }

  footer .container {
    justify-content: center;
    font-size: 1rem;
    margin: 0;
    line-height: var(--footer-height);
  }

  .resources-container {
    align-items: center;
    gap: 50px;
  }

  .resources-row {
    flex-flow: column;
    gap: 50px;
  }

  .resource {
    display: block;
    width: 90vw;
    height: 300px;
  }

  .resource .icon {
    height: 128px;
    width: 128px;
  }

  .resource .desc {
    max-width: calc(90vw - 180px);
  }

  .resource-container {
    width: 100%;
    padding: 10px;
  }

}
