@media (prefers-color-scheme: dark) {
  :root {
    --main-bg-color: #161616;

    --pd-color-1: white;
    --pd-color-2: #88169d;
    --pd-color-3: #c220e0;
    --pd-color-4: #e03420;
    --pd-color-5: #9d1664;
    --pd-color-6: #e02068;
    --pd-color-shadow: #000;
    --pd-color-font: white;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --main-bg-color: white;

    --pd-color-1: #161616;
    --pd-color-2: #e02068;
    --pd-color-3: #9d1664;
    --pd-color-4: #e03420;
    --pd-color-5: #c220e0;
    --pd-color-6: #88169d;
    --pd-color-shadow: #000;
    --pd-color-font: #161616;
  }
}

* {
  font-family: "Menlo", monospace;
  font-weight: bold;
}

html {
  color: var(--pd-color-font);
}

body {
  background-color: var(--main-bg-color);
  margin: 0;
  padding-top: 60%;
  padding-bottom: 10em;
  width: 100%;
}

body.no-js {
  padding-top: 9em;
}

/*Nav ------------------------------------------------*/

nav {
  display: flex;
  width: 100%;
  height: calc(100% - 21em);
  justify-content: right;
  align-items: center;

  background-color: var(--main-bg-color);
  z-index: 2;

  position: fixed;
  top: 0;

  padding-top: 25%;
  margin: 0;

  box-shadow: var(--pd-color-shadow) 0px 0px 5px;
}

nav ul {
  display: flex;
  width: 90%;
  margin-top: 8em;
  margin-right: 5%;
  justify-content: space-around;
  align-items: center;
  padding: 0;
}

nav li {
  display: inline-block;
  margin: 0;
  font-size: 2em;
}

/*phone nav*/
/*width under 700 or client is phone*/
@media (pointer: none), (pointer: coarse), (max-width: 700px) {
  nav ul {
    flex-direction: column;
    height: 30%;
    margin-top: 25%;
  }

  nav {
    height: 80%;
  }

  body {
    padding-top: 120%;
  }
}

/*----------------------------------------------------*/

/*Logo -----------------------------------------------*/
.logo {
  position: fixed;
  top: 30%;
  left: 50%;
  z-index: 3;
  margin-left: -150px;

  transform: scale(1, 1);
}

.logo.scrolled:hover,
.logo.no-js:hover {
  transform: scale(0.4, 0.4);
  transition: scale 0.5s;
}

.logo * {
  font-style: normal;
  background-color: var(--main-bg-color);
  padding: 0.15em;
  padding-top: 0;

  text-decoration: none;
}

a#logo {
  padding: 0.15em;
  padding-top: 0;
}

.logo:not(.main) .dropdown {
  transform: skewX(-11deg) rotate(-11deg) translate(calc(330px - 100%), 0.6em);
}

.no-js .logo:not(.main) {
  transform: scale(0.33, 0.33) translateY(1.5em);
}

.logo a {
  padding: 0;
  background-color: transparent;
}

.logo h2 {
  font-size: 3em;
  text-align: left;
  transform: skewX(-11deg) rotate(-11deg);
}

.logo h2 ~ h2 {
  margin-top: -0.35em;
  color: var(--pd-color-2);
}

.logo span {
  font-size: 2.25em;

  margin: 0;
  margin-top: -0.4em;
  color: var(--pd-color-1);
}

.smalllogo {
  position: absolute;
  bottom: 0.5em;
  width: 2.5em;
  height: 4em;
  border: #161616 0.3em solid;
  background-color: white;
  outline: white 0.3em solid;
}

.smalllogo h2 {
  bottom: 0.35em;
  position: absolute;
  font-size: 2.8em;
  text-align: center;
  color: #161616;
}

.smalllogo h2 ~ h2 {
  bottom: -0.1em;
  left: 0.25em;
  position: absolute;
  font-size: 2.8em;
  color: #e02068;
  text-align: center;
}

/*----------------------------------------------------*/

/*Links ----------------------------------------------*/
input[type="submit"],
a {
  text-decoration: none;
  position: relative;
  border-radius: 0;
}

input[type="submit"] {
  text-align: center;
}

.button:not(#logo) {
  color: var(--main-bg-color);
  background-color: var(--pd-color-2);
  padding: 0.5em;
}

.button:not(#logo):hover {
  color: var(--main-bg-color);
  right: 0;
  padding-left: 1em;
  padding-right: 1em;
  cursor: pointer;
}

.button:not(#logo):hover::after {
  content: "]";
  position: absolute;
}
.button:not(#logo):hover::before {
  content: "[";
  position: absolute;
  transform: translateX(-0.6em);
}

input[type="submit"],
a:not(#logo) {
  color: var(--pd-color-1);

  transition: all 0.5s ease-in-out;
  right: 0;
}

a:hover:not(#logo) {
  color: var(--pd-color-2);

  right: 8px;
}

a:hover:not(#logo)::after {
  content: "\00a0<";
  position: absolute;
}

.button.hide-deadname {
  position: fixed;
  bottom: 6em;
  width: 14em;
  left: calc(50% - 7em);
  z-index: 3;
  transform: scale(2, 2);
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 5em;
  background-color: var(--main-bg-color);
  z-index: 1;
  display: flex;
  justify-content: space-around;

  align-items: center;
}

footer p {
  position: fixed;
  transform: translateY(70%);
  margin: 0;
}

footer * {
  transform: translateY(-50%);
}
/*----------------------------------------------------*/

/*Scroll ---------------------------------------------*/

/*change scroll bar style*/
::-webkit-scrollbar {
  width: 0px;
}

nav.scrolled,
.no-js nav {
  height: 5em;
  padding: 0;
}

.logo.scrolled,
.no-js .logo {
  top: -3em;
  left: 3.5em;
  width: 330px;

  transform: scale(0.33, 0.33);
}

.no-js .logo {
  height: 170px;
}

nav li.scrolled,
.no-js nav li {
  display: inline-block;
  transform: scale(0.5, 0.5);
}

nav ul.scrolled,
.no-js nav ul {
  width: 60%;
  margin-top: 1em;
}

/*phone nav*/
@media (pointer: none), (pointer: coarse), (max-width: 700px) {
  nav ul.scrolled,
  .no-js nav ul {
    width: 60%;
    margin-right: 20%;
  }

  nav li.scrolled,
  .no-js nav li {
    opacity: 0;
  }

  .logo.scrolled,
  .no-js .logo {
    top: -3.5em;
    left: 50%;
    width: 330px;

    transform: scale(0.33, 0.33);
  }
}

/*----------------------------------------------------*/

/*Dropdown -------------------------------------------*/

.dropdown {
  display: inline-block;
  transform: skewX(-11deg) rotate(-11deg) translate(calc(330px - 100%), 0em);
  margin-top: 0;
  background-color: transparent;
  text-align: end;
  align-content: center;
}

.dropdown-content {
  display: none;
  position: relative;
  background-color: var(--main-bg-color);
  transform: translate(0, -0.2em);
  padding-left: 8px;
  min-width: 160px;
  box-shadow: var(--pd-color-shadow) 0px 0px 5px;
  text-align: end;
  flex-direction: column;
}

.dropdown-content a {
  font-size: 2em;
  justify-self: center;
  align-items: center;
}

.logo:not(.scrolled) .dropdown:hover .dropdown-content {
  display: flex;
}

/*----------------------------------------------------*/

/*Form -----------------------------------------------*/

form {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin: 0;
  margin-bottom: 20em;
  margin-top: 15em;
  padding: 0;
}

.no-js form:has(.stickerdemo) {
  display: none;
}

.stickerdemo {
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 16em;
  height: 28em;
  margin: 0;
  border: #e02068 0.3em solid;
  border-radius: 0.4em;
  padding: 1em;
}

.stickerdemoshadow {
  background-color: white;
  box-shadow: var(--pd-color-shadow) 0px 0px 1em 0em;
  border-radius: 1em;
  width: 22em;
  height: 34em;
  position: absolute;
  transform: translateX(7em);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}

form .input {
  vertical-align: middle;
  border: none;
  text-align: center;
  font-size: 10vh;
  width: 120%;
  margin: 0;
  align-content: center;
  background-color: white;
  color: #161616;
  transform: skewX(-11deg) rotate(-11deg);
}

.tinysticker {
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 3.2em;
  height: 5.6em;
  border: #e02068 0.2em solid;
  border-radius: 0.2em;
  padding: 0.04em;
}

.tinystickershadow {
  background-color: white;
  box-shadow: var(--pd-color-shadow) 0px 0px 0em 0.2em;
  border-radius: 0.2em;
  width: 4.4em;
  height: 6.8em;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  z-index: 1;
}

.tinysticker .input {
  vertical-align: middle;
  border: none;
  text-align: center;
  font-size: 2vh;
  width: 120%;
  margin: 0;
  align-content: center;
  background-color: white;
  color: #161616;
  transform: skewX(-11deg) rotate(-11deg);
}

.tinysticker .smalllogo {
  transform: scale(0.2, 0.2);
  transform-origin: 50% 100%;
  margin-bottom: -0.25em;
}

input[type="submit"] {
  border: none;
  font-size: 1.5em;
  margin-top: 1em;
}

.stickerdemoshadow ~ input[type="submit"] {
  transform: translate(5em, 8em);
}

input[type="color"] {
  border: none;
  font-size: 1.5em;
  width: 2em;
  height: 2em;
  margin: 0;
  padding: 0;
}

input[type="text"] {
  border: none;
  font-size: 1.5em;
  width: 100%;
  height: 2em;
  margin: 0;
  padding: 0;
}

input[type="password"] {
  border: none;
  font-size: 1.5em;
  width: 100%;
  height: 2em;
  margin: 0;
  padding: 0;
}

input[type="date"] {
  border: none;
  font-size: 2em;
  width: 100%;
  height: 2em;
  margin: 0;
  padding: 0;
}

textarea {
  border: none;
  font-size: 1em;
  width: 100%;
}

.article-form {
  width: 80%;
  margin: 0;
  margin-top: 4em;
  margin-left: 10%;
}

.cpframe {
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border: var(--pd-color-1) 0.4em solid;
  border-radius: 0.5em;
  width: 3.5em;
  height: 3.5em;
  margin-bottom: 1em;
  margin-top: 0.2em;
  padding: 0;
}

.cptag {
  align-self: center;
  display: flex;
  width: 10em;
  margin-right: 20em;
  text-align: center;
  flex-direction: column;
}

input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.stickerdemoshadow ~ #downloadbutton {
  transform: translate(5em, 8em);
  font-size: 1.5em;
  margin-top: 3em;
}

/*----------------------------------------------------*/

/*Articles -------------------------------------------*/

/*arrange articles in a 2xX grid*/
.article-container,
.download-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(auto-fill, 1fr);
  grid-gap: 2em;
  justify-content: center;
  align-content: center;
  margin: 0;
  margin-left: 2em;
  margin-top: 4em;
  margin-bottom: 6em;
  padding: 0;
}

@media (pointer: none), (pointer: coarse), (max-width: 700px) {
  .article-container,
  .download-container {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(auto-fill, 1fr);
  }
}

@media (min-width: 1200px) {
  .article-container,
  .download-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(auto-fill, 1fr);
  }
}

/*boxes with read more button, article title, the firsr paragraph*/
.article,
.download {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 6em);
  height: 50%;
  margin: 0;
  background-color: var(--main-bg-color);
  padding: 2em;
  padding-bottom: 4em;
  border-radius: 0.4em;
  box-shadow: var(--pd-color-shadow) 0px 0px 1em 0em;
}

.article h3,
.article h4,
.download h3,
.download h4 {
  align-self: flex-start;
  margin: 0;
  transform: none;
}

.article-container .article p,
.download-container .download p {
  align-self: flex-start;
  margin-bottom: 2em;
  margin-top: 1em;
}

.article-big-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 60%;
  height: 100%;
  margin-left: 10%;
  margin-right: 10%;
  padding: 10%;
  padding-bottom: 4em;
  padding-top: 2em;
  background-color: var(--main-bg-color);
  box-shadow: var(--pd-color-shadow) 0px 0px 5px 0em;
}

.article-big {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  padding: 2em;
}

.article-big h3,
.article-big h4 {
  align-self: flex-start;
  margin: 0;
  transform: none;
}

.article-big p {
  align-self: flex-start;
  text-align: left;
  margin-bottom: 1em;
  margin-top: 3em;
  font-family: "Tahoma";
  font-weight: normal;
}

/*----------------------------------------------------*/

/*Login ----------------------------------------------*/

.login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--main-bg-color);
  width: 60%;
  height: 100%;
  margin-left: 10%;
  margin-right: 10%;
  padding: 10%;
  padding-bottom: 4em;
  padding-top: 2em;
}

.login form {
  width: 50%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.login h1 {
  margin: 0;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 2em;
}

body:has(.login) {
  background-color: var(--pd-color-2);
  margin-top: 0;
}

/*----------------------------------------------------*/

/*Main -----------------------------------------------*/

tag {
  position: absolute;
  opacity: 0;
  transform: translateY(-1000%);
}

h2 {
  text-align: center;
  font-size: 3em;
  margin: 0;
  color: var(--pd-color-1);
  transform: skewX(-11deg) rotate(-11deg);
}

h3 {
  margin-left: 3em;
  font-size: 1.5em;
  color: var(--pd-color-2);
  transform: skewX(-11deg) rotate(-11deg);
}

/*select all h3 that have no h4 below them*/
h3:not(:has(+ h4)) {
  margin-left: 0;
  text-align: center;
  color: var(--pd-color-2);
}

h3 ~ h3 {
  margin-top: -1em;
}

h4 {
  margin-top: -1em;
  margin-left: 3.5em;
  color: var(--pd-color-1);
  transform: skewX(-11deg) rotate(-11deg);
}

p {
  text-align: center;
  font-family: "Tahoma";
  font-style: normal;
  color: var(--pd-color-1);
}

.container p {
  margin-top: 10em;
  margin-bottom: 10em;
}

#under-construction {
  text-align: center;
  font-family: "Tahoma";
  font-style: normal;
  color: var(--pd-color-1);
  background-color: var(--pd-color-4);
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
}

#under-construction h1 {
  font-size: 1em;
  margin: 0;
  padding: 0;
}

#no-js-msg {
  display: none;
}

.no-js #no-js-msg {
  display: inherit;
}

/*----------------------------------------------------*/

/*Footer ---------------------------------------------*/

.waves {
  position: relative;
  width: 100%;
  height: 5vh;
  min-height: 50px;
  max-height: 150px;
  margin-bottom: 5vh;
}

.parallax > use {
  animation: move-forever 26s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 14s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 20s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 26s;
}
.parallax > use:nth-child(4) {
  animation-delay: -4s;
  animation-duration: 26s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/*-----------------------------------------------*/
