body { 
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh; 
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;     
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow: auto; 
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80% !important; 
  max-width: 1440px;
  height: auto; 
  margin: 0 auto;
  box-sizing: border-box;
}

#unity-container { 
  position: relative;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  margin-top: auto;
}

#unity-container.unity-desktop { 
  left: auto; 
  top: auto; 
  transform: none;
  margin: 0 auto;
}

#unity-container.unity-mobile { 
  position: fixed; 
  width: 100%; 
  height: 100%;
}

#unity-canvas { 
  width: 100% !important;
  height: 100% !important;
  background: url('TemplateData/background_girl.jpg') center / cover no-repeat;
  background-size: cover;
  display: block;
}

#unity-canvas:focus {
  outline: none;
}

.unity-mobile #unity-canvas { 
  width: 100%; 
  height: 100%;
}

:fullscreen #unity-canvas,
:-webkit-full-screen #unity-canvas,
:-moz-full-screen #unity-canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  background-color: black !important; 
}

:fullscreen #unity-container,
:-webkit-full-screen #unity-container {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: black !important;
}

#unity-loading-bar { 
  position: absolute; 
  left: 50%; 
  bottom: 25px; 
  display: none;
}

#unity-logo { 
  width: 154px; 
  height: 130px; 
  background: url('unity-logo-dark.png') no-repeat center; 
}

#unity-progress-bar-empty { 
  border-radius: 10px; 
  width: 1020px; 
  height: 18px; 
  margin-top: 0px; 
  margin-left: -510px; 
  background: url('progress-bar-back.png') no-repeat center;
}

#unity-progress-bar-full { 
  border-radius: 10px; 
  width: 0%; 
  height: 18px; 
  margin-top: 0px; 
  margin-left: 1px; 
  background: url('progress-bar-front.png') no-repeat center;
}

#unity-footer { position: relative; width: 100%; margin-top: 5px; height: 38px; }
#unity-fullscreen-button { 
  float: right; 
  width: 24px; 
  height: 24px; 
  background: url('fullscreen-button.png') no-repeat center; 
  background-size: contain;
  cursor: pointer;
}

#unity-warning { 
  position: absolute; 
  left: 50%; 
  top: 5%; 
  transform: translate(-50%); 
  background: white; 
  padding: 10px; 
  display: none; 
}

.age-screen-container {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    margin: auto;
    background: #0b0708;
    z-index: 10000;
}
.age-screen-container--show { display: block; }
.age-screen {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0; top: 0;
    background: #0b0708;
    text-align: center;
    align-items: center;
    justify-content: center;
}
.age-screen p a { color: orange; }
.age-bk {
    display: block; position: absolute; width: 100%; height: 100%;
    background: #000000 url('age_back.jpg') no-repeat center top;
    background-size: cover;
    box-shadow: inset 0 0 25px #0c0807, inset 0 0 50px #0c0807, inset 0 0 75px #0c0807, inset 0 0 100px #0c0807;
}
.age-body {
    position: absolute; width: 600px; height: 100%;
    box-shadow: inset 0 0 150px #1f1d33, 0 0 20px #000000;
    text-align: center; color: #ddd; font-size: 20px; display: flex;
    background: #000000 url('age_fill.jpg') no-repeat center top;
    background-size: cover; align-items: center;
}
.age-body .form { padding: 20px; line-height: 26px; }
.age-body .form t1 { font-size: 30px; font-weight: bold; display: block; line-height: 40px; margin-top: 5px; }
.age-body .form .btn-agree {
    display: block; width: 70%; height: 80px; margin: auto; margin-top: 90px;
    border-radius: 15px; background-color: #c8341a; box-shadow: inset 0 0 15px #ffae94;
    line-height: 35px; padding: 10px; text-shadow: 0 0 5px #74103b; cursor: pointer; color: #fff;
}
.age-body .form .btn-not-agree { margin-top: 20px; color: #ccc; font-size: 18px; text-decoration: underline; cursor: pointer; }
.age-body .form .btn-login { margin-top: 20px; margin-bottom: 20px; color: #ccc; font-size: 18px; text-decoration: underline; cursor: pointer; }
.age-body .form input {
    box-sizing: border-box; display: block; width: 420px; height: 40px; margin: 10px auto;
    border-radius: 15px; border: none; padding: 0 15px; font-size: 18px;
}
.age-body .form, .age-body .form a:link, .age-body .form, .age-body .form t3 a { color: #ddd; }
#age-confirmation-message {
    display: none;
    color: white;
    background: #00000077 2px;
    z-index: 1;
    padding: 10px 20px;
    border-radius: 5px;
    user-select: text;
    max-width: 700px;
}

.page-footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #ddd;
}
.page-footer a { color: #fff; text-decoration: none; margin: 0 10px; }
.page-footer p { margin: 5px 0; }

.webgl-error-container {
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    background: #0c0807; display: flex; align-items: center; justify-content: center;
    z-index: 100; box-shadow: inset 0 0 75px #0c0807, inset 0 0 100px #0c0807;
}
.webgl-error-body {
    position: absolute; width: 600px; height: 100%;
    box-shadow: inset 0 0 150px #1f1d33, 0 0 20px #000;
    text-align: center; color: #ddd; font-size: 20px; display: flex;
    align-items: center; justify-content: center;
    background: #000 url('age_fill.jpg') no-repeat center top;
    background-size: cover;
}
.webgl-error-body .form { padding: 20px; line-height: 26px; width: 100%; }
.webgl-error-body .form t1 { font-size: 30px; font-weight: bold; display: block; line-height: 40px; margin-top: 5px; }
.webgl-error-body .form t3 { display: block; margin-top: 10px; color: #ccc; font-size: 18px; }
.webgl-error-body .form .error-message {
    margin-top: 20px; padding: 10px;
    background: rgba(255,0,0,0.1); border: 1px solid rgba(255,0,0,0.2);
    border-radius: 5px; font-family: monospace; font-size: 14px;
    color: #ff8888; text-align: left; white-space: pre-wrap;
    max-height: 150px; overflow-y: auto;
}
