:root {
  --panel-width: 560px;
  --panel-height: 505px;
  --panel-border: 28px;
  --panel-bg: #000;
  --panel-stroke: #070b19;
  --text-color: #fff;
  --link-hover: #5c7ba3;
  --shadow-color: #333;
  --scroll-thumb: #142e67;
  --scroll-stroke: #09204f;
}

@font-face {
  font-family: "Old English";
  src: url("assets/fonts/OLDENGL.TTF") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Ancient Medium";
  src: url("assets/fonts/Ancient Medium.ttf") format("truetype");
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  padding: 60px 16px 72px;
  position: relative;
  background: url("assets/background/bg-blue-01.jpg") top center repeat;
  color: var(--text-color);
}

a {
  color: var(--text-color);
}

a:hover {
  color: var(--link-hover);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#outer-lace {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--panel-width);
  max-width: 100%;
  border: var(--panel-border) solid #000;
  border-image: url("assets/borders/lace-bdr-08.png") 40 round;
}

#container {
  position: relative;
  min-height: var(--panel-height);
  padding: 20px 42px 16px;
  background-color: var(--panel-bg);
  border: 2px solid var(--panel-stroke);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#halt {
  margin: 0 0 10px;
  font-family: "Ancient Medium", serif;
  font-size: 7rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-color);
}

#main-text {
  max-width: 24rem;
  margin: 0 auto 4px;
  font-size: 23px;
  line-height: 1.3;
}

#main-text p {
  margin: 0;
}

#small-text {
  margin-top: 0;
  margin-bottom: 0;
  max-width: 22rem;
  font-size: 15px;
}

#small-text p {
  margin: 0;
}

#enter {
  display: block;
  width: 145px;
  height: 110px;
  margin: 18px auto 14px;
  cursor: pointer;
  background: url("assets/button/button-09.png") no-repeat center / contain;
}

#enter:hover {
  background-image: url("assets/button/button-10.png");
}

#chiikawa {
  position: absolute;
  top: 390px;
  left: calc(100% - 120px);
  width: 320px;
  height: 250px;
  background: url("assets/nagano/chiikawa-21.png") no-repeat center / contain;
}

#topborder {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  height: 30px;
  background-image: url("assets/lace/hrz-lace-11.png");
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 30px;
}

#bottomborder {
  position: fixed;
  right: 0;
  bottom: 20px;
  z-index: 10;
  width: 100%;
  height: 30px;
  background-image: url("assets/lace/hrz-lace-11.png");
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: auto 30px;
  transform: scaleY(-1);
  transform-origin: center;
}

#bottomtext {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 11;
  width: 100%;
  height: 22px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 3px;
  color: var(--text-color);
  text-shadow: -1px 0 var(--shadow-color), 0 1px var(--shadow-color), 1px 0 var(--shadow-color), 0 -1px var(--shadow-color);
  pointer-events: none;
}

::-webkit-scrollbar {
  width: 4px;
  height: 10px;
  background: #000;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 1px solid var(--scroll-stroke);
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  border: 1px solid var(--scroll-stroke);
  border-radius: 10px;
}

@media (max-width: 900px) {
  #chiikawa {
    display: none;
  }
}

@media (max-width: 700px) {
  body {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  #outer-lace {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(var(--panel-width), calc(100vw - 32px));
    border-width: 18px;
    margin: 0 auto;
  }

  #container {
    min-height: auto;
    padding: 18px 16px 22px;
  }

  #halt {
    margin-bottom: 12px;
    font-size: 5.5rem;
  }

  #main-text {
    max-width: 24rem;
    font-size: 18px;
  }

  #small-text {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  #outer-lace {
    width: min(var(--panel-width), calc(100vw - 24px));
    border-width: 14px;
  }

  #halt {
    font-size: 4.75rem;
  }

  #main-text {
    font-size: 17px;
  }
}
