@import url("https://fonts.googleapis.com/css2?family=Open+Sans&family=Pacifico&display=swap");
:root {
  --color-text: #313131;
  --color-subtle: white;
  --color-error: #e10050;
  --color-error2: #ffccde;
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #e3e3e3;
    --color-subtle: #1a1a1a;
    --color-error: #ffccde;
    --color-error2: #940a3b;
  }
}

html {
  --color-line: #005afb;
  --color-gradient1: #edfaff;
  --color-gradient2: #9be0ff;
}
@media (prefers-color-scheme: dark) {
  html {
    --color-gradient2: #001e29;
    --color-gradient1: #00577e;
  }
}
html.pim {
  --color-line: #00cb21;
  --color-gradient1: #e2fae6;
  --color-gradient2: #a4fcb3;
}
@media (prefers-color-scheme: dark) {
  html.pim {
    --color-gradient2: #002205;
    --color-gradient1: #00530e;
  }
}

.strip_anchor_styling {
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* ==========
   ANIMATIONS
   ========== */
@keyframes bouncing_right {
  0% {
    transform: translateX(-2px);
  }
  15% {
    transform: translateX(4px);
  }
  50% {
    transform: translateX(-2px);
  }
  65% {
    transform: translateX(4px);
  }
  100% {
    transform: translateX(-2px);
  }
}
@keyframes heart_beat_logo {
  0% {
    transform: rotate(-11deg) scale(1);
  }
  52% {
    transform: rotate(-11deg) scale(1);
  }
  64% {
    transform: rotate(-10deg) scale(1.05);
  }
  76% {
    transform: rotate(-11deg) scale(1);
  }
  88% {
    transform: rotate(-10deg) scale(1.05);
  }
  100% {
    transform: rotate(-11deg) scale(1);
  }
}
/* ================
   iPHONE X SUPPORT
   ================ */
/* ==============
   GLOBAL STYLING
   ============== */
*,
*:before,
*:after,
input[type=search] {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  background-color: var(--color-gradient2);
  background: linear-gradient(0deg, var(--color-gradient2) 0%, var(--color-gradient1) 100%);
  background-size: 100vw 110vh;
  background-size: 100vw 110lvh;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: sans-serif;
  font-family: "Open Sans", sans-serif;
}

main#contents {
  margin: auto;
  padding: 30px 20px 20px 20px;
  padding: calc(30px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  max-width: 500px;
  min-height: 100svh;
  position: relative;
  color: var(--color-text);
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: column;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -moz-box-align: center;
  -ms-flex-line-pack: center;
  -webkit-align-content: center;
  align-content: center;
}
@media screen and (min-width: 380px) {
  main#contents {
    padding-left: 20px;
    padding-left: calc(20px + env(safe-area-inset-left));
    padding-right: 20px;
    padding-right: calc(20px + env(safe-area-inset-right));
  }
}
@media screen and (min-height: 900px) {
  main#contents {
    padding-top: 60px;
    padding-top: calc(60px + env(safe-area-inset-left));
  }
}

p.success_text {
  text-align: right;
  margin-bottom: 10px;
}

header {
  text-align: right;
  padding: 0;
  width: 100%;
  line-height: normal;
  margin-bottom: 1rem;
}
header p {
  font-size: 1.2rem;
  margin: 0;
  transition: font-size ease 200ms;
}
header h1 {
  font-size: 7rem;
  margin-top: -75px;
  margin-bottom: -35px;
  transition: font-size ease 200ms, margin ease 200ms;
  font-family: "Pacifico", cursive;
  color: var(--color-line);
}
header h1 span {
  margin-right: -10px;
}
@media screen and (min-width: 400px) {
  header p {
    font-size: 1.3rem;
  }
  header h1 {
    font-size: 9rem;
    margin-top: -90px;
    margin-bottom: -40px;
  }
}

.pim header h1 {
  margin-top: -70px;
}
.pim header h1 span {
  margin-right: 0px;
}
@media screen and (min-width: 400px) {
  .pim header h1 {
    margin-top: -85px;
  }
}

img.lego-family {
  transition: all ease 200ms;
  width: auto;
  height: 50vw;
  max-height: 300px;
  margin-top: auto;
  margin-left: 0;
}
@media screen and (min-width: 700px) {
  img.lego-family {
    margin-left: -30%;
  }
}
.logo {
  padding-left: 4px;
  color: var(--color-line);
  position: fixed;
  right: 20px;
  bottom: 20px;
  cursor: pointer;
}
.logo svg {
  margin: auto;
  display: block;
  fill: var(--color-line);
  transform: rotate(-11deg);
  animation: 1.5s infinite heart_beat_logo;
  width: 32px;
  height: auto;
}
@media screen and (min-width: 700px) {
  .logo svg {
    width: 50px;
  }
}

/* *
   * Background effect: 
   * https://codepen.io/elifitch/pen/QyzJWb?editors=1100
 */
form.login {
  position: relative;
  max-width: 420px;
  margin-bottom: 1rem;
}
form.login input[type=submit],
form.login input[type=text] {
  border-radius: 20px;
}

a.pill_shape {
  height: 40px;
  display: inline-block;
  border-radius: 20px;
  background-color: var(--color-subtle);
  border: 1px solid var(--color-line);
  color: var(--color-line);
  text-align: center;
  line-height: 38px;
  text-decoration: none;
  padding: 0 20px;
  transition: all ease 300ms;
  margin: 0;
  margin-left: auto;
  margin-bottom: 1rem;
}
a.pill_shape svg {
  transition: color ease 300ms;
  margin-right: 10px;
}
a.pill_shape:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}
a.pill_shape:hover svg {
  color: var(--color-line);
}
a.pill_shape:active {
  background: var(--color-line);
  color: var(--color-subtle);
}
a.pill_shape:active svg {
  color: var(--color-subtle);
}
input[type=text]::-webkit-inner-spin-button,
input[type=text]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

button,
input[type=text],
input[type=submit] {
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-decoration: none;
}

input[type=submit] {
  position: absolute;
  top: 3px;
  right: 3px;
  height: 34px;
  width: 90px;
  background-color: var(--color-subtle);
}
input[type=submit]:hover + .floating-arrow {
  color: var(--color-text);
}

input[type=text] {
  border: 1px solid var(--color-line);
  width: 100%;
  transition: 0.2s ease box-shadow;
}
input[type=text]::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0);
  transform-origin: left center 0;
  transition: transform ease 0.2s, color ease 0.2s;
  transform: scale(0);
}
input[type=text]::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0);
  transform-origin: left center 0;
  transition: transform ease 0.2s, color ease 0.2s;
}
input[type=text]:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0);
  transform-origin: left center 0;
  transition: transform ease 0.2s, color ease 0.2s;
}
input[type=text]::-moz-placeholder {
  color: rgba(255, 255, 255, 0);
  transform-origin: left center 0;
  transition: transform ease 0.2s, color ease 0.2s;
  transform: scale(0);
}
input[type=text]:-moz-placeholder {
  color: rgba(255, 255, 255, 0);
  transform-origin: left center 0;
  transition: transform ease 0.2s, color ease 0.2s;
  transform: scale(0);
}
input[type=text]::placeholder {
  color: rgba(255, 255, 255, 0);
  transform-origin: left center 0;
  transition: transform ease 0.2s, color ease 0.2s;
  transform: scale(0);
}
input[type=text]:placeholder {
  color: rgba(255, 255, 255, 0);
  transform-origin: left center 0;
  transition: transform ease 0.2s, color ease 0.2s;
  transform: scale(0);
}
input[type=text]:focus::-webkit-input-placeholder, input[type=text]:hover::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.6);
  transform: scale(1);
}
input[type=text]:focus::-ms-input-placeholder, input[type=text]:hover::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.6);
  transform: scale(1);
}
input[type=text]:focus:-ms-input-placeholder, input[type=text]:hover:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.6);
  transform: scale(1);
}
input[type=text]:focus::-moz-placeholder, input[type=text]:hover::-moz-placeholder {
  color: rgba(255, 255, 255, 0.6);
  transform: scale(1);
}
input[type=text]:focus:-moz-placeholder, input[type=text]:hover:-moz-placeholder {
  color: rgba(255, 255, 255, 0.6);
  transform: scale(1);
}
input[type=text]:focus::placeholder, input[type=text]:hover::placeholder {
  color: rgba(255, 255, 255, 0.6);
  transform: scale(1);
}
input[type=text]:focus:placeholder, input[type=text]:hover:placeholder {
  color: rgba(255, 255, 255, 0.6);
  transform: scale(1);
}
input[type=text]:focus {
  box-shadow: inset 0px 0px 0px 2px rgb(255, 255, 255);
}

input[type=text] {
  text-indent: 15px;
  height: 40px;
  padding: 0 40px 1px 5px;
}

.floating-label {
  position: absolute;
  pointer-events: none;
  border-radius: 4px;
  left: 15px;
  top: 8px;
  padding: 0 5px;
  transition: 0.2s ease-out all;
  background-color: var(--color-gradient2);
  background: linear-gradient(0deg, var(--color-gradient2) 0%, var(--color-gradient1) 100%);
  background-size: 100vw 110vh;
  background-size: 100vw 110lvh;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.floating-arrow {
  position: absolute;
  pointer-events: none;
  color: var(--color-line);
  line-height: 40px;
  right: 16px;
  top: 0px;
  transition: color 0.2s ease-out;
}

.input-error {
  background-color: var(--color-text);
  color: var(--color-subtle);
  position: relative;
  border-radius: 20px;
  font-size: 12px;
  padding: 3px 10px;
  top: 3px;
}
.input-error:after {
  content: "";
  background: inherit;
  height: 10px;
  width: 10px;
  transform: rotate(45deg);
  position: absolute;
  top: -5px;
  left: 30px;
}

#ios_instructions {
  display: none;
  font-size: 0.7em;
}
#ios_instructions svg {
  height: 1.2em;
  width: auto;
  transform: translateY(1px);
}

input:hover ~ .floating-label,
input:focus ~ .floating-label,
input.filled:not(:focus) ~ .floating-label,
input:not(:focus):valid ~ .floating-label {
  top: -8px;
  font-size: 10px;
  left: 20px;
  opacity: 1;
  color: var(--color-text);
}

input:focus ~ .floating-arrow svg,
input.filled:not(:focus) ~ .floating-arrow svg {
  animation: 3s bouncing_right infinite;
}

img,
video,
figure {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

iframe {
  width: 100%;
}

hr {
  background-color: var(--color-line);
  height: 1.5px;
  border: none;
  margin: 0;
}

.error-notification {
  padding: 0 15px;
  border-radius: 10px;
  background-color: var(--color-error2);
  color: var(--color-error);
  border: 1px solid var(--color-error);
  margin: 20px auto;
}

.photo_gallery {
  padding: 1px;
  padding-left: max(1px, env(safe-area-inset-left));
  padding-right: max(1px, env(safe-area-inset-right));
  margin: 50px auto;
  margin: 50px -20px 50 -20px;
  margin: 50px calc(-20px + env(safe-area-inset-right)) 50px calc(-20px + env(safe-area-inset-left));
  max-width: 1000px;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  -o-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: start;
  -moz-box-pack: start;
  -ms-flex-pack: start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
}
@media screen and (min-width: 380px) {
  .photo_gallery {
    margin-left: -40px;
    margin-left: calc(-40px + env(safe-area-inset-left));
    margin-right: -40px;
    margin-right: calc(-40px + env(safe-area-inset-right));
  }
}
.photo_gallery img {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
}
.photo_gallery figure {
  display: block;
  position: relative;
  margin: 1px;
  width: calc(25% - 2px);
  padding-top: calc(25% - 2px);
}
