/* reddishpink colour: fa0060 */

:root {
  --raspberry: #fa0060;
  --spring: #00fa9a;
  --charter: #ddfa00;
}

/* main */

body {
  background-color: black;
  background-image: url(../image/dithered_background.gif);
  image-rendering: pixelated;
  background-size: 100%;
  background-repeat: no-repeat;
  font-family: "Courier New", Courier, monospace;
}

div {
  color: white;
  image-rendering: auto;
}

table {
  margin: auto;
}

p {
  line-height: 2em;
  text-align: initial;
}

/* headings */

h1 {
  font-family: "Datajack", "Courier New", Courier, monospace;
}

/* List */

ul {
  padding: 0px;
  line-height: 2em;
}

/* Links */

a {
  color: var(--spring);
  text-decoration: none;
  transition: 1s;
}

a:hover {
  color: var(--raspberry);
  transition: 0.5s;
}

.nav a {
  background-color: black;
  padding: 5px 10px;
}

.nav a:hover {
  color: white;
}

.main button {
  color: white;
  background-color: var(--raspberry);
  border: 2px solid darkred;
  font-family: "Courier New", Courier, monospace;
  font-size: 24px;
  font-weight: bold;
  padding: 5px;
  margin: 5px;
  border-radius: 5px;
}

/* grid */
.container {
  margin: auto;
  width: 900px;
  display: grid;
  grid-template-columns: 250px auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "header nav"
    "hero hero"
    "main main"
    "footer footer";
}

.header {
  grid-area: header;
  padding-left: 15px;
}

.header img:hover {
  opacity: 0.8;
}

/* navigation menu */

.nav {
  /* display: none; */
  text-align: right;
  grid-area: nav;
  font-size: 1.5em;
  padding-right: 15px;
}

.nav li {
  display: initial;
}

#tog {
  display: none;
  color: var(--charter);
  background-color: black;
  border: none;
  padding: 10px;
  margin: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 24px;
  user-select: none;
}

.main li {
  text-align: initial;
}

.nodisc li {
  list-style-type: none;
}

.row .nodisc {
  margin: 0px 5px;
}

.hero {
  grid-area: hero;
  background-image: url(../image/dithered-pyramid.png);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  /* for size */
  padding: 0px;
  height: 200px;
}

.main {
  grid-area: main;
  background-color: #222b38;
  text-align: center;
  padding: 40px;
  border-radius: 20px;
}

.footer {
  grid-area: footer;
  padding: 0px;
  margin: auto;
}

.footer p {
  background-color: black;
  padding: 10px;
  border-radius: 20px;
}

/* misc */

textarea {
  width: 250px;
}

.menu {
  padding: 5px;
  image-rendering: pixelated;
}

.classic img {
  width: 176px;
  height: 62px;
}

.new::after {
  content: "NEW!";
  color: var(--charter);
  background-color: black;
}

/* Featured Dreams */
/* .feature .row {
  justify-content: left;
}

.feature h3,
.feature p {
  text-align: left;
  margin: 0px;
} */

/* row and column */

.row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

/* For images */

.header img {
  image-rendering: pixelated;
}

.large {
  width: 500px;
}

/* animation */

.menu img {
  opacity: 100%;
  transition: 500ms;
}

.menu img:hover {
  opacity: 50%;
  transition: 100ms;
}

.main {
  opacity: 0%;
  animation-name: fadeout;
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

@keyframes fadeout {
  from {
    opacity: 0%;
  }
  to {
    opacity: 100%;
  }
}

/* yesterwebring */

.yw-widget {
  background-color: black;
  border-radius: 30px;
  width: 200px;
  padding: 5px;
  margin: auto;
}

.yw-title {
  font-weight: bold;
  color: var(--charter);
}

.yw-content {
  text-align: center;
  line-height: initial;
  margin: 0px;
}

/* For mobile devices */

@media only screen and (max-width: 924px) {
  /* For images */
  .container,
  .med,
  .large {
    width: 100%;
  }
}

@media only screen and (max-width: 800px) {
  body {
    margin: 0px;
  }
  .main {
    border-style: none;
  }
  .container {
    margin: 0px;
    margin-top: 5px;
    padding: 0px;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    grid-template-areas:
      "header"
      "nav"
      "hero"
      "main"
      "footer";
  }

  .hero {
    border-radius: 0px 0px 20px 20px;
  }

  .header,
  .nav {
    text-align: center;
    padding: 0px;
  }

  .nav ul {
    margin: 5px;
  }

  .row {
    flex-direction: column;
  }

  .classic img {
    width: 88px;
    height: 31px;
  }

  /* Imagez */
  .select img {
    width: 100px;
    image-rendering: auto;
  }

  /* mobile navigantion */
  .nav {
    background-color: black;
    /* justify-content: center; */
    display: initial;
  }
  /* the JS-activated one */
  #nav {
    display: none;
  }
  /* tog menu */
  .nav #tog {
    display: block;
  }
}

@media only screen and (max-width: 380px) {
  .container {
    grid-template-areas:
      "header"
      "nav"
      "main"
      "footer";
  }

  .header img {
    width: 80%;
  }

  p,
  .main {
    padding: 5px;
    margin-top: 10px;
  }

  .main h1 {
    font-size: 24px;
    padding-top: 10px;
  }
}

/* Webfont CSS setup for Datajack by Caveras */

@font-face {
  font-family: "Datajack";
  src: url("font/Datajack.eot");
  src: url("font/Datajack.eot?#iefix") format("embedded-opentype"),
    url("font/Datajack.woff") format("woff"),
    url("font/Datajack.ttf") format("truetype"),
    url("font/Datajack.svg#Datajack") format("svg");
  font-weight: normal;
  font-style: normal;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  @font-face {
    font-family: "Datajack";
    src: url("font/Datajack.svg") format("svg");
    font-weight: normal;
    font-style: normal;
  }
}
