/*
  ============
  Import fonts
  ============
*/

@font-face {
  font-family: "ISO";
  src: url("/assets/fonts/ISOv0.7-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ISO";
  src: url("/assets/fonts/ISOv0.7-RegularItalic.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "ISO";
  src: url("/assets/fonts/ISOv0.7-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}


/*
  =======
  General
  =======
*/

html {
  font-size: 17px; /* set root font size */
  line-height: 1.8em;
  background: #fff;
  color: #222;
}

body {
  font-family: "ISO", monospace, sans-serif;
  margin: 0 6vw;
}

p {
  font-size: 1.3rem;
  max-width: 560px;
  margin: 1.8em auto;
  text-align: justify;
}

/* left-align text on smaller screens */
@media only screen and (max-width: 640px) {
  p {
    text-align: initial;
  }
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.button {
  background: hsl(87, 47%, 52%);
  color: #fff;
  border-radius: 4px;
  text-decoration: none; /* because the <a> style has underline */
  transition: 0.1s background;
  display: flex; /* so the button text can take up rest of space */
  width: 100%;
  max-width: 300px;
}

.button span {
  padding: 0.7em 1.7em;
  display: inline-block;
  flex-grow: 1;
  text-align: center;
}

.button span:last-child {
  padding: 0.7em 1em;
  border-left: 1px solid rgba(255,255,255,0.3);
  flex-grow: 0; /* so it doesn't take up space meant for button text */
}

.button:hover {
  background: hsl(87, 47%, 47%);
}

.button:active {
  transform: translateY(2px);
}

.button.inactive, .button.inactive:hover {
  background: hsl(0,0%,76%);
}

::selection {
  color: #fff;
  background: #222;
}


/*
  ======
  Header
  ======
*/

header {
  height: 96vh;
  max-height: 100vw; /* this helps at small width screen sizes */
  position: relative; /* so that contents can be absolutely positioned */
}

h1 {
  display: none;
}

.circle-texture {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 50%;
  max-width: 300px; /* arbitrary, texture image max is 412px */
  border-radius: 50%;
  background-image: linear-gradient(#76D7EA, #E44081, #F6EB13);
  background-size: 400% 400%;
  animation: gradient 60s ease infinite;
  transition: transform 0.25s;
  cursor: pointer;
}

.circle-texture img {
  display: block;
  max-width: 100%;
  mix-blend-mode: multiply;
}

.circle-texture:active {
  transform: translateX(-50%) translateY(-50%) rotate(360deg);
}

/* Define animation for circle texture */
@keyframes gradient {
    0% { background-position: 50% 0%; }
    50% { background-position: 51% 100%; }
    100% { background-position: 50% 0%; }
}


/*
  ====
  Main
  ====
*/

main {
  margin-top: -5vh;
}

main img.full {
  margin: 10vh auto;
  display: block; /* so that auto margin works */
  max-height: 90vh; /* so that the whole thing is always visible */
}

span.obs-word {
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 1px;
}

img.little-logo {
  width: 22px;
  position: relative;
  top: 3px;
  left: 1px;
}


/*
  ==================
  Main: Product area
  ==================
*/

#product-area {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* allows break at small screen sizes */
  margin: 10vh auto;
  border: 4px solid #222;
  border-radius: 8px;
  padding: 4vw 2vw;
  max-width: 750px;
}

#product-area > div {
  padding: 2vw;
}

#product-area h2 {
  font-size: 1.2em;
  margin: 0;
}

#product-area img {
  max-width: 230px;
  display: block;
  margin: 0 auto;
}

#product-area .button {
  margin-bottom: 0.5em;
}

#product-area ul {
  margin: 1em 0;
  padding-inline-start: 20px;
  list-style-type: none;
}

#product-area ul li {
  margin: 0;
  padding: 0;
  position: relative;
}

#product-area ul li:before {
  content: "";
  display: inline-block;
  position: absolute;
  height: 10px;
  width: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg width='10' height='10' xmlns='http://www.w3.org/2000/svg'><path d='M4.766 9.824a.243.243 0 0 0 .468 0c.871-3.032 1.558-3.719 4.59-4.59a.243.243 0 0 0 0-.468c-3.032-.871-3.719-1.558-4.59-4.59a.244.244 0 0 0-.468 0c-.871 3.032-1.558 3.719-4.59 4.59a.243.243 0 0 0 0 .468c3.032.871 3.719 1.558 4.59 4.59z' fill='black' fill-rule='nonzero'/></svg>");
  left: -20px;
  top: 8px;
}

#product-area small {
  white-space: nowrap;
}


/*
  ======
  Footer
  ======
*/

footer {
  margin: 10vh 0;
  text-align: center;
  font-size: 1rem;
}

footer p {
  font-size: inherit;
  text-align: center; /* to undo justified alignment */
}
