body { 
  padding: 0; 
  margin: 0;
}

.main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

#unity-container { 
  position: relative;
}

#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 { 
  background: url('TemplateData/background_girl.jpg') center / cover no-repeat;
  background-size: cover;
}

.unity-mobile #unity-canvas { 
  width: 100%; 
  height: 100%;
}

#unity-loading-bar { 
  position: absolute; 
  left: 50%; 
  bottom: 10px; 
  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: 1066px; 
  height: 6.66px; 
  margin-top: 0px; 
  margin-left: -533px; 
  background: url('progress-bar-back.png') no-repeat center;
}

#unity-progress-bar-full { 
  border-radius: 10px; 
  width: 0%; 
  height: 6.66px; 
  margin-top: 0px; 
  margin-left: 0px; 
  background: url('progress-bar-front.png') no-repeat center;
}

#unity-footer { 
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin-top: 30px;
}

.unity-mobile #unity-footer { 
  display: block;
  width: 100%;
  margin-top: 20px;
}

#unity-logo-title-footer { 
  float:left; 
  width: 102px; 
  height: 38px; 
  background: url('unity-logo-title-footer.png') no-repeat center;
}

#unity-build-title { 
  float: right; 
  margin-right: 10px; 
  line-height: 38px; 
  font-family: arial; 
  font-size: 18px;
}

#unity-fullscreen-button { 
  cursor:pointer; 
  float: right; 
  width: 24px; 
  height: 24px; 
  background: url('fullscreen-button.png') no-repeat center;
}

#unity-warning { 
  position: absolute; 
  left: 50%; 
  top: 5%; 
  transform: translate(-50%); 
  background: white; 
  padding: 10px; 
  display: none;
}

/* ���������� ����� ��� ��������� */
@media (max-width: 768px) {
  .main-container {
    padding: 10px 0;
    justify-content: flex-start;
  }
  
  #unity-footer {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 5px 0;
  }
  
  #unity-footer {
    margin-top: 15px;
  }
}


#unity-canvas {
  object-fit: contain;
}

/* ��� �������������� ������ */
:fullscreen #unity-canvas {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

:-webkit-full-screen #unity-canvas {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

:-moz-full-screen #unity-canvas {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* age verification */
.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 { margin-top: 20px; color: #ccc; font-size: 18px; }
.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;
}
#login-submit-btn {
    margin-top: 20px; height: auto;
}
#login-errors {
    color: red; font-size: 15px;
}
#age-login-form {
    display: none; width: 100%;
}

/* webgl support */

.webgl-error-container {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    background: #0b0708;
    z-index: 10000;
}
.webgl-error-screen {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: #0b0708;
    text-align: center;
}
.webgl-error-bk {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000 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;
}
.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 ul {
    margin-top: 20px;
    margin-left: 0px;
    text-align: left;
    font-size: 18px;
    color: #ccc;
}
.webgl-error-body .form li { margin-bottom: 6px; }
.webgl-error-body .form .btn-agree {
    display: block;
    width: 40%;
    height: 45px;
    margin: 80px auto 0;
    border-radius: 15px;
    background-color: #c8341a;
    box-shadow: inset 0 0 15px #ffae94;
    line-height: 45px;
    padding: 10px;
    text-shadow: 0 0 5px #74103b;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.webgl-error-body .form .btn-agree:hover {
    transform: scale(1.05);
    background-color: #d83a1d;
}
