*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
:root {
    --main-bg-color: #E6DCFF;
    --main-txt-color: #623EB5 ;
    --main-padding: 15px;
    --main-font:  'Yantramanav', sans-serif;
}
body{
    font-size: 16px;
    font-family: var(--main-font);
    min-height: 100vh;
    background: var(--main-bg-color);
}
header{
    height: 100px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
}
nav{
    height: 100%;
}
.fa:before{
    display: none;
}
.logo{
    float: left;
    font-size: 25px;
    font-family: 'Voltage';
    font-weight: 900;
    padding: 20px 20px 25px 50px;
    margin-left: 50px;
}
.logo a{
    text-decoration: none;
    color: var(--main-txt-color);
}
.menu{
    float: right;
    display: flex;
    width: 50%;
    list-style-type: none;
    justify-content: space-around;
    padding: 40px;
}
.menu a{
    font-size: 20px;
    text-decoration: none;
    color: var(--main-txt-color);    
    font-weight: 500;
    padding: 5px;
}
.active{
    opacity: 0.6;
}
.login_btn a{
    color: #ffffff;
    background: var(--main-txt-color);
    padding: 10px 30px;
    border-radius: 5px;
}
.login_btn2 a{
    color: var(--main-txt-color);
    /* background: var(--main-txt-color); */
    padding: 8px 25px;
    border-radius: 5px;
    border: 3px solid var(--main-txt-color);
}
.section{
    display: flex;
    /* margin-top: 100px;    */
    width: 100%;
    height: 100vh;
}
.section .left_description{
    width: 60%;
    height: 500px;
    padding: 20px;
    text-align: center;
    position: relative;
    top:30%;
    /* transform: translateY(-50%); */
}
.section .left_description .description{
    position: absolute;
    width: 60%;
    left: 50%;
    top: 25%;
    text-align: left;
    /* padding-left: 30px; */
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: 50px;
    line-height: 1.2;
    color: var(--main-txt-color);
}
.section .left_description .btns{
    position: absolute;
    width: 80%;
    left: 46%;
    top: 60%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);  
    display: flex;  
    /* justify-content: space-around; */
    list-style-type: none;
    padding-left: 120px;
}
.section .left_description .btns a{
    text-decoration: none;
    font-size: 25px;
    padding: 20px 40px;
}
.btn_1{
    color: #ffffff;
    font-weight: normal;
    /* width: 100px ; */
    background: var(--main-txt-color) 0% 0% no-repeat padding-box;
    box-shadow: 0px 6px 15px #00000063;
    border-radius: 5px;
    margin-right: 10px;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}
.btns_list{
    transition: all 0.3s ease-in-out;
}
.btns_list:hover .btn_1{
    color: rgba(246, 244, 253, 0.473);
}
.btns_list:hover{
    transform: scale(1.1) !important;
}
/* .btn_2{
    color: var(--main-txt-color);
    padding: 0px 20px !important;
    border: 3px solid var(--main-txt-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}
.btn_2:hover{
    box-shadow: inset 0px 0px 5px #0000003f !important ;
} */
.section .right_image{
    /* padding-left: 5px; */
    width: 40%;
    position: relative;
}
.section .right_image img{
    width: 90%;
    height: auto;
    position: absolute;
    top: 30%;
}
.container{
    /* margin-top: 100px; */
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.container .elements{
    width: 33.333%;
    text-align: center;
    position: relative;
    cursor: pointer;
    color: var(--main-txt-color);
}
.container .elements:nth-last-of-type(2n+1){
    background: #CCBDFF;
}
.container .elements:nth-last-of-type(2n) img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    transition: all 0.3s ease-in-out;
}
.container .elements:nth-last-of-type(2n) .img_overlay{
    position: absolute;
    width: 55%;
    text-align: center;
    padding: 10px;
    top: 60%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 20px;
    line-height: 1.2;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}
.container .elements:nth-last-of-type(2n):hover img{
    top: 24%;
    transform: translate(-50%,-50%) scale(0.45);
}
.container .elements:nth-last-of-type(2n):hover .img_overlay{
    opacity: 1;
} 
.container .elements:nth-last-of-type(2n+1) .content_overlay{
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
}
.container .elements:nth-last-of-type(2n+1) .content_overlay h1{
    line-height: 1.5;
}
.container .elements:nth-last-of-type(2n+1) .content_overlay p{
    width: 50%;
    margin: 0 auto;
    color: hsla(258, 49%, 48%, 0.699);
    margin-top: 20px;
    line-height: 1.2;
    /* text-align: center; */
    font-size: 25px;
}


/* Blurring the background */

.blur   {
    filter: blur(5px);
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
}
.overlay {
    position: fixed;
    display: none;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    background: rgba(255,255,255,.8);
    z-index: 999;
}

/* Login PopUp */
.form-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    /* border: 3px solid #f1f1f1; */
    z-index: 9;
    color: #ffffff;
  }
  
  /* My team and Tournament*/
  #tournament{
      display: none;
      position: relative;
      min-height: 100vh;
      width: 100%;
      margin-bottom: 100px;
  }
  #my_team{
      display: none;
      position: relative;
      min-height: 100vh;
      width: 100%;
      margin-bottom: 100px;
  }
  .table{
    width: 70%;
    height: 600px;
    margin: 0 auto;
    margin-bottom: 50px;
    position: absolute;
    top: 26%;
    left: 50%;
    padding: 8px;
    transform: translateX(-50%);
    border-collapse: collapse;
    text-align: center;
    background: #E6DCFF;
    border: 8px solid var(--main-txt-color);
    border-radius: 10px;
    /* border-top: 50px solid var(--main-txt-color); */
}
.league_title{
    width: 70%;
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    color: #CCBDFF;
    background: var(--main-txt-color);
    border-radius: 15px;
}
.table  th{
    color: #623EB5;
    font-size: 25px;
    padding: 10px;
    background: #CCBDFF;
}
.table td{
    color: var(--main-txt-color);
    font-size: 20px;
}

/* form */
  
  .form-container {
    max-width: 400px;
    padding: 20px;
    background-color: var(--main-txt-color);
    text-align: center;
  }
  .form-container input[type=text], .form-container input[type=password] {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
  }
  
  
  .form-container input[type=text]:focus, .form-container input[type=password]:focus {
    background-color: #ddd;
    outline: none;
  }
  
  .form-container .btn {
    background-color: #4CAF50;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom:10px;
    opacity: 0.8;
  }
  
  .form-container .cancel {
    background-color: red;
  }


select{
    background: var(--main-txt-color);
    width: 200px;
    padding: 10px;
    color: #ffffff;
    font-size: 15px;
    font-family: var(--main-font);
}
select option{
    background: var(--main-bg-color);
    color: #000000;
}


@media (max-width: 576px) { 
    header{
        display: block;
        height: 60px;
    }
    .logo{
        width: 90%;
        font-size: 20px;
        margin: 0;
        padding: 2px 40px 0 0;
        text-align: center;
    }
    .menu{
        display: none;  
    }
    .menu{
        width: 100%;
        height: 200px;
        background: #fff ;
        padding: 10px;
    }

    .menu_items{
        padding: 10px;
    }
    .login_btn a,  .login_btn2 a{
        background: #fff;
        color: var(--main-txt-color);
        padding: 5px;
        border: 0;
    }
    .menu_items a{
        font-size: 16px;
        font-weight: 700;
    }
    .fa:before{
        display: block;
        color: var(--main-txt-color);
        position: absolute;
        font-size: 25px;
        top: 50%;
        transform: translateY(-52%);
        z-index: 1000;
    }
    .section{
        height: 80vh;
        margin-bottom: 45px;
    }
    .section .left_description{
        width: 100%;
        position: absolute;
        top: 350px;
        height: 300px;
    }
    .section .left_description .description{
        font-size: 30px;
        width: 80%;
        padding: 5px;
        top: 20px;    
    }

    .section .left_description .btns{
        top: 150px;
        width: 100%;
        height: auto;
        padding-left: 50px;
    }

    .section .left_description .btns .btn_1{
        /* top: 200px; */
        width: 100%;
    }
    .section .right_image{
        display: block;
        position: absolute;
        top: 100px;
        left: 20px;
        width: 80%;
    }
    .container .elements{
        width: 100%;
        height: 300px;
    }
    .container .elements:nth-last-of-type(2n) img{
        top: 24%;
        transform: translate(-50%,-50%) scale(0.4);
    }
    .container .elements:nth-last-of-type(2n) .img_overlay{
        opacity: 1;
        font-size: 18px;
        top: 65%;
    }
    .container .elements:nth-last-of-type(2n+1) .content_overlay{
        top: 55%;
    }
    .container .elements:nth-last-of-type(2n+1) .content_overlay h1{
        font-size: 36px;
        line-height: 1;
    }
    .container .elements:nth-last-of-type(2n+1) .content_overlay p{
        font-size: 18px;
        width: 60%;
    }
    .table{
        width: 100%;
    }
    .league_title{
        font-size: 30px;
    }
    .table th{
        font-size: 20px;
    }
    .table td{
        font-size: 18px;
    }
    select{
        width: 100px;
    }
    .form-container{
        width: 300px;
    }
 }


 @media screen and (max-device-width: 360px){
     .section{
         margin-bottom: 100px;
     }
     .container .elements:nth-last-of-type(2n) .img_overlay{
        opacity: 1;
        font-size: 18px;
        top: 68%;
        width: 60%;
    }
    #tournament{
        margin-bottom: 200px;
    }
    #my_team{
        margin-bottom: 200px;
    }
    .league_title{
        top: 17%;
    }
 }  