*, *::before, *::after {
    font-family: 'Vazirmatn', sans-serif !important;
}

html, body {
    /*background-color: #000;*/
	background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.ctaDiv {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /*background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);*/
	background: transparent;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#unity-container {
    position: absolute
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

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

#unity-canvas {
    /* background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%); */
	background: transparent;
}

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

.ctaDiv, #unity-loading-bar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%); */
	background: transparent;
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    /* Remove justify-content: space-between */
}

#unity-loading-bar {
    z-index: 998; /* Slightly lower than ctaDiv */
}

#unity-logo {
    width: 154px;
    height: 130px;
    background: url('unity-logo-light.png') no-repeat center
}

#loading-animation {
    text-align: center;
    margin-bottom: 8px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #E7F2F8;
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
}

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

#unity-progress-bar-empty {
    width: 200px;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
	position: absolute;
    bottom: 20vh;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    border-radius: 4px;
    transition: width 0.3s ease;
}

#download-info {
    color: #d4af37;
    font-size: 14px;
    margin-top: 13px;
	position: absolute;
    bottom: 14vh;
}

.loading-item {
    display: flex;
    justify-content: center;
    align-items: center;
	position: absolute;
    bottom: 22vh;
}

.horizontal-center {
    width: 100%;
}

#unity-footer {
    position: relative
}

.unity-mobile #unity-footer {
    display: none
}

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

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

#unity-fullscreen-button {
    float: right;
    width: 38px;
    height: 38px;
    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
}

.spinner {
    width: 70.4px;
    height: 70.4px;
    --clr: rgb(247, 197, 159);
    --clr-alpha: rgb(247, 197, 159,.1);
    animation: spinner 1.6s infinite ease;
    transform-style: preserve-3d;
    margin-top: 32px;
    margin-bottom: 40px;
}

.spinner > div {
    background-color: var(--clr-alpha);
    height: 100%;
    position: absolute;
    width: 100%;
    border: 3.5px solid var(--clr);
}

.spinner div:nth-of-type(1) {
    transform: translateZ(-35.2px) rotateY(180deg);
}

.spinner div:nth-of-type(2) {
    transform: rotateY(-270deg) translateX(50%);
    transform-origin: top right;
}

.spinner div:nth-of-type(3) {
    transform: rotateY(270deg) translateX(-50%);
    transform-origin: center left;
}

.spinner div:nth-of-type(4) {
    transform: rotateX(90deg) translateY(-50%);
    transform-origin: top center;
}

.spinner div:nth-of-type(5) {
    transform: rotateX(-90deg) translateY(50%);
    transform-origin: bottom center;
}

.spinner div:nth-of-type(6) {
    transform: translateZ(35.2px);
}

@keyframes spinner {
    0% {
        transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
    }

    50% {
        transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
    }

    100% {
        transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
    }
}

.btn {
    display: block;
    width: 250px;
    margin: 5px auto;
    padding: 20px 40px;
    background: url('large-button-box.png') no-repeat center;
    background-size: contain;
    color: #fff2cc;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none; /* Remove default button border */
    outline: none; /* Remove focus outline */
	position: absolute;
    bottom: 15vh;
}

.btn:hover {
    opacity: 0.8;
    transform: scale(1.15);
    color: #ffffff;
}

.btn:focus {
    outline: none;
    border: none;
}

.mute-btn {
    position: fixed;
    bottom: 50px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    padding: 8px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    backdrop-filter: blur(10px);
    outline: none;
    z-index: 2000;
}

.mute-btn:hover {
            background: rgba(0, 0, 0, 0.7);
            transform: scale(1.1);
        }

        .mute-btn:active {
            transform: scale(0.95);
        }

        .mute-btn.muted {
            background: rgba(255, 0, 0, 0.5);
        }

        .mute-btn.muted:hover {
            background: rgba(255, 0, 0, 0.7);
        }

        .btn-icon {
            font-size: 18px;
        }

/*
    .btn:hover {
        opacity: 0.95;
        background-color: transparent;
    }

    .btn .btn-animation {
        border-radius: 100%;
        animation: ripple 0.6s linear infinite;
    }
*/
@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1), 0 0 0 20px rgba(255, 255, 255, 0.1), 0 0 0 40px rgba(255, 255, 255, 0.1), 0 0 0 60px rgba(255, 255, 255, 0.1);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.1), 0 0 0 40px rgba(255, 255, 255, 0.1), 0 0 0 60px rgba(255, 255, 255, 0.1), 0 0 0 80px rgba(255, 255, 255, 0);
    }
}

/* =-=-=-=-=-=-=-=-= Language Selection Screen */
#languageSelectionDiv {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /*background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);*/
	background: transparent;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.lang-title {
	position: absolute;
    color: #d4af37;
    font-size: 28px;
    font-weight: bold;
    /*margin-bottom: 40px;*/
	top: 10vh;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.lang-btn {
    display: block;
    width: 250px;
    margin: 5px auto;
    padding: 20px 40px;
    background: url('large-button-box.png') no-repeat center;
    background-size: contain;
    color: #fff2cc;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none; /* Remove default button border */
    outline: none; /* Remove focus outline */
}

.lang-btn:hover {
    opacity: 0.8;
    transform: scale(1.15);
    color: #ffffff;
}

.lang-btn:focus {
    outline: none;
    border: none;
}

/* =-=-=-=-=-=-=-=-= Start Screen */
.start-content, .loading-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.app-title-wrapper {
	width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("title-background.png") no-repeat center;
    background-size: contain;
    background-position: center;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
}

.app-title {
    color: #1c443d;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 0 10px;
    z-index: 1;
	margin-left: 10px;
	margin-right: 10px;
}

.title-side-img {
    width: 48px;
    height: auto;
}

.title-side-img.left {
    margin-right: 10px;
	transform: scaleX(-1);
}

.title-side-img.right {
    margin-left: 10px;
}

.app-image {
	position: relative;
    width: 250px;
    height: 200px;
    /* margin-bottom: 170px; */
    display: flex;
    align-items: center;
    justify-content: center;
	right: 10px;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

#appOverlayImage {
    position: absolute;
    top: 60px;
    left: 0;
    width: 170px;   /* adjust size */
    height: 170px;  /* adjust size */
    border-radius: 10px;
    animation: slideRightLeft 3s linear infinite;
    pointer-events: none; /* so clicks pass through */
}

/* Animation to slide from left to right and back */
@keyframes slideRightLeft {
    0%   { left: 100px; }
    50%  { left: calc(100% - 100px); } /* move to right edge minus image width */
    100% { left: 100px; }
}

.app-description {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    max-width: 300px;
    margin-bottom: 20px;
	position: absolute;
    bottom: 26vh;
}

.credit-logo {
    position: fixed;
    bottom: 3vh;
    z-index: 1002;
}

.credit-text {
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}

.team-logo {
    color: #d4af37;
    font-size: 12px;
    font-weight: bold;
}

/* Language selector button */
.lang-selector {
	position: absolute;
    width: 250px;
	top: 20px;
    right: 20px;
    padding: 8px 15px;
    background: url('large-button-box.png') no-repeat center;
    background-size: contain;
    color: #fff2cc;
    font-size: 14px;
    font-weight: 600;
	z-index: 1001;
}

/* RTL support */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .lang-selector {
    left: 20px;
    right: auto;
}
/*
@media (max-height: 700px), (max-width: 400px) {
    .app-title, .loading-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .app-image, .loading-image {
        width: 150px;
        height: 150px;
        margin: 15px 0;
    }
    
    .app-description, .loading-description {
        font-size: 16px;
        margin: 20px 0;
        max-width: 280px;
    }
    
    .btn {
        font-size: 20px;
        padding: 12px 16px;
        margin: 15px 0;
    }
    
    .loading-elements {
        gap: 15px;
        margin-top: 15px;
    }
    
    .credit-logo {
        bottom: 10px;
        padding: 8px 15px;
    }
    
    .credit-text {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .team-logo {
        font-size: 14px;
    }
}
*/
