html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
}
canvas {
    display: block;
}
body {
    margin: 0;
}
#cover {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100vh;
}
#unity-container {
    width: 100%;
    height: 100%;
}
#unity-canvas {
    width: 100%;
    height: 100%;
    background: #141822;
}
#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#unity-logo {
    text-align: center;
}
#unity-logo img {
    max-width: 80%;
}
#unity-progress-bar-empty {
    width: 50%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    padding: 2px;
}

@media screen and (max-widht: 786px) {
    #unity-progress-bar-empty {
        width: 70%;
    }
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
}
.light #unity-progress-bar-empty {
    border-color: black;
}
.light #unity-progress-bar-full {
    background: black;
}

#unity-fullscreen-button {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}

.spinner,
.spinner:after {
  border-radius: 50%;
  width: 5em;
  height: 5em;
}
.spinner {
  margin: 10px;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid #ffffff;
  transform: translateZ(0);
  animation: spinner-spin 1.1s infinite linear;
}
@keyframes spinner-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.portrait-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 33, 51, 0.2) 0%, rgba(19, 31, 39, 0.2) 100%);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    text-align: center;
    padding: 20px;
    gap: 30px;
}

.portrait-overlay.visible {
    display: flex;
}

.portrait-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
}

.portrait-overlay__icon {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.portrait-overlay__phone {
    width: 120px;
    height: 180px;
    background: white;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    animation: rotate-phone 3s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.portrait-overlay__phone::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.portrait-overlay__phone::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 50%;
}

.portrait-overlay__message {
    margin-top: 30px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #f0f0f0;
    font-weight: 300;
}

@keyframes rotate-phone {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .portrait-overlay__icon {
        width: 150px;
        height: 150px;
    }

    .portrait-overlay__phone {
        width: 90px;
        height: 140px;
    }

    .portrait-overlay__message {
        font-size: 1rem;
    }
}   