html,
body {
  background: var(--bg-col);
  color: var(--text-col);
  padding: 0;
  margin: 0;
  font-family: "Roboto", sans-serif;
  min-width: 100vw;
}

main {
  margin: auto;
  display: flex;
  flex-direction: column;
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  max-width: 900px;
  max-height: 1100px;
}

main > * {
  flex: 1;
}

main > .offer {
  position: relative;
  flex: 1;
  max-height: 80px;
  min-height: 2.5rem;
  background: var(--panel-col);
  border: 1px solid var(--panel-outline);
  display: flex;
  box-sizing: border-box;
  align-items: center;
  background: rgb(0, 0, 0);
  background: linear-gradient(
      90deg,
      transparent 20%,
      rgba(0, 0, 0, 0.8) 40%,
      rgba(0, 0, 0, 0.8) 60%,
      transparent 80%
    ),
    url("/img/test1.png");

  background-size: cover;
  text-decoration: none;
}

.offer h1 {
  margin: auto;
  border-radius: 10px;
}

.offer h1 strong {
  font-weight: 1000;
  color: var(--accent-col);
  padding-left: 10px;
  padding-right: 10px;
}
main > .offer a {
  margin-left: auto;
  background: var(--accent-col);
  border: 1px solid var(--panel-outline);
  padding: 5px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
}

main > .continue {
  flex: 6;
  color: white;
}

main > .section {
  flex: 3;
  min-height: 100px;
  overflow: hidden;
}

main > .section .start-here {
  display: block;
  text-transform: uppercase;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
  background: var(--bg-col);
  border-right: 2px solid var(--panel-col);
  border-bottom: 2px solid var(--panel-col);
  border-radius: 0 0 1rem 0;
  padding: 0.5rem 1rem;
}

main > .section > div {
  margin: 1rem;
}
main > .section > div > h1,
main > .section > div > h3 {
  margin: 0;
}
main > .section > div > h3 {
  text-transform: uppercase;
  color: var(--secondary-text-col);
  font-size: 1rem;
  letter-spacing: 2px;
}

main > .bottom-buttons {
  flex: 3;
}

.continue,
.section,
.bottom-buttons > a {
  position: relative;
  outline: var(--panel-outline) 1px solid;
  background: var(--bg-col);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/*Hide text in button if space is small*/
@media (max-height: 600px) or (max-width: 350px) {
  .bottom-buttons > a > h1 {
    display: none;
  }

  .bottom-buttons > a > i {
    font-size: 1.5rem;
  }
}

.comming-soon-cover {
  position: relative;
  overflow: hidden;
  opacity: 0.7;
  pointer-events: none;
}

.locked {
  position: relative;
  overflow: hidden;
  opacity: 0.7;
}

.locked:hover {
  opacity: 1;
}

.comming-soon-cover::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

.comming-soon-cover::after,
.locked::after {
  content: "COMING SOON";
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  width: fit-content;
  background: var(--panel-col);
  padding: 0.5rem 1rem;
  color: var(--secondary-text-col);
  border-radius: 0 0 0 1rem;
  border-left: solid 1px var(--panel-outline);
  border-bottom: solid 1px var(--panel-outline);
}

.comming-soon-cover::after {
  content: "COMING SOON";
}

.start-here-highlight {
  box-shadow: 0 0 15px #fff9;
  transform: scale(1.05);
  animation: sizepulse 3s infinite;
}

@keyframes sizepulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

.locked::after {
  content: "PLUS ONLY";
}
.locked.comming-soon-cover::after {
  content: "COMING SOON - UPGRADED";
}

.continue {
  background: rgb(0, 0, 0);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 50%),
    url("/img/continue.jpg");
  background-size: cover;
  display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: space-between;
}

.continue > span {
  margin: 1rem;
}
.continue > span > * {
  margin: 0;
}

.active-alt {
  display: flex;
  border: 1px solid var(--panel-outline);
  background: var(--bg-col);
  justify-content: center;
  align-items: center;
  text-decoration: none;
  width: 80px;
  height: 80px;
  font-size: 2rem;
  border-radius: 0.8rem;
  margin: 1rem;
  opacity: 0.7;
}
.active-alt:hover {
  border: 1px solid var(--text-col);
  opacity: 1;
  background: var(--panel-outline);
}

h1 {
  color: inherit;
  font-size: 1.2rem;
  margin: 0;
  text-transform: uppercase;
}

.section {
  display: flex;
  height: var(--elem-height);
  align-items: center;
}

.section > img {
  margin: 1rem;
  height: 65%;
}

.section > h1 {
  text-transform: uppercase;
  font-size: 1.2rem;
  color: inherit;
  margin: 0;
}

.bottom-buttons {
  display: flex;
  width: 100%;
}

.bottom-buttons > a {
  flex: 1;
  display: flex;
  text-decoration: none;
  color: inherit;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bottom-buttons > a > h1 {
  margin-top: 1rem;
}

.bottom-buttons i {
  font-size: 3vh;
}

.settings-icon {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.locked,
.comming-soon-cover {
  overflow: hidden;
  background: var(--panel-col);
}

.locked > img {
  filter: grayscale(100%);
}

@media (max-height: 900px) or (max-width: 600px) {
  .continue:hover:after,
  .section:hover:after,
  .bottom-buttons > a:hover:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--text-col);
    opacity: 0.05;
  }
}

/* If screen is wider than 900px or higher than 1100px */
@media (min-height: 900px) and (min-width: 600px) {
  body {
    display: flex;
  }

  main > *,
  .bottom-buttons > a {
    border-radius: 1rem;
    margin: 0.5rem;
  }

  .bottom-buttons {
    margin: 0;
  }

  .offer:hover:after,
  .continue:hover:after,
  .section:hover:not(.locked):after,
  .bottom-buttons > a:hover:after {
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    left: -6px;
    top: -6px;
    border: 2px var(--text-col) solid;
    opacity: 0.7;
    border-radius: 1.35rem;
    pointer-events: none;
  }
}

#previeworbuyoverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  z-index: 10000;
  align-items: center;
  background: #0009;
}
#previeworbuyoverlay.opened {
  display: flex;
}

#previeworbuyoverlay > div {
  background: var(--panel-col);
  border: var(--panel-outline) 1px solid;
  padding: 10px;
  border-radius: 10px;
  position: relative;
  max-width: 400px;
}
#close-buypreview-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  background: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}
#close-buypreview-btn:hover {
  background: var(--overlay-strong-col);
}

#close-buypreview-btn::before,
#close-buypreview-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--text-col);
  transform: translate(-50%, 0) rotate(45deg);
}
#previeworbuyoverlay h2 {
  text-align: center;
  margin-bottom: 0;
}

#previeworbuyoverlay p {
  text-align: center;
  color: var(--faded-text-col);
  margin: 0;
}

#previeworbuyoverlay a {
  background: var(--panel-col);
  border: var(--panel-outline) 1px solid;
  padding: 5px;
  border-radius: 5px;
  text-decoration: none;
}
#previeworbuyoverlay > div > div {
  display: flex;
  justify-content: space-between;
}

#prev-or-buy-header {
  color: var(--secondary-text-col);
}

#previeworbuyoverlay a:hover {
  background: var(--text-col);
  color: var(--panel-col);
}

#close-buypreview-btn::after {
  transform: translate(-50%, 0) rotate(-45deg);
}
