@font-face { font-family: Naripho; src: url('Naripho.otf'); }
@font-face { font-family: SquidgySweets; src: url('SquidgySweets.otf'); }
@font-face { font-family: Nunito; src: url('Nunito.ttf'); }

html {
    font-family: Naripho; 
    font-size: clamp(32px, 3.5vw, 48px);
    padding-bottom: 3rem;
    touch-action: manipulation;
}

.yellow-font {
    font-family: SquidgySweets;
    color: #ffc500;
    text-stroke: .015rem #000;
    -webkit-text-stroke: .015rem #000;
}
.yellow-font-small {
    font-family: SquidgySweets;
    color: #ffcc00;
    text-stroke: .015rem #000;
    -webkit-text-stroke: .015rem #000;
}

.black-font {
    font-family: SquidgySweets;
    color: #000;
}

@supports (-webkit-overflow-scrolling: touch) {
  .yellow-font {
    -webkit-text-stroke: 0.07rem #000;
  }
}

section {
    margin: 1rem auto;
    text-align: center;
    max-width: 95%;
    width: 20rem;
}


    
a:link {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

a:visited {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

a:hover {
  text-decoration: none;
  color: #444;
  font-weight: bold;
}

a:active {
  text-decoration: none;
  color: #444;
  font-weight: bold;
}

.button-rect {
  cursor: pointer;
  vertical-align: middle;
  text-decoration: none;
  font-size: inherit;
  font-family: inherit;
  color: #000000;
  font-size: 1rem;
  padding: .4rem .75rem;
  background: white;
  border: 2px solid #000000;
  border-radius: .5rem;

  margin: .5rem;
  
  -webkit-appearance: none;
  -moz-appearance:    none;
  appearance:         none;
}

.button-rect:disabled {
    cursor: not-allowed;
    color: #808080;
    border: 2px solid #808080;
}

.button-rect:focus {
  outline: 4px solid #ffc500;
}

/* spinner */
.loader {
  margin: 1rem auto;
  border: .5rem solid #000;
  border-top: .5rem solid #ffc500;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* footer */
.footer {
    font-size: clamp(24px, 3.5vw, 48px);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: #ffca00;
}

@media print {
  footer {
    display: none !important;
  }
}
/* Accordion reset */
#gamesAccordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: .25rem; /*12px;*/
  --bs-accordion-inner-border-radius: .25rem; /*12px;*/
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 0;
  --bs-accordion-body-padding-x: .3625rem; /*16px;*/
  --bs-accordion-body-padding-y: .3625rem; /*16px;*/
  --bs-accordion-bg: transparent;
}

/* Each game item */
.game-item {
  border: 0 !important;
  background: transparent !important;
  margin: 0 0 .2rem 0;
}

.trophy-overlay {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  height: 0.55rem;
}

/* Remove extra line between stacked accordion items */
.game-item:not(:first-of-type) {
  border-top: 0 !important;
}

/* Header wrapper */
.game-item .accordion-header {
  margin: 0;
}

/* The clickable banner button */
.game-banner-button {
  display: block !important;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: .3rem !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Remove Bootstrap's open-state background */
.game-banner-button:not(.collapsed) {
  background: transparent !important;
  box-shadow: none !important;
}

/* Remove focus glow */
.game-banner-button:focus {
  box-shadow: none !important;
}

/* Remove Bootstrap arrow */
.game-banner-button::after {
  display: none !important;
}

/* Banner box with fixed aspect ratio */
.game-banner-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 380 / 90;
  overflow: hidden;
  background: black;
  border-radius: .3rem;
  line-height: 0;
}

.game-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  image-rendering: pixelated;
  image-rendering: crisp-edges;

  border: .06rem solid black;ff00ff;
  border-radius: .3rem;
}

.game-banner-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: black;
  color: white;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}
.game-banner-fallback-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.game-item .accordion-collapse {
  border: 0;
  background: transparent;
}

.game-item .accordion-body {
  padding: .25rem;
  background: white;
  border-radius: .3rem;
  margin-top: 0.2rem;
}

.achievement-row {
  border: 0.04rem solid black;
  border-radius: .3rem;
  padding: 0; /*1rem 1rem 1rem 1rem0; 5rem; 0 0 0 0; .2rem .2rem .2rem .2rem;*/
  box-shadow: inset 0 0 0 0.04rem #e0e0e0;
}

.secret-achievements-row {
  border: 0.04rem solid black;
  border-radius: .3rem;
  padding: 0; /*1rem 1rem 1rem 1rem0; 5rem; 0 0 0 0; .2rem .2rem .2rem .2rem;*/
  box-shadow: inset 0 0 0 0.04rem #e0e0e0;
  font-size: 0.65rem;
}

.achievement-main {
  display: flex;
  align-items: flex-start;
  gap: 0.06rem;
  min-height: 1.5rem;
}

.achievement-text {
  flex: 1 1 auto;
  min-width: 0;
}

.achievement-title {
  font-family: Nunito, sans-serif;
  font-size: 0.65rem;
  font-weight: bold;
  text-align: left;
  line-height: 1.1;
  color: black;
  margin: 0 0 0.04rem 0;
}

.achievement-description {
  font-family: Nunito, sans-serif;
  font-size: 0.47rem;
  text-align: left;
  line-height: 1.1;
  color: black;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* icon */
.achievement-icon-frame {
  width: 1.4rem;
  height: 1.4rem;
  align-items: center;
  justify-content: center;
  margin: 0.015rem;
}

.achievement-icon {
  width: auto;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.achievement-footer {
  display: flex;
}

.achievement-check {
  width: .7rem;
  height: .7rem;
  font-size: 1.1rem;
  border: 0.06rem solid black;
  text-stroke: 0.06rem white;
  -webkit-text-stroke: 0.03rem white;
  border-radius: 0.12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial,Helvetica, sans-serif;
  font-weight: 900;
  line-height: 1;
  padding: 0 0 0.3rem 0.17rem;
  margin: 0.2rem 0 0 0;
}

.achievement-status {
  flex: 0 0 auto;
  font-family: Nunito, sans-serif;
  font-size: .4rem;
  white-space: nowrap;
  text-align: right;
  margin-left: auto;
  margin-top: auto;
}

.achievement-progress {
  display: flex;
  width: 7.5rem;
  align-items: center;
  gap: 0.2rem;
  flex: 0 0 auto;
  margin-left: auto;
  margin-top: auto;
}


.achievement-progress-bar {
  flex: 1;
  height: 0.4rem;
  border: 0.06rem solid black;
  background: white;
  overflow: hidden;
  border-radius: 0.12rem;
}

.achievement-progress-fill {
  height: 100%;
  background: black;
}

.achievement-progress-text {
  font-family: Nunito, sans-serif;
  font-size: .4rem;
  white-space: nowrap;
}

.achievement-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;


  background: #c0c0c0 !important;
  color: black;
  border: 0.04rem solid black;
  border-radius: .3rem;
  padding: 0;
}

.game-list-header {
    font-weight: bold;
    padding: .25rem;
    gap: .25rem;
    height: 1rem;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;


  background: white !important;
  color: black;
  border: 0.04rem solid black;
  border-radius: .3rem;
  padding: 0;
}

.achievement-summary {
    width: 1.6rem;
    text-align: left;
    white-space: nowrap;
    margin-right: auto;
    margin-left: auto;
  
  font-family: Nunito, sans-serif;
  font-size: 0.36rem;
  cursor: pointer;
}
.achievement-summary:hover {
  color: #444;
}

.achievement-sort {
    width: 3.4rem;
    text-align: right;
    white-space: nowrap;

  font-family: Nunito, sans-serif;
  font-size: 0.36rem;
  cursor: pointer;
}

.achievement-sort:hover {
  color: #444;
}
.achievement-link {
    width: 6.5rem;
    text-align: left;
    font-family: Nunito, sans-serif;
    font-size: 0.36rem;
    cursor: pointer;
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
}
.achievement-link-nohover {
    width: 6.5rem;
    text-align: left;
    font-family: Nunito, sans-serif;
    font-size: 0.36rem;
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
}
.achievement-link:hover {
  color: #444;
}

.game-list-sort {
    height: 0.5rem;
    vertical-align: middle;
    width: 3.8rem;
    margin-left: auto;
    text-align: right;
    letter-spacing: -0.01rem;
    
    font-family: Nunito, sans-serif;
    font-size: 0.38rem;
    cursor: pointer;
}
.game-list-sort:hover {
  color: #444;
}
.game-list-link {
    height: 0.5rem;
    vertical-align: middle;
    text-align: center;
    letter-spacing: -0.01rem;
    font-family: Nunito, sans-serif;
    font-size: 0.38rem;
    cursor: pointer;
}
.game-list-link:hover {
  color: #444;
}

.game-list-footer {
    padding: .05rem;
    gap: .2rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    background: #888 !important;
    color: #eee;
    border: 0.03rem solid black;
    border-radius: .3rem;
}

.game-list-text {
    vertical-align: middle;
    text-align: center;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
    font-family: Nunito, sans-serif;
    font-size: 0.35rem;
}
.game-list-back {
    height: 0.5rem;
    vertical-align: middle;
    letter-spacing: -0.01rem;
    width: 3.8rem;
    text-align: left;

    font-family: Nunito, sans-serif;
    font-size: 0.38rem;
    cursor: pointer;
}
.game-list-back:hover {
  color: #444;
}

.hello-code-card {
    background: #f5f1e8;
    width: 11rem;
    font-family: Naripho;
    font-size: 1.2rem;
    border: .06rem solid black;ff00ff;
    border-radius: .3rem;
    box-shadow: inset 0 0 0 0.04rem #e0e0e0;
    padding: 0;
    margin: 0 auto 0 auto;
}

.hello-code-input {
    font-family: SquidgySweets, sans-serif;
    height: 1.2rem;
    width: 3.8rem;
    font-size: 1.2rem;
    border: 0.06rem solid black;
    border-radius: 0.12rem;
    outline: none;
    -webkit-appearance: none;
    padding-left: 0.1rem;
    padding-right: 0;
    vertical-align: middle;    
}
.hello-code-input::placeholder {
    text-align: center;
    padding: 0;
}

.hello-code-input:focus {
    box-shadow: inset 0 0 0 0.04rem black;
}

.hello-code-submit {
    vertical-align: middle;    
    height: 1.2rem;
    line-height: .9rem;
    justify-content: center;
    align-items: center;
    width: 1.9rem;
    font-family: SquidgySweets, sans-serif;
    font-size: 1.2rem;
    text-align: center;
    border: 0.06rem solid black;
    border-radius: 0.12rem;
    outline: none;
    background: white;
    color: black !important;
}

.hello-code-submit:disabled {
    background: #ccc;
    color: #666 !important;
}

.hello-code-submit:active {
  background: #888 !important;
    box-shadow: inset 0 0 0 0.04rem black;
}


.hello-code-submit:focus-visible {
    box-shadow: inset 0 0 0 0.04rem black;
  background: white;
}

.hello-code-submit:hover {
    box-shadow: inset 0 0 0 0.04rem black;
    /*background: #ddd;*/
}


