@font-face {
  font-family: waltograph;
  src: url(/assets/css/fonts/waltograph/waltographUI.ttf);
}

@font-face {
  font-family: chalkboard;
  src: url(/assets/css/fonts/chalkboard.ttf);
}

@font-face {
  font-family: calibiri-bold;
  src: url("/assets/css/fonts/calibri-font-sv/Calibri Bold/Calibri Bold.TTF");
}

input {
  -webkit-user-select: text;
}

* {
  outline: 0 none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#register-button {
  background-color: #dd1b50;
}

html.no-scroll {
  overflow: hidden;
}

html.rotate {
  transform: rotate(-90deg);
  transform-origin: left top;
  width: 100vh;
  overflow: visible;
  position: absolute;
  top: 100%;
  left: 0;
}

.rotate body > section {
  padding-right: 56px !important;
}

.rotate .force-no-scroll {
  overflow: hidden !important;
}

.rotate .no-scroll {
  overflow: visible !important;
  max-height: unset;
}

.rotate .subtitle,
.mobile .subtitle {
  word-break: normal;
}

.mobile .select-bar,
.rotate .select-bar {
  padding-top: 4px !important;
}

body {
  font-family: calibiri-bold;
  background: url(/assets/images/background_crop.png);
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
}

.is-clickable {
  cursor: pointer;
}

.chalk-text {
  font-family: chalkboard;
}

.waltz-text {
  font-family: waltograph;
}

/* login screen styles */

.hero.is-fullheight .hero-body {
  max-width: 100vw;
}

.box {
  background: #e3f5fb;
  border-radius: 20px;
  padding: 1.5rem;
}

.input {
  background-color: #cfdadc;
  font-family: calibiri-bold;
}

.btn-submit {
  font-family: calibiri-bold;
  background-color: #4081ab;
}

.control.has-icons-left.login .icon {
  width: 54px;
  left: 10px;
}

.control.has-icons-left.login .input {
  padding-left: 62px;
  text-align: center;
}

.px-30 {
  padding-left: 30px;
  padding-right: 30px;
}

.image.is-12x24 {
  height: 24px;
  width: 12px;
}

.ic-logout {
  height: 60px;
  width: auto;
  display: inline-block;
}

.ic-fullscreen,
.ic-replay {
  height: 60px;
  width: auto;
  display: inline-block;
}

.btn-submit[disabled] {
  background-color: #dbdbdb;
  color: #363636 !important;
}

.btn-large {
  background-color: rgba(29, 62, 76, 0.2);
  border: none;
  border-radius: 8px;
  margin-right: 12px;
  font-size: 1.4rem;
  -webkit-box-shadow: 8px 8px 8px 0px rgba(49, 49, 49, 0.3);
  -moz-box-shadow: 8px 8px 8px 0px rgba(49, 49, 49, 0.3);
  box-shadow: 8px 8px 8px 0px rgba(49, 49, 49, 0.3);
}

.subtitle {
  color: #0e485e;
  font-family: chalkboard;
}

.no-scroll {
  overflow: hidden;
  min-height: 100vh;
  max-height: 100vh;
}

.scroll-y {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 175px;
  height: 60vh;
  border-top-right-radius: 5px !important;
  border-bottom-right-radius: 5px !important;
}

.rotate .scroll-y {
  overflow-x: auto;
  overflow-y: hidden;
  min-height: unset;
  height: unset;
}

.space-top {
  min-height: 10vh;
}

@media screen and (max-device-height: 642px) and (orientation: portrait) {
  .no-scroll {
    overflow: auto;
  }
}

@media screen and (min-device-width: 320px) and (max-device-width: 850px) and (orientation: landscape) {
  .login-logo {
    height: 130px;
  }
  .hero-body {
    padding: 2rem;
  }
  .btn-large {
    font-size: 1.2rem;
  }
}

/* scroll bar customizations */

.scroll-y::-webkit-scrollbar {
  width: 8px;
}

.scroll-y::-webkit-scrollbar-track-piece {
  background: rgba(29, 62, 76, 0.2);
  border-radius: 12px;
}

.scroll-y::-webkit-scrollbar-thumb {
  background: #0e485e;
  border-radius: 12px;
}

.modal.modal-full-screen .modal-content {
  background-color: transparent;
}

.modal.modal-full-screen .modal-background {
  background-color: rgba(10, 10, 10, 0.86);
}

.rotate .modal.modal-full-screen .modal-content {
  max-height: 100vw;
}

.rotate .modal {
  min-width: 100vh;
  min-height: 100vw;
  max-width: 100vh;
  max-height: 100vw;
}

.flex-center-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

#load-game {
  width: 96vw;
  height: 96vh;
}

.rotate #load-game {
  width: 98vh;
  height: 98vw;
}

#modal-game .modal-content {
  background: url(https://apiyama.com/mat-games/images/_preloader.gif) center center no-repeat;
}

#modal-game .modal-close {
  padding: 0px;
  height: 40px;
  width: 40px;
  max-height: 40px;
  max-width: 40px;
  border-radius: 8px;
}

.rotate #modal-game .modal-close {
  margin-right: 45px;
}

#modal-game .modal-close::after,
#modal-game .modal-close::before {
  display: none;
}

/* Smartphones (portrait and landscape) ----------- */

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
  .header {
    top: -40px;
  }
  .box-content .select-bar {
    margin-top: -20px;
  }
  .box-content .select-bar {
    margin-top: 12%;
  }
  .rotate .box-content .select-bar {
    margin-top: -7%;
  }
  .category-text {
    font-size: 2em;
  }
  .category-image {
    height: 35px;
  }
}

/* Smartphones (landscape) ----------- */

@media only screen and (min-width: 321px) {
  .header {
    top: -40px;
  }
  .category-container {
    height: 126px;
    margin: 9% -7%;
  }
  .category-text {
    font-size: 2.8em;
  }
  .category-image {
    height: 60px;
  }
}

/* only upto tablet */

@media only screen and (max-width: 1023px) {
  .section.low-pad-mobile {
    padding: 1rem 1rem;
  }
}

/* Smartphones (portrait) ----------- */

@media only screen and (max-width: 320px) {
  .header {
    top: -40px;
  }
  .box-content .select-bar {
    margin-top: 12%;
  }
  .category-container {
    height: 100px;
    margin: 7% 6%;
  }
  .category-text {
    font-size: 2em;
  }
  .category-image {
    height: 35px;
  }
}

/* iPads (portrait and landscape) ----------- */

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .header {
    top: -40px;
  }
  .box-content .select-bar {
    margin-top: -20px;
  }
  .category-container {
    height: 100px;
  }
  .category-text {
    font-size: 3em;
  }
  .category-image {
    height: 35px;
  }
}

/* iPads (landscape) ----------- */

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  .header {
    top: -30px;
  }
  .subcategory-bar {
    width: 90%;
  }
  .subcategory-bar-text {
    font-size: 1.4rem;
    padding-top: 3px;
  }
  .category-container {
    margin: 10% -19%;
    height: 126px;
  }
  .box-content .select-bar {
    margin-top: -20px;
  }
  .category-text {
    font-size: 3em;
  }
  .category-image {
    height: 55px;
  }
}

/* iPads (portrait) ----------- */

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  .header {
    top: -30px;
  }
  .subcategory-bar-text {
    font-size: 0.9rem;
  }
  .category-container {
    margin: 6% 7%;
    height: 127px;
  }
  .box-content .select-bar {
    margin-top: -20px;
  }
  .category-text {
    font-size: 3em;
  }
  .category-image {
    height: 55px;
  }
}

/* Desktops and laptops ----------- */

@media only screen and (min-width: 1025px) {
  .header {
    top: -40px;
  }
  .subcategory-bar-text {
    font-size: 1.8rem;
    padding-left: 20%;
  }
  .category-container {
    margin: 10% -8%;
    height: 100px;
  }
  .box-content .select-bar {
    margin-top: -20px;
  }
  .category-text {
    font-size: 3em;
  }
  .category-image {
    height: 60px;
  }
}

@media only screen and (min-width: 1224px) {
  .category-container {
    margin: 5% -10%;
    height: 155px;
  }
}

/* Main Page */

.box-content {
  background: url(../images/box-bg.png) no-repeat center;
  background-size: contain;
  min-height: 500px;
}

.category-container {
  background: url(../images/category-banner.png) no-repeat center;
  background-size: contain;
}

.category-image {
  background-image: url(../images/category-fade-icon.png);
  width: 60px;
  background-size: contain;
  background-repeat: no-repeat;
}

.category-active {
  background-image: url(../images/category-active-icon.png);
}

/* Topic page */

.topic-box-banner {
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255, 0.5);
  padding-bottom: 5%;
  border-radius: 20px;
  position: relative;
}

.topic-box {
  background-color: rgb(255, 255, 255, 0.5);
  border-radius: 20px;
  margin: 0% 2%;
  padding: 3%;
}

.topic-box img {
  max-height: 150px;
}

.back-option {
  background: url(../images/back-option.png) no-repeat center;
  height: 60px;
  background-size: contain;
  transition: all 0.3s;
}

.select-bar {
  z-index: 1;
}

.select-bar {
  content: "";
  background: url("/assets/images/select-bar.png") no-repeat center;
  background-repeat: no-repeat;
  height: 75px;
  background-size: contain;
}

.subcategory .subtopic img {
  height: 165px;
}

audio {
  display: none;
}

#lvl2-container .header,
#lvl3-container .header {
  min-height: 86px;
}

.active {
  height: 55px;
}

.row-item {
  background: url(../images/category-banner.png) no-repeat center;
  background-size: contain;
  width: 130%;
  margin-left: -15%;
  padding: 12% 12% 16%;
}

@media screen and (min-width: 1216px) {
  .row-item {
    width: 98%;
    margin-left: 1%;
    padding: 4% 7% 7%;
  }
  .first-row-item {
    margin-top: 5%;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1215px) {
  .row-item {
    width: 130%;
    margin-left: -15%;
    padding: 3% 7% 10%;
  }
  .first-row-item {
    margin-top: 8%;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .row-item {
    width: 94%;
    margin-left: 3%;
    padding: 7% 7% 11%;
  }
}

@media screen and (max-width: 767px) {
  .box-banner {
    margin: 0 auto;
    width: 500px;
  }
  .select-bar {
    margin-top: -5%;
  }
  .box-content {
    width: 500px;
    min-height: 420px;
  }
  .row-item {
    width: 520px;
    margin-left: -12px;
    padding: 10px 60px 30px;
  }
  .first-row-item {
    margin-top: 36px;
  }
  .no-scroll {
    overflow-y: auto !important;
  }
}

.modal-fullscreen-btn {
  position: fixed;
  right: 10px;
  top: 64px;
}

.modal-replay-btn {
  position: fixed;
  right: 10px;
  top: 117px;
}

.rotate .modal-fullscreen-btn {
  right: 56px;
  top: 70px;
}

.rotate .modal-replay-btn {
  right: 56px;
  top: 128px;
}

#ribbon-container {
  position: absolute;
  top: 22px;
  right: -3px;
  overflow: visible;
  font-size: 18px;
  line-height: 18px;
}

#ribbon-container:before {
  content: "";
  height: 0;
  width: 0;
  display: block;
  position: absolute;
  top: 3px;
  left: 0;
  border-top: 29px solid rgba(0, 0, 0, 0.3);
  border-bottom: 29px solid rgba(0, 0, 0, 0.3);
  border-right: 29px solid rgba(0, 0, 0, 0.3);
  border-left: 29px solid transparent;
}

#ribbon-container:after {
  content: "";
  height: 3px;
  background: rgba(0, 0, 0, 0.3);
  display: block;
  position: absolute;
  bottom: -3px;
  left: 58px;
  right: 3px;
}

#ribbon-container .ribbon-text {
  display: block;
  padding: 20px;
  position: relative;
  background: #dd0970;
  overflow: visible;
  height: 58px;
  margin-left: 29px;
  color: #fff;
  text-decoration: none;
}

#ribbon-container .ribbon-text:after {
  content: "";
  height: 0;
  width: 0;
  display: block;
  position: absolute;
  bottom: -15px;
  right: 0;
  border-top: 15px solid #ff5e88;
  border-right: 15px solid transparent;
}

#ribbon-container .ribbon-text:before {
  content: "";
  height: 0;
  width: 0;
  display: block;
  position: absolute;
  top: 0;
  left: -29px;
  border-top: 29px solid#DD0970;
  border-bottom: 29px solid#DD0970;
  border-right: 29px solid transparent;
  border-left: 29px solid transparent;
}
.privacy-box {
  min-height: 85vh;
}
