.rtl {
    direction: rtl !important;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/vazir/Vazir.eot');
    src: url('../fonts/vazir/Vazir.eot?#iefix') format('embedded-opentype'),
    url('../fonts/vazir/Vazir.woff') format('woff'),
    url('../fonts/vazir/Vazir.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/vazir/Vazir-Bold.eot');
    src: url('../fonts/vazir/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
    url('../fonts/vazir/Vazir-Bold.woff') format('woff'),
    url('../fonts/vazir/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/vazir/Vazir-Light.eot');
    src: url('../fonts/vazir/Vazir-Light.eot?#iefix') format('embedded-opentype'),
    url('../fonts/vazir/Vazir-Light.woff') format('woff'),
    url('../fonts/vazir/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
}

.container {
    width: 90%;
    margin: 0 auto;
}

.dropdown-bg{
    background-color: #374151;
}

.logo{
    width: 180px;
    max-width: none;
    height: 180px;
}

h1{
    color: white;
}

h2{
    color: white;
}

.vazir{
    font-family: Vazir, serif !important;
}

.blue{
    color: #00e5ff;
}

.white{
    color: white !important;
}

.black{
    color: black !important;
}

footer {
    margin-top: auto;
}

.w-100{
    width: 100% !important;
}

.w-80{
    width: 80% !important;
}

.w-90{
    width: 90% !important;
}

.w-70{
    width: 70% !important;
}

.w-60{
    width: 60% !important;
}

.w-50{
    width: 50% !important;
}

.w-40{
    width: 40% !important;
}

.w-45{
    width: 45% !important;
}

.w-30{
    width: 30% !important;
}

.guest-width{
    width: 30%;
}

.radius-15{
    border-radius: 15px !important;
}

.justify-around{
    justify-content: space-around;
}

.text-r{
    text-align: right !important;
}

.bg-image{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    background-image: url("../images/swimmer.jpg");
    width: 100%;
    height: 600px; /* Set your desired height */
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.8);
}

.bg-image::before {
    content: "";
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Adjust the alpha value for transparency */
}

.homepage-title{
    position: relative;
    color: white;
    font-size: 90px;
    z-index: 2!important;
}

.striped-table {
    width: 100%;
    border: 2px solid white;
    border-collapse: collapse;
    border-radius: 20px;
}

.striped-table th,
.striped-table td {
    padding: 8px;
    color: white;
    border: 1px solid #ddd;
}

.striped-table tbody tr:nth-child(odd) {
    background-color: #111827;
    color: white;
}

.striped-header-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 20px;
}

.striped-header-table th,
.striped-header-table td {
    padding: 8px;
    text-align: center;
}

.striped-header-table tbody tr:nth-child(odd) {
    background-color: #111827;
}

.information-row{
    display: flex;
    justify-content: space-between;
}

.information-row .information-section{
   width: 49% !important;
}

.information-card{
    color: white;
}

.information-card .header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid white;
    color: white;
}

.information-card .body-row{
    display: flex;
    padding: 5px;
}

.information-card .body-row .body-column{
    width: 50%;
    display: flex;
}

.information-card .body-row .body-column .key{
    padding-left: 15px;
    font-weight: bold;
}

.information-card .body-row .body-column .value{
}

.edit-tournament-participant{
    display: flex;
}

.edit-tournament-participant .section{
    width: 49%;
    color: white;
}

.edit-tournament-participant .section .sub{
    width: 49%;
    display: flex;
    color: white;
}


.four-column{
    width: 24%;
}

.three-column{
    width: 31%;
}

.two-column{
    width: 48%;
}

.alert{
    width: 85%;
    margin: auto!important;
    padding: 20px;
}

.alert .danger-alert{
    color: darkred;
    border: 2px solid darkred;
    background-color:  #f6a2a2;
    border-radius: 10px;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
}

.alert .success-alert{
    color: darkgreen;
    border: 2px solid darkgreen;
    background-color: #8fbc8f;
    border-radius: 10px;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
}
.personal-image{
    width: 90px;
    height: 120px;
    border-radius: 10px;
}

.national-image{
    width: 120px;
    height: 120px;
    border-radius: 10px;
}

.bill-image{
    width: 150px;
    height: 220px;
    border-radius: 10px;
}

.homepage-buttons{
    display: flex;
    width: 70%;
    justify-content: space-between;
    z-index: 1;
}

.menu-title{
    margin-left: 20px;
    font-size: 20px;
    color: white;
    font-weight: bold;
}

.nav-link{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px;
    font-size: 17px;
    color: #dddddd;
}

.nav-link:hover{
    color: #00e5ff;
}

.two-column-row{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 1rem;
}

.lg-navigation{
    display: flex;
}

.page-header-section{
    max-width: 80rem;
    margin: auto;
    padding: 1.5rem 1rem 1.5rem 1rem;
}

.page-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title{
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.header-btn{
    display: flex;
}

.header-section{
    display: flex;
    align-items: center;
}

.table-btn{
    font-size: 13px;
    padding: 5px 10px  !important;
}

.exception-title{
    color: white;
    font-size: 25px;
    text-align: center;
}

.btn:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.btn {
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn-light {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-light:hover {
    background-color: #D6D5D5;
    border-color: #D6D5D5;
}

.btn-dark {
    color: white;
    background-color: #1F2937 !important;
    border-color: white;
}

.btn-dark:hover {
    background-color: #374151;
}

/* Add your custom pagination styles */
.pagination {
    display: flex;
    direction: rtl;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 1rem 0;
}

.pagination .link{
    padding: 5px 10px;
    margin: 0 5px;
    color: white;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.pagination .active {
    background-color: white;
    color: black;
    border-color: white;
}

.justify-text{
    text-align: justify;
}

.history-section{
    color: white;
}

.history-card{
    padding: 15px;
    border-radius: 5px;
    background-color: #1F2937;
    border: 2px solid white;
    margin: 10px;
}

.history-card-header{
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.champion-history{
    margin: 5px;
}

.loader {
    margin: 0 10px;
    border: 3px solid black;
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

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

/* Styles for tablets */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .homepage-buttons{
        width: 50%;
        flex-direction: column;
    }

    .homepage-button{
        margin: 10px;
    }

    .homepage-title{
        font-size: 50px;
    }

    .menu-title{
        margin-left: 30px;
        font-size: 15px;
    }

    .nav-link{
        padding: 3px;
        font-size: 14px;
    }

    .page-title{
        font-size: 15px;
    }

    .page-header-section{
        padding: 1rem 1.5rem 1rem 1.5rem;
    }

    .table-btn{
        font-size: 10px;
        padding: 3px 6px  !important;
    }

    .exception-title{
        font-size: 20px;
    }

    .guest-width{
        width: 50%;
    }
}

@media only screen and (max-width: 767px) {
    /* Apply specific styles for smaller screens (e.g., smartphones) */
    /* Example */
    body{
        width: auto;
    }

    .homepage-buttons{
        width: 70%;
        flex-direction: column;
    }

    .homepage-button{
        margin: 10px;
    }

    .bg-image{
        margin-top: 20px;
        border-radius: 20px;
        width: 100%;
        height: 500px;
    }

    .homepage-title{
        font-size: 20px;
    }

    .menu-title{
        margin-left: 20px;
        font-size: 15px;
    }

    .nav-link{
        padding: 3px;
        font-size: 11px;
    }

    .lg-navigation{
        display: none;
    }

    .rs-nav-link{
        text-align: right !important;
        font-size: 13px !important;
    }

    .two-column{
        width: 100%;
        margin-top: 1rem;
    }

    .three-column{
        width: 100%;
        margin-top: 1rem;
    }

    .four-column{
        width: 100%;
        margin-top: 1rem;
    }

    .two-column-row{
        margin-top: 0rem;
        flex-direction: column;
    }

    .information-card .body-row{
        flex-direction: column;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .information-card .body-row .body-column{
        width: 100%;
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
    }

    .information-card .body-row .body-column .key{
        font-size: 13px;
    }

    .information-card .body-row .body-column .value{
        font-size: 13px;
    }

    .page-title{
        font-size: 14px;
    }

    table th{
        font-size: 12px;
    }

    table td{
        font-size: 12px;
    }

    .table-btn{
        font-size: 8px;
        padding: 3px 3px  !important;
    }

    .header h1{
        font-size: 14px;
    }
    .information-card .header{
        font-size: 14px;
        flex-direction: column;
    }

    header h2{
        font-size: 14px;
    }

    header h2 p{
        font-size: 12px;
    }

    .page-header-section{
        padding: 1rem 1rem 1rem 1rem;
    }

    .page-title{
        font-size: 13px;
    }

    .header-section{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .mobile-width{
        width: 95% !important;
    }

    .overflow-x{
        overflow-x: auto;
        max-width: 100%;
    }

    .exception-title{
        font-size: 15px;
    }

    .guest-width{
        width: 95%;
    }

    .footer-none{
        display: none;
    }

    .responsive-text{
        font-size: 12px;
    }

    .logo{
        width: 100px;
        height: 100px;
    }
}





