@font-face {
    font-family: IRANSans;
    src: url(./fonts/iransans/IRANSansWeb.woff) format('woff'),
    url(./fonts/iransans/IRANSansWeb.ttf) format('truetype');
    font-weight: 400;
    font-display: swap;
}

body, button {
    font-family: IRANSans, tahoma !important;
}

.header {
    position: absolute;
    font-family: IRANSans, tahoma;
    color: white;
    background-color: rgba(18, 50, 113, 1);
    text-align: center;
    width: 100%;
    top: 0;
    right: 0;
    left: 0;
    box-sizing: border-box;
}

.red-circle-live {
    margin: 0px 8px;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    background-color: red;
    direction: rtl;
    display: inline-block;
}

.title-live {
    font-family: BYekan, 'BYekan', IRANSans, IRANSans, tahoma;
    display: inline-block;
}

@media (max-width: 400px) {
    .title-live {
        font-size: 1.7rem;
    }
}

.container {
    top: 100px;
    right: 0;
    left: 0;
    position: absolute;
    width: 100%;
    padding: 2% 5%;
    text-align: center;
    box-sizing: border-box;
}

.container iframe {
    width: 100%;
    height: 100vh;
}

/* Styles for the login modal */
#loginModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    padding-top: 60px;
}

#loginModalContent {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    position: relative;
}

#loginModal input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#loginModal button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #c9b46e;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

#loginBtn {
    width: 100%;
    padding: 20px;
    margin-top: 100px;
    font-size: 24px;
    background-color: #ececec;
    color: black;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 300px;
    display: none;
}

#loginBtn:hover {
    background-color: #cfcfcf;
}

#loginModal button:hover {
    background-color: #c9b46e;
}

#phoneNumber {
    direction: ltr;
}

#otpCode {
    direction: ltr;
}

#closeModal {
    font-size: 30px;
    color: #000;
    cursor: pointer;
}

#closeModal:hover {
    color: red;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

video::-webkit-media-controls {
    display: none !important;
}

#videoContainer {
    position: relative;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #c9b46e;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.video-container {
    position: relative;
    direction: ltr;
    width: 100%;
    max-width: 600px;
    margin: auto;
    text-align: center;
}

video {
    width: 100%;
    height: auto;
    display: block;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 10px;
    color: white;
    flex-wrap: wrap;
}

.controls .left-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: red;
    box-shadow: 0 0 10px red;
    animation: livePulse 1.5s infinite;
}

.volume-icon {
    cursor: pointer;
    font-size: 18px;
}

.fullscreen-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

@keyframes livePulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 10px red;
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 5px red;
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 10px red;
    }
}

@media (max-width: 768px) {
    .controls {
        flex-direction: row;
        justify-content: space-between;
    }
}

.play-video {
    position: absolute;
    top: 28%;
    right: 0;
    left: 0;
}

.logout-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: IRANSans, tahoma;
    border: none;
    background: none;
}

.logout-btn:hover {
    color: rgb(236, 9, 55);
}

#country-code {
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 20%;
    direction: ltr;
}

/* اضافه کردن حالت دارک مود */
:root {
    --background-color: #121212;
    --text-color: #ffffff;
    --header-background: rgba(18, 50, 113, 1);
    --button-background: #333;
    --button-text-color: #ffffff;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.header {
    background-color: var(--header-background);
}

button {
    background-color: var(--button-background);
    color: var(--button-text-color);
}


.card{
    background-color: #1f1f1f !important;
    color: white !important;
}

/* استایل برای حالت روشن که باید بدون تغییر باقی بماند */
.light-mode {
    background-color: #ffffff;
    color: #000000;
}

.light-mode .card{
    background-color: #ececec!important;
    color: black!important;
}

.light-mode .header {
    background-color: rgba(18, 50, 113, 1);
    color: white;
}

.light-mode button {
    background-color: #ececec;
    color: black;
}

/* دکمه تغییر حالت دارک مود */
#themeToggle {
    position: absolute;
    top: 24px;
    right: 10px;
    padding: 10px;
    cursor: pointer;
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

#google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    color: black;
    margin-top: 10px;
    padding: 6px;
    border-radius: 5px;
}

#google-login-btn img {
    margin-left: 6px;
    width: 30px;
    height: 30px;
}
