/* =======================
Common styles
======================= */

/* Fonts */
@font-face {
  font-family: "Yopta Sans";
  src: url('../font/YAtype.otf');
}

@font-face {
  font-family: "Yopta Sans Header";
  src: url('../font/Yoptalicious.otf');
}

body {
  font-family: "Roboto", var(--bs-font-sans-serif);
}

.brush {
  font-family: "Yopta Sans Header", 'Brush Script MT', cursive, var(--bs-font-sans-serif);
  margin-bottom: 25px;
  font-weight: 400 !important;
}

@media (min-width: 1200px) {
  h1.brush {
    font-size: 36px;
  }

  h2.brush {
    font-size: 30px;
  }

  h3.brush {
    font-size: 25px;
  }

  h4.brush {
    font-size: 20px;
  }
}

h4.display-6 {
  line-height: 35px;
  font-size: 20px;
  font-weight: 400;
}

h3.display-6 {
  line-height: 33px;
  font-size: 30px;
}

@media (min-width: 1200px) {
    .display-7 {
        font-size: 2.0rem !important;
    }
}

.display-7 {
    font-size: calc(0.9rem + 1.5vw);
    font-weight: 300;
    line-height: 1.2;
}

.brush-blue {
  text-shadow: -2px 0 #A0D7FF;
}

.brush-blue-invert {
  color: #A0D7FF;
  text-shadow: -1.5px -0.2px #000000;
}

.brush-red {
  text-shadow: -2px 0 #ff7c6b;
}

.brush-green {
  text-shadow: -2px 0 #B6E94B;
}

.brush-white {
  text-shadow: -2px 0 #FFFFFF;
}

.bg-dashed-blue {
  background-image:
    linear-gradient(to right, #000000 0%, #000000 50%, transparent 50%),
    linear-gradient(to right, #ecfcff 0%, #ecfcff 100%, transparent 0%),
    linear-gradient(to right, #000000 0%, #000000 50%, transparent 50%);
  background-position: top, center, bottom;
  background-size: 10px 1px, 10px 70%, 10px 1px;
  background-repeat: repeat-x;
  vertical-align: middle;
}

.sticky-header {
  background-color: #FFFAF3;
  position: sticky;
  top: 0;
  z-index: 5;
}

.bg-dashed-orange {
  background-image:
    linear-gradient(to right, #000000 0%, #000000 50%, transparent 50%),
    linear-gradient(to right, #FFE7D2 0%, #FFE7D2 100%, transparent 0%),
    linear-gradient(to right, #000000 0%, #000000 50%, transparent 50%);
  background-position: top, center, bottom;
  background-size: 10px 1px, 10px 70%, 10px 1px;
  background-repeat: repeat-x;
  vertical-align: middle;
}

.dashed-line {
  height: 1px;
  background-image:
    linear-gradient(to right, #000000 0%, #000000 50%, transparent 50%);
  background-size:10px 1px;
  background-repeat:repeat-x;
}

/* Backgrounds */
.bg-paper {
  border-radius: 30px !important;
  background: #FFFAF3 !important;
  background-image: radial-gradient(#ebebeb 1.4px, transparent 0) !important;
  background-size: 15px 15px !important;
  background-position: 0px 0px !important;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.bg-paper.offcanvas {
  border-radius: 30px 0 0 30px !important;
}

.bg-checkered {
  border-radius: 20px !important;
  background-color: #f9f1fe;
  background-image:  linear-gradient(#B9BFD830 1px, transparent 1px), linear-gradient(to right, #B9BFD830 1px, #f9f1fe 1px);
  background-size: 20px 20px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.bg-white {
  border-radius: var(--bs-border-radius-xl);
  border: 1px solid #A0D7FF;
  background: #FFF;
}

.bg-grey {
  border-radius: 20px;
  background: #F9F9F9;
}

.bg-light-blue {
  background: #E2ECFF;
}

.bg-blobs {
    background-image: url('../img/blob_right_top.svg'), url('../img/blob_left_bottom.svg'), url('../img/blob_right_bottom.svg');
    background-position: top right, bottom left, bottom right;
    background-size: min(400px, 70vw), min(500px, 50vw), min(200px, 35vw);
    background-repeat: no-repeat;
}

/* Positioning */
.block {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

/* Images */
@media (min-width: 1200px) {
    .circle-frame {
      position: relative;
      justify-content: center;
      align-items: center;
    }

    .circle-frame::before {
      content: "";
      display: block;
      position: absolute;
      top: -4.5px;
      left: -4px;
      width: 61px;
      height: 61px;
      background-image: url('../img/frame.svg');
      background-size: cover;
      background-repeat: no-repeat;
    }
}

.bookmark-blue {
  position: relative;
  display: inline-block;
}

.bookmark-blue:after {
  display: inline-block;
  content: '';
  width: 35px;
  height: 98px;
  position: absolute;
  top: -17px;
  left: 7px;
  background: url('../img/bookmark_blue.svg') no-repeat;
}

.bookmark-green {
  min-width: 249px;
  min-height: 62px;
  width: max-content;
  background: url('../img/bookmark-green.svg') no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 68px 12px 24px;
}

.bookmark-light-green {
  min-width: 249px;
  min-height: 62px;
  width: max-content;
  background: url('../img/bookmark-light-green.svg') no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 68px 12px 24px;
}

/* Utilities */
.hidden {
  visibility: hidden;
}

.animate {
  transition: 0.8s ease-in-out 0.3s;
  opacity: 0;
}

.in-view {
  opacity: 1;
}

.img-md-fluid {
   max-width: 70%;
   height: auto;
}

@media (min-width: 1200px) {
  .img-md-fluid {
    max-width: 100%;
  }
}

.hstack-sm {
  display: block;
}

@media (min-width: 576px) {
  .hstack-sm {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
  }
}

.stroke {
  text-shadow: -1px 0 #00000085, 0 1px #00000085, 1px 0 #00000085, 0 -1px #00000085;
}

.spiral {
  position: absolute;
  width: 90%;
  height: 60px;
  background-image: url('../img/spiral.svg');
  background-size: 43px 60px ;
  background-repeat: repeat-x;
  top: -10px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.spiraled {
  position: relative;
  padding-top: 40px !important;
}

/* Checkbox */
.flip-checkbox-wrapper {
  display: flex;
  justify-content: center;
}

.flip-checkbox-wrapper .tgl,
.flip-checkbox-wrapper .tgl:after,
.flip-checkbox-wrapper .tgl:before,
.flip-checkbox-wrapper .tgl *,
.flip-checkbox-wrapper .tgl *:after,
.flip-checkbox-wrapper .tgl *:before,
.flip-checkbox-wrapper .tgl + .tgl-btn {
  box-sizing: border-box;
}

.flip-checkbox-wrapper .tgl::-moz-selection,
.flip-checkbox-wrapper .tgl:after::-moz-selection,
.flip-checkbox-wrapper .tgl:before::-moz-selection,
.flip-checkbox-wrapper .tgl *::-moz-selection,
.flip-checkbox-wrapper .tgl *:after::-moz-selection,
.flip-checkbox-wrapper .tgl *:before::-moz-selection,
.flip-checkbox-wrapper .tgl + .tgl-btn::-moz-selection,
.flip-checkbox-wrapper .tgl::selection,
.flip-checkbox-wrapper .tgl:after::selection,
.flip-checkbox-wrapper .tgl:before::selection,
.flip-checkbox-wrapper .tgl *::selection,
.flip-checkbox-wrapper .tgl *:after::selection,
.flip-checkbox-wrapper .tgl *:before::selection,
.flip-checkbox-wrapper .tgl + .tgl-btn::selection {
  background: none;
}

.flip-checkbox-wrapper .tgl + .tgl-btn {
  outline: 0;
  display: block;
  width: 4em;
  height: 2em;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.flip-checkbox-wrapper .tgl + .tgl-btn:after,
.flip-checkbox-wrapper .tgl + .tgl-btn:before {
  position: relative;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
}

.flip-checkbox-wrapper .tgl + .tgl-btn:after {
  left: 0;
}

.flip-checkbox-wrapper .tgl + .tgl-btn:before {
  display: none;
}

.flip-checkbox-wrapper .tgl:checked + .tgl-btn:after {
  left: 50%;
}

.flip-checkbox-wrapper .tgl-flip + .tgl-btn {
  padding: 2px;
  transition: all 0.2s ease;
  font-family: sans-serif;
  perspective: 100px;
}

.flip-checkbox-wrapper .tgl-flip + .tgl-btn:after,
.flip-checkbox-wrapper .tgl-flip + .tgl-btn:before {
  display: inline-block;
  transition: all 0.4s ease;
  width: 100%;
  text-align: center;
  position: absolute;
  line-height: 2em;
  color: #000;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 4px;
}

.flip-checkbox-wrapper .tgl-flip + .tgl-btn:after {
  content: attr(data-tg-on);
  background: #DDF3AF;
  box-shadow: 2px 3px 0px 0px #9CCB39;
  transform: rotateY(-180deg);
}

.flip-checkbox-wrapper .tgl-flip + .tgl-btn:before {
  background: #FFA894;
  content: attr(data-tg-off);
  box-shadow: 2px 3px 0px 0px #B03E24;
}

.flip-checkbox-wrapper .tgl-flip + .tgl-btn:active:before {
  transform: rotateY(-20deg);
}

.flip-checkbox-wrapper .tgl-flip:checked + .tgl-btn:active:after {
  transform: rotateY(20deg);
}

.flip-checkbox-wrapper .tgl-flip:checked + .tgl-btn:before {
  transform: rotateY(180deg);
}

.flip-checkbox-wrapper .tgl-flip:checked + .tgl-btn:after {
  transform: rotateY(0);
  left: 0;
  background: #DDF3AF;
  box-shadow: 2px 3px 0px 0px #9CCB39;
}

.flip-checkbox-wrapper .tgl-flip:hover + .tgl-btn:before {
  background-color: #FF8B71;
  box-shadow: 2px 3px 0px 0px #B03E24;
}

.flip-checkbox-wrapper .tgl-flip:hover + .tgl-btn:after {
  background-color: #CAF373;
  box-shadow: 2px 3px 0px 0px #9CCB39;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -0.1rem;
  display: none;
  position: absolute;
}

@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 991.98px) {
  .dropdown-submenu > .dropdown-menu {
    position: relative;
    left: 0;
    top: 0;
    display: none;
    margin: 0;
  }

  .dropdown-submenu > .dropdown-menu.show {
    display: block;
  }
}

