@font-face {
  font-family: "comic-relief";
  src: url("/fonts/Comic-Relief-fonts/fonts/ttf-adapted-cy/cy-webfont/comic_relief_regular_cy-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
body {
  font-family: "comic-relief", sans-serif;
  background-image: url(/img/general/paper-rpt.png);
}

nav.navbar {
  border-bottom: 2px solid rgba(30, 30, 40, 0.2);
}

.offcanvas {
  --bs-offcanvas-width: 100vw;
}

.home-resource-cards .card-img-top {
  max-width: 168px;
  -o-object-fit: contain;
     object-fit: contain;
  margin: auto;
  padding: 0.5rem;
}

.scroll-margin {
  scroll-margin-top: 100px;
}

.nav-book {
  transition: all 125ms ease-in-out;
}
.nav-book:hover, .nav-book:focus-within {
  scale: 1.1;
  box-shadow: 0 0 15px 0 rgba(30, 30, 40, 0.2);
}
.nav-book strong {
  font-size: 1.8rem;
}

.cloud {
  position: fixed;
  left: 100%;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

main {
  position: relative;
  z-index: 1;
  min-height: 90vh;
}
main.home .home-books-img {
  max-width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
main.books h3 {
  font-size: 2.3rem;
}
main.book .splide {
  height: calc(100vh - 7rem);
  background-color: #fffef0;
  margin: 2rem;
  box-shadow: 0 6px 20px 0 rgba(30, 30, 40, 0.1);
  border-radius: 6px;
}
main.book .splide .splide__track {
  height: inherit;
}
main.book .splide .page {
  height: inherit;
}
main.book .splide .page img {
  max-height: 50%;
  -o-object-fit: contain;
     object-fit: contain;
}
main.book .splide .page .cover {
  height: inherit;
}
main.book .splide .page .non-cover {
  height: inherit;
}
main.book .splide .page .non-cover .page-media {
  height: 50%;
  overflow: hidden;
}
main.book .splide .page .non-cover .page-media audio {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  left: 100%;
  top: 100%;
}
main.book .splide .page .non-cover .page-media video {
  max-height: 100%;
  max-width: 100%;
  border-radius: inherit;
}
main.book .splide .page .non-cover .page-text {
  font-size: 2.5rem;
}
main.book .splide .splide__arrow {
  scale: 2;
  transform-origin: 50% 0%;
}
main.book .splide .splide__pagination {
  counter-reset: pagination-num;
}
main.book .splide .splide__pagination__page {
  width: 1.7rem;
  height: 2rem;
  border-radius: 3px;
  opacity: 1;
}
main.book .splide .splide__pagination__page:before {
  counter-increment: pagination-num;
  content: counter(pagination-num);
}
main.book .splide .splide__pagination__page.is-active {
  background: #d9ebe8;
  transform: scale(1.2);
  z-index: 1;
}
main.book ~ .hill,
main.book ~ footer {
  display: none;
}
main.game#chwilio {
  display: flex;
  flex-direction: column;
  align-items: center;
}
main.game#chwilio .hidden {
  opacity: 0;
}
main.game#chwilio #clues {
  font-size: 1.6rem;
}
main.game#chwilio #clues .clue {
  margin: 0;
}
main.game#chwilio #clues .clue.found {
  text-decoration-color: rgba(148, 191, 136, 0.3333333333);
  text-decoration-line: line-through;
  text-decoration-thickness: 0.8rem;
}
main.game#chwilio #loader {
  scale: 1.5;
}
main.game#chwilio #wordsearch {
  margin: auto;
  max-width: 100vw;
  height: 100vh;
  max-height: 80vh;
  aspect-ratio: 1;
  transition: opacity 250ms ease-in-out;
}
main.game#cofio .memory {
  margin-top: 1rem;
}
main.game#cofio .memory .pair-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0 5rem;
}
main.game#cofio .memory .pair-group.qm_correct .number {
  background-color: rgba(148, 191, 136, 0.3333333333);
}
main.game#cofio .memory .pair-group .number {
  padding: 0.5rem 1.5rem;
  line-height: 1.5;
  border-radius: 6px;
  border: 1px solid rgba(51, 51, 68, 0.1333333333);
  background-color: #ffffff;
}
main.game#cofio .memory .pair-group .number #mc {
  display: inline-block;
}
main.game#cofio .memory .pair-group .qm_matching_pairs {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  justify-content: center;
  /* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
  /* This container is needed to position the front and back side */
  /* Do an horizontal flip when you move the mouse over the flip box container */
  /* Position the front and back side */
  /* Style the front side (fallback if image is missing) */
  /* Style the back side */
}
main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair {
  border: none;
  background: transparent;
  width: 23vw;
  height: auto;
  aspect-ratio: 1;
  margin: 1.3vw auto;
  opacity: 1 !important;
  cursor: default;
  filter: drop-shadow(2px 2px 4px rgba(30, 30, 40, 0.3));
  color: var(--bs-body-color);
  width: 19ch;
  aspect-ratio: 2/1.5;
}
main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair:not(.qm_clicked):hover, main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair:not(.qm_clicked):focus {
  border-color: white;
  cursor: pointer;
}
main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair.qm_correct .flip-card-inner {
  border-color: green;
}
main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair img {
  background-color: white;
  padding: 1rem;
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  transform: rotateY(180deg);
  -o-object-fit: cover;
     object-fit: cover;
}
main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair img.audio-icon {
  transform: initial;
  background-color: yellow;
  border-radius: 100%;
  padding: 1vw;
  width: 80%;
  height: auto;
  max-height: 90%;
}
main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair .text {
  font-size: 3.5vw;
}
@media (max-width: 777px) {
  main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair {
    width: 30vw;
  }
  main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair .text {
    font-size: 6vw;
  }
}
@media (max-width: 555px) {
  main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair {
    width: 45vw;
  }
  main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair .text {
    font-size: 7.1vw;
  }
}
@media (max-width: 444px) {
  main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair {
    width: 44vw;
    margin: 2vw auto;
  }
  main.game#cofio .memory .pair-group .qm_matching_pairs .qm_pair .text {
    font-size: 7.1vw;
  }
}
main.game#cofio .memory .pair-group .qm_matching_pairs .flip-card {
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
  width: 100%;
  height: 100%;
}
main.game#cofio .memory .pair-group .qm_matching_pairs .flip-card-inner {
  border-color: yellow;
  max-width: 90vw;
  padding: 0rem;
  margin: 0;
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.75s;
  transform-style: preserve-3d;
}
main.game#cofio .memory .pair-group .qm_matching_pairs .flip-card.flip .flip-card-inner {
  transform: rotateY(180deg);
}
main.game#cofio .memory .pair-group .qm_matching_pairs .flip-card-front, main.game#cofio .memory .pair-group .qm_matching_pairs .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
}
main.game#cofio .memory .pair-group .qm_matching_pairs .flip-card-front {
  background-color: #fff;
  display: flex;
  border-radius: 2rem;
  align-items: center;
  justify-content: stretch;
}
main.game#cofio .memory .pair-group .qm_matching_pairs .flip-card-back {
  background-color: white;
  border-radius: 2rem;
  transform: rotateY(180deg); /* Safari */
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
main.game#cydweddi {
  overflow-x: hidden;
}
main.game#cydweddi .drag-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem;
  padding-bottom: 0;
}
main.game#cydweddi .drag-container .item {
  background-color: #ffffee;
  position: relative;
  width: 10ch;
  height: 5rem;
  line-height: 5rem;
  text-align: center;
  display: inline-block;
  font-size: 2rem;
  box-shadow: 0px 5px 5px 0px rgba(51, 51, 68, 0.1333333333);
  transition: opacity 125ms ease-in-out, scale 125ms ease-in-out;
  opacity: 0;
}
main.game#cydweddi .drag-container .item.ui-draggable-dragging {
  box-shadow: 0px 10px 25px 0px rgba(51, 51, 68, 0.0666666667);
  cursor: grabbing;
}
main.game#cydweddi .drag-container .item.ui-droppable-hover.hovering {
  scale: 1.2;
}
main.game#cydweddi .drag-container .item.shown {
  opacity: 1;
}
main.game#cydweddi .drag-container .item.correct:before {
  font-size: 3rem;
  font-family: "Font Awesome 6 Pro";
  content: "\f336";
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1 !important;
  width: 0.9em;
  height: 0.9em;
  transform: translate(-50%, -70%);
  color: white;
  background-color: #94bf88;
  line-height: 145%;
  border-radius: 5em;
  filter: drop-shadow(0 1px 1px rgba(51, 51, 68, 0.1333333333));
}
main.game#cydweddi .drag-container .drag-from {
  height: 6rem;
  display: inherit;
  justify-content: center;
  align-items: center;
  position: relative;
}
main.game#cydweddi .drag-container .drag-from:before {
  position: absolute;
  top: 90%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1 !important;
  content: "";
  background-image: url("/img/general/cydweddi-drag-prompt.svg");
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 1250ms ease-in-out;
  animation: shakeY;
  animation-duration: 20s;
}
main.game#cydweddi .drag-container .drag-from.dragged-once:before {
  opacity: 0;
}
main.game#cydweddi .drag-container .drag-from .draggable {
  cursor: grab;
}
main.game#cydweddi .drag-container .drag-from .draggable.first {
  z-index: 10;
}
main.game#cydweddi .drag-container .drag-to {
  max-width: 100ch;
  margin: auto;
  display: inherit;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-evenly;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 0.7rem dotted rgba(51, 51, 51, 0.2);
  border-bottom: 0.7rem dotted rgba(51, 51, 51, 0.2);
}
@media (max-height: 600px) {
  main.game#cydweddi .drag-container {
    gap: 2rem;
    padding-top: 1rem;
  }
  main.game#cydweddi .drag-container .item {
    font-size: 1.5rem;
    height: 3.3rem;
    line-height: 2;
    width: 8ch;
  }
  main.game#cydweddi .drag-container .drag-to {
    gap: inherit;
  }
}
main.game#cydweddi .timer-container {
  padding-bottom: 3rem;
}
main.game#cydweddi .timer-container .timer-box {
  padding: 1rem;
  background: #ffe;
  border-top: 0.7rem dotted rgba(51, 51, 51, 0.2);
  margin-top: -0.7rem;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
  min-width: 12rem;
}
main.game#cydweddi .timer-container .icon {
  color: rgba(51, 51, 51, 0.4666666667);
}

#modal-game-selection .modal-fullscreen .modal-body,
#modal-game .modal-fullscreen .modal-body {
  padding: 0;
  overflow: hidden;
}
#modal-game-selection #game-frame,
#modal-game #game-frame {
  width: 100%;
  height: 100%;
}

#modal-game .modal-body {
  background-color: #F8F0E4;
}

footer {
  border-top: 2px solid rgba(30, 30, 40, 0.2);
}
footer .partners a img {
  background: #f6f6f6;
  padding: 1rem;
  border-radius: 1rem;
  max-height: 160px;
  max-width: 100%;
  border: 5px solid white;
}

#hills-back {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: 0% 35%;
     object-position: 0% 35%;
}
#hills-front {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
}

@media (prefers-reduced-motion) {
  * {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
