@font-face {
  font-family: "Source Sans Pro";
  src: url("source-sans-pro-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("source-sans-pro-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: "Source Sans Pro", Arial, sans-serif !important;
    color: white !important;
    height: 100%;
    overflow: hidden;
}

body {
    background: linear-gradient(#4f085e, #88217d) !important;
}

#unity-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    background: black;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6, p, span {
    font-family: 'Source Sans Pro', Arial, sans-serif !important;
}

#custom-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: linear-gradient(#4f085e, #88217d);
    display: flex;
    flex-direction: column;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* background: #5f0f66;
    border-bottom: 1px solid #5f0f66;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    z-index: 12;
}

.content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100% - 140px);
}

.start-container {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row, .qb--row {
    width: 100%; 
    transition: transform 0.3s ease;
}
.qb--row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.qb--mobile-only {
    display: none;
}
.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 12;
    padding: 10px 0;
}

.bottom-bar-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#unity-loading-bar {
    width: 255px; /* Reduced from 300px by 45px */
    margin: 0 auto 15px;
    padding: 0 15px;
}

.bottom-bar h5 {
    padding: 10px;
    font-weight: 400;
    font-size: 16px;
    margin: 0;
}

#unity-progress-bar-empty {
    width: 100%;
    height: 18px;
    background: rgba(255,255,255,0.3);
    border-radius: 20px;
    overflow: hidden;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
    transition: width 0.2s ease;
}

#start-game {
    padding: 8px 24px; /* Reduced from 14px 32px */
    font-size: 14px; /* Reduced from 16px */
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin: 10px auto 0; /* Reduced from 15px */
    display: inline-block;
    
    background-color: #999;
    color: #fff;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
}

#start-game.enabled {
    background-color: white;
    color: #88217d;
    opacity: 1;
    pointer-events: auto;
}


.icon-360 {
    width: 105px; /* Reduced from 150px by 45px */
    height: 105px; /* Reduced from 150px by 45px */
    background-size: contain;
    display: block;
}

.d-flex.align-items-center {
    justify-content: center;
    margin: 0; /* Reduced from 20px */
}
.qb-flex-360-icon {
    flex-direction: column;
}
.qb-flex-360-icon h2 {
    font-size: font-size: clamp(1.0rem, 0.8164rem + 0.5736vw, 1.6rem);
    padding: 0;
    margin: 0;
}
#heading {
    font-weight: 300;
    font-size: 
    margin-bottom: 15px; /* Reduced from 20px */
    padding: 15px; /* Reduced from 20px */
    text-align: center;
}
#heading span {
    white-space: nowrap;
}
.logo {
    position: fixed;
    width: 100%; /* Reduced from 150px by 30px */
    max-width: 232px;
    height: auto;
    margin: 1%; /* Reduced from 15px */
    justify-content: center;
}

.qb--howto-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-width: 50%;
}

.img-howto {

    height: auto;
    width: 100%;
    max-width: 360px;
}

@media (max-width: 992px) {
    .header {
        height: 50px;
    }

    .qb--row {
        position: relative;
    }

    .row {
        transform: scale(0.9);
    }
}


@media (max-width: 600px) {
    .row {
        transform: scale(0.8);
    }
    #heading {
        padding: 8px; /* Reduced from 10px */
    }
    .qb--desktop-only {
        display: none;
    }
    .qb--mobile-only {
        display: flex;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        overflow-y: scroll;
        height: 100%;
    }
    .qb--howto-block {
        flex-wrap: wrap;
    }
    .icon-360 {
        order: 2;
    }
    
    #start-game {
        padding: 7px 21px; /* Reduced from 10px 20px */
        font-size: 13px; /* Reduced from 14px */
    }
    
    .bottom-bar h5 {
        font-size: 13px; /* Reduced from 14px */
        padding: 0;
    }
}

@media (orientation: landscape) and (max-width: 991px){
    .container.start-container {
        max-width: 96% !important;
    }
    .header {
        height: 40px;
    }
    .start-container {
        height: 100vh;
    }
    .content-wrapper {
        height: auto;
    }
    .qb--desktop-only {
        display: none;
    }
    .qb--mobile-only {
        display: flex;
    }
    .qb--row {
        flex-direction: row;
        flex-wrap: nowrap !important;
        top: 10%;
    }
    .row {
        transform: scale(0.7);
    }
    
    #heading {
        font-size: clamp(1.2rem, 1.0164rem + 0.5736vw, 1.8rem);
        margin-bottom: 8px; /* Reduced from 10px */
        padding: 8px; /* Reduced from 10px */
    }
    .qb-flex-360-icon h2 {
        font-size: clamp(1.0rem, 0.8164rem + 0.5736vw, 1.6rem);
    }
    .d-flex.align-items-center {
        margin: 8px 0; /* Reduced from 10px */
    }
    
    .col-sm-6 {
        padding: 3px !important; /* Reduced from 5px */
    }
    
    #unity-loading-bar {
        width: 200px; /* Reduced from 250px by 45px */
        margin: auto;
    }
    
    .bottom-bar {
        padding: 12px 0; /* Reduced from 10px */
    }
    .bottom-bar-content {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .bottom-bar h5 {
        font-size: 12px; /* Reduced from 12px */
        padding: 0; /* Reduced from 5px */
    }
    
    #start-game {
        padding: 4px 12px; /* Reduced from 6px 16px */
        font-size: 12px; /* Reduced from 12px */
        margin-top: 0; /* Reduced from 5px */
    }
}

@media (orientation: landscape) and (max-width: 690px) {

    
    .row {
        transform: scale(0.6);
    }
    
    .d-flex.align-items-center {
        margin: 3px 0; /* Reduced from 5px */
    }
    /*
    .icon-360 {
        width: 0px;
        height: 0px; 
        display: none;
    }
    */
}
