body { padding: 0; margin: 0 }

#custom-loading-screen {
  position: fixed;
  z-index: 10000;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  /* background-color: rgba(0, 0, 0, 0.8); Optional: dark background */
}



.custom-loading-text {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 100%;
  color: white;
  font-family: 'Liberation-sans', sans-serif;
  box-sizing: border-box;
}

/* All three sections take ~30% each and are centered */
.top-section{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 33%; /* Keep them equally balanced */
  padding: 10px;
  box-sizing: border-box;
  transform: translateY(4vh);
}


.middle-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 20%; /* Keep them equally balanced */
  padding: 10px;
  box-sizing: border-box;
}


.bottom-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 33%; /* Keep them equally balanced */
  padding: 10px;
  box-sizing: border-box;
  transform: translateY(-10vh);
}



.main-message {
  font-size: 30pt !important;
}

.sub-message {
  font-size: 22pt !important ;
  font-style: italic;
}

.sub-message span {
  font-size: 30pt !important;
  margin-top: 5px;
}


/* ✅ Portrait Mode (Perfect Already) */
@media (max-width: 600px) and (orientation: portrait) {
  .main-message {
    font-size: 30pt ;
  }

  .sub-message {
    font-size: 30pt;
  }

  .sub-message span {
    font-size: 22pt;
  }
}

/* ✅ Landscape Mobile: Widen fonts and rebalance spacing */
@media (max-width: 1124px)  {
  .main-message {
    font-size: 20pt !important;
  }

  .sub-message {
    font-size: 15pt !important;
  }

  .sub-message span {
    font-size: 20pt !important;
  }


  .bottom-section {
    max-height: 30%;
     transform: translateY(-4vh);
  }

    .top-section{
    max-height: 33%;
    transform: translateY(-2vh);
  }
}

        /* Tiny screens optimization */
        @media (max-width: 400px) and (orientation: portrait) {
            .main-message {
                font-size: 5.5vw;
            }

            .sub-message {
                font-size: 4vw;
            }

            .sub-message span {
                font-size: 4.5vw;
            }
        }


#unity-container { position: fixed; width: 100%; height: 100%; }
#unity-canvas {
    width: 100%;
    height: 100%;
    /* juste  delete those  background-color and background-image:  and uncomment  the other lines */
    background: url('../img/aa.jpg') no-repeat center center;
    background-color: #ffffff;
    background-size: cover;
}
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; z-index: 999999; }
/*#unity-logo { width: 154px; height: 130px; background: url('Icon.png') no-repeat center }*/
#unity-progress-bar-empty { margin-left: auto; margin-right: auto; width: 141px; height: 18px; margin-top: 10px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }

/*Web Overlay Styles*/
.cooperate-overlay {
    font-family: 'Liberation-sans', sans-serif !important;
}

.cooperate-overlay h1,
.cooperate-overlay h2,
.cooperate-overlay h3,
.cooperate-overlay h4,
.cooperate-overlay h5,
.cooperate-overlay h6 {
    font-family: 'Liberation-sans', sans-serif;
    color: white;
    margin: 0;
}

.cooperate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none !important;
}

.cooperate-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    height: calc(100% - 40px);
}

.cooperate-overlay .text, .cooperate-overlay .logo {
    pointer-events: none;
}

.cooperate-overlay .text {
    background-color: #00378190;
    opacity: .8;
    font-size: 10pt;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin: 0;
}

.cooperate-overlay .top {
    position: fixed;
    top: 0 !important;
}

.cooperate-overlay .bottom {
    position: fixed;
    bottom: 0 !important;
}

.cooperate-overlay *.left {
    left: 0 !important;
}

.cooperate-overlay *.right {
    right: 0 !important;
}

.cooperate-overlay .logo {
    position: absolute;
    width: 100px;
}

.cooperate-overlay .hamburger-menu-toggle {
    pointer-events: all !important;
    background: #00378180;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: block;
    width: 50px;
    height: 50px;
}

.cooperate-overlay .hamburger-menu-toggle .burger-icon {
    /*center*/
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cooperate-overlay .hamburger-menu-option-list {
    pointer-events: all !important;
    /*// Below the hamburger menu toggle*/
    position: absolute;
    /*display: block;*/
    display: none;
    top: 60px;
    background-color: #00378180;
    color: white;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    width: 150px;
    z-index: 10000;
    right: 0;
}

.cooperate-overlay .hamburger-menu-option-list.open {
    display: block;
}

.cooperate-overlay .hamburger-menu-option-list .option {
    pointer-events: all !important;
    color: white;
    font-size: 14pt;
    display: block;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    width: 150px;
    border: none;
    background: transparent;
    transition: all .1s ease;
}

.cooperate-overlay .hamburger-menu-option-list .option:hover,
.cooperate-overlay .hamburger-menu-option-list .option.active {
    background-color: #0050a0;
    transition: background-color 0.1s ease;
}

.cooperate-overlay .hamburger-menu-option-list .option + .option {
    margin-top: 10px;
}

.cooperate-overlay .play-btn-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    left: 20px;
    position: absolute;
}

.cooperate-overlay .hamburger-menu-content-div {
    display: none;
    backdrop-filter: blur(5px);
    background-color: #00378180;
    color: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: absolute;
    /*// Left side of the option list (hamburger menu)*/
    right: calc(150px + 10px + 20px); /* 150px is the width of the option list, 10px is padding*/
    top: 60px;
    width: 200px;
    z-index: 10000;
    pointer-events: all !important;

    overflow-x: hidden !important;

    scrollbar-width: thin; /* „auto“ | „thin“ | „none“ */
    scrollbar-color: transparent /* Daumen-Farbe */ transparent;
}

.cooperate-overlay .hamburger-menu-content-div::-webkit-scrollbar {
    width: 1px;
}

.cooperate-overlay .hamburger-menu-content-div::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

.cooperate-overlay .hamburger-menu-content-div::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

.cooperate-overlay .hamburger-menu-content-div::-webkit-scrollbar-track {
    background: transparent;
}

.cooperate-overlay .hamburger-menu-content-div::-webkit-scrollbar-track:hover {
    background: rgba(0, 0, 0, 0.1);
}

.cooperate-overlay .hamburger-menu-content-div.open {
    display: block;
}

.cooperate-overlay .hamburger-menu-content-div .hamburger-menu-title {
    font-size: 36pt;
    margin-bottom: 20px;
}

.cooperate-overlay .hamburger-menu-content-div .hamburger-menu-subtitle {
    font-weight: lighter;
    font-size: 22pt;
}

.cooperate-overlay .hamburger-menu-content-div[data-size='sm'] {
    /*height: 250px;*/
    /*width: 275px;*/
    width: 20%;
    height: 40vh;
}

.cooperate-overlay .hamburger-menu-content-div[data-size='lg'] {
    width: 70%;
    height: auto;
    max-height: 40vh;
    overflow-y: scroll;
}

.cooperate-overlay a {
    color: white;
    text-decoration: none;
    pointer-events: all !important;
}

.cooperate-overlay .hamburger-menu-content-div .hamburger-menu-subtitle a {
    text-decoration: underline;
    font-weight: 200;
    pointer-events: all !important;
}

/* Mobile styles (horizontal)*/
@media (max-width: 1124px) {
    .cooperate-overlay .hamburger-menu-content-div .hamburger-menu-title {
        font-size: 24pt;
    }

    .cooperate-overlay .hamburger-menu-content-div .hamburger-menu-subtitle {
        font-size: 16pt;
    }

    .cooperate-overlay .hamburger-menu-content-div .hamburger-menu-subtitle.smaller {
        font-size: 16pt !important;
    }
}

@media (max-height: 800px) {
    .cooperate-overlay .hamburger-menu-content-div[data-size='lg'] {
        width: 55vw;
    }

    .cooperate-overlay .hamburger-menu-content-div .hamburger-menu-title {
        font-size: 24pt;
    }

    .cooperate-overlay .hamburger-menu-content-div .hamburger-menu-subtitle {
        font-size: 16pt;
    }
}

/* Portrait Mode mobile */
@media (max-width: 600px) and (orientation: portrait) {
    html, body {
        margin: 0;
        padding: 0;
        height: 100%;
        overflow: hidden;
    }

    #unity-container, canvas {
        width: 100vw;
        height: 100vh;
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .cooperate-overlay .hamburger-menu-content-div {
        top: 240px;
        height: 49vh !important;
        max-height: 49vh !important;
        overflow-y: auto;
        z-index: 10;
    }

    .cooperate-overlay .hamburger-menu-content-div[data-size="lg"],
    .cooperate-overlay .hamburger-menu-content-div[data-size="sm"] {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: 76%;
    }
}

