@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --mainColor: #3f3f9d;
    --black: #000000;
    --white: #FFFFFF;
    --whiteSmoke: #000;
    --shadow: 0px 4px 8px 0 rgba(21, 21, 21, .2);
    --fontLight: 300;
    --fontRegular: 400;
    --fontBold: 700;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::before, ::after { box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: var(--fontRegular);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #3f3f9d;
}
.bgStrain{
    background-color: #f7f7f7;
}
a:hover{
    cursor: pointer;
}
a { text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1080px; margin: auto; }
.row { display: flex; flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.full-screen { min-height: 100vh; padding: 0px 0 0; }
.text-center { text-align: center; }

/*NAV*/

nav {
    width: 100%;
    background-color: white;
    position: fixed;
    z-index: 999;
    padding: 10px;
}

    nav .logo { color: var(--white); font-size: 32px; font-weight: var(--fontBold); text-transform: capitalize; }
        nav .logo span { color: var(--mainColor); }
    nav .container { padding: 0 25px; }
    nav .menu-btn i { color: black; font-size: 28px; cursor: pointer; display: none; }
    nav ul { display: flex; flex-wrap: wrap; }
        nav ul li { margin: 0 5px; }
            nav ul li a { 
                color: black; 
                font-size: 16px; 
                font-weight: var(--fontBold); 
                padding: 8px 15px;
                border-radius: 5px;
                transition: all .3s ease; 
            }
                nav ul li a.active, nav ul li a:hover { color: var(--mainColor); background: var(--white); }

/*MAIN*/
.logo img{
    width: 250px !important;
}
.left, .right { flex: 0 0 50%; max-width: 50%; padding: 20px; }
    .left .line { width: 15%; height: 2px; background-color: var(--mainColor); display: inline-block; }
    .left h2 { margin-top: 25px; font-size: 50px; color: #000; line-height: 55px; font-weight: var(--fontBold); }
        .left h2 span { color: #3f3f9d; font-size: 52px; font-weight: var(--fontBold); }
    .left p { color: var(--whiteSmoke); font-size: 16px; margin-top: 20px; margin-bottom: 10px; line-height:30px; font-weight: var(--fontLight); }

.btn {
    height: 44px;
    padding: 0px 30px;
    background-color: #000;
    border-radius: 4px;
    font-size: 13px;
    font-weight: var(--fontBold);
    text-transform: uppercase;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    letter-spacing: 1px;
    border: none;
    margin-top: 15px;
    box-shadow: 0px 8px 24px 0 rgba(228, 10, 57, .2);
    transition: all .2s linear;
}

    .btn:hover { background-color: #fff; color: var(--mainColor); box-shadow: 0 8px 24px 0 rgba(138, 140, 146, .2); }

.social-media { margin-top: 60px; }
    .social-media a {
        color: #000;
        margin-right: 22px;
        font-size: 22px;
        text-decoration: none;
        transition: all .2s linear;
    }

        .social-media a:hover { color: var(--mainColor); }

.form {width: 100%; display: flex; justify-content: center; }
.right h4 { font-weight: var(--fontBold); color: var(--white); }
.right h6 { color: #000; margin-bottom: 30px; font-weight: var(--fontLight); } 
    .right h6 span { padding: 0 20px; text-transform: uppercase; font-weight: var(--fontBold); font-size: 16px; }

input[type="checkbox"] { display: none; }
.checkbox:checked + label, .checkbox:not(:checked) + label { 
    position: relative;
    display: block;
    text-align: center;
    width: 60px;
    height: 16px;
    border-radius: 8px;
    background-color: var(--mainColor);
    padding: 0;
    margin: 10px auto;
    cursor: pointer;
}

    .checkbox:checked + label::before, .checkbox:not(:checked) + label::before {
        position: absolute;
        display: block;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        color: #fff;
        background-color: #000;
        font-family: 'Material Icons';
        content: '\f1e2';
        z-index: 20;
        top: -10px;
        left: -10px;
        line-height: 36px;
        text-align: center;
        font-size: 24px;
        transition: all .5s ease;
    }

        .checkbox:checked + label::before { transform: translateX(44px) rotate(-270deg); }

.link { color: var(--whiteSmoke); margin-top: 20px; display: block; }
    .link:hover { color: var(--mainColor); }

.card-3d-wrap {
    position: relative;
    width: 400px;
    max-width: 100%;
    height: 400px;
    margin-top: 60px;
    transform-style: preserve-3d;
    perspective: 800px;
}

.card-3d-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    transition: all .6s ease-out;
}

    .checkbox:checked ~ .card-3d-wrap .card-3d-wrapper { transform: rotateY(180deg); }

.card-front, .card-back { 
    width: 100%; 
    height: 100%;
    background-color: #3f3f9d; 
    background-image: url('https://i.postimg.cc/4dnZCH03/background.png');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 300%;
    position: absolute;
    border-radius: 6px;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
}

    .card-back { transform: rotateY(180deg); }

.center-wrap {
    position: absolute;
    width: 100%;
    padding: 0 35px;
    top: 50%;
    left: 0;
    transform: translate3d(0, -50%, 35px) perspective(100px);
    display: block;
    z-index: 20;
}

.heading { margin-bottom: 20px; font-size: 24px; text-transform: uppercase; font-weight: var(--fontBold); }
.form-group { position: relative; display: block; margin-bottom: 10px; }
    .form-group input::placeholder { color: var(--whiteSmoke); opacity: .7; transition: all .2s linear; }
        .form-group input:focus::placeholder { opacity: 0; transition: all .2s linear; }

.form-style {
    padding: 13px 20px;
    padding-left: 55px;
    height: 48px;
    width: 100%;
    font-weight: var(--fontRegular);
    border-radius: 4px;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.5px;
    outline: none;
    color: var(--whiteSmoke);
    background-color: #fff;
    border: none;
    /*box-shadow: var(--shadow);*/
    font-family: 'Montserrat', sans-serif;
}


    .form-style:focus, .form-style:active { border: none; outline: none; box-shadow: var(--shadow); }

.input-icon {
    position: absolute;
    top: 12px;
    left: 18px;
    height: 48px;
    font-size: 24px;
    text-align: left;
    color: var(--mainColor);
    transition: all .2s linear;
}
.leaderboard-form{
    height: 80vh;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
/*.leaderboard-form .form-container{
    background: #3f3f9d;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    flex-direction: column;
    background-image: url('https://i.postimg.cc/4dnZCH03/background.png');
}
.leaderboard-form .form-container label{
    line-height: 2rem !important;
    color: white;
    font-weight: var(--fontLight);
}*/
/*#formHeading{
    color: white;
    font-weight: var(--fontBold);
}*/

/* Typography specific classes */
.text-light {
    font-weight: var(--fontLight);
}

.text-regular {
    font-weight: var(--fontRegular);
}

.text-bold {
    font-weight: var(--fontBold);
}

.subheading {
    font-weight: var(--fontLight);
}

.paragraph {
    font-weight: var(--fontLight);
}

/* Additional Styles */
.leaderboard-container {
    background-color: #3f3f9d;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 70px auto;
    width: 100%;
    max-width: 900px;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    align-items: center;
    overflow: auto;
    width: 100%;
}

.leaderboard-tabs button {
    background-color: transparent;
    border: none;
    margin: 0 10px;
    font-weight: 600;
    color: #f7f7f7;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    line-height: 2em;
}

.leaderboard-tabs button.active {
    color: #fff;
    border-bottom-color: #fff;
}

.leaderboard-section {
    display: none;
}

.leaderboard-section.active {
    display: block;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.2);
    margin: 10px 0;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 3px 5px rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    color: white;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.leaderboard-item .rank {
    font-size: 1.5em;
    font-weight: bold;
}

.leaderboard-item .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.leaderboard-form {
    background-color: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 30px;
    max-width: 500px;
    margin: 70px auto;
}

.form-style {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.btn {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #000;
    color:white;
}

/* Navbar Styles */
.navbar {
    background-color: #f7f7f7;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 40px;
    transition: transform 0.2s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    margin: 0 0px;
    transition: color 0.3s ease;
    font-size: 14px;
}


.navbar-nav .nav-link:hover {
    color: #3f3f9d;
}

.navbar-nav .logout-btn {
    color: #dc3545 !important;
}

/* Footer Styles */
.footer {
    background-color: #f7f7f7;
    padding: 15px 0;
    border-top: 1px solid #e7e7e7;
}

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

.footer-links a {
    color: #6c757d;
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3f3f9d;
}

.footer-icons a {
    color: #3f3f9d;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-icons a:hover {
    color: #0056b3;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-bottom: 15px;
    }
    .leaderboard-form{
        max-height: 90vh;
        min-height: 40vh;
    }
    .footer-links a {
        margin: 0 10px;
    }
    .navbar-nav{
        display: contents;
    }
    .leaderboard-form {
        margin:50px 20px;
        max-width: 100%;
    }
    
    .leaderboard-item {
        flex-direction: column;
        text-align: center;
    }
    

    .leaderboard-item .avatar {
        margin-bottom: 10px;
    }
}

/*MEDIA QUERIES*/

@media (max-width: 992px) {
    nav .menu-btn i { display: block; }
    nav .container { padding: 0; }
    nav ul { 
        position: fixed;
        top: 85px;
        left: -100%;
        background-color: #1B1B1B;
        height: 320px;
        width: 100%;
        display: block;
        text-align: center;
        transition: all .3s ease;
    }
    .leaderboard-item{
        flex-direction: column !important;
        gap:10px !important;
    }
    .container-leader{
        height: auto !important;
    }
    .leaderboard-container{
        margin-top: 80px !important;
    }

    #click:checked ~ ul { left: 0; }
        nav ul li { margin: 20px 0; }
            nav ul li a { display: block; font-size: 20px; }
                nav ul li a.active, nav ul li a:hover { background: none; color: var(--mainColor); }

    .left h2 { font-size: 40px; }
        .left h2 span { font-size: 42px; }
    .left p { font-size: 14px; text-align: center; }
    .card-3d-wrap { width: 350px; }
}

@media (max-width: 768px) {
    .left, .right { flex: 0 0 100%; max-width: 100%; }
        .left { display: grid; place-items: center; order: 2;}
        .right { order: 1; }
            .left h2 { text-align: center; }
            nav{
                margin: 0 auto;
                display: flex;
                padding: 15px 25px !important;
            }
            .full-screen{
                flex-direction: column-reverse;
            }
            .right{
                padding-top: 0px;
            }
            .left{
                padding-bottom: 0px;
            }
            .card-3d-wrap { margin: 0px; }
}

@media (max-width: 400px) {
    .left h2 { font-size: 28px; line-height: 1.4em; }
        .left h2 span { font-size: 30px; }
    .card-3d-wrap { width: 300px; margin: 0px; }
    .full-screen{
        flex-direction: column-reverse;
    }
    .right{
        padding-top: 0px;
    }
    .left{
        padding-bottom: 0px;
    }
}