@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root{
    --white:rgb(255, 255, 255);
    --light-bg:rgb(240, 240, 240);
    --light-color:rgb(150, 150, 150);
    --black:rgb(50, 60, 80);
    --main-color:rgb(0, 150, 255);
    --main-color-dark:rgb(0, 100, 255);
    --green: rgb(0, 255, 0);
    --red: rgb(255, 0, 0);
    --yellow: rgb(255, 255, 0);
    --border:.1rem solid rgba(0, 0, 0, 0.2);
}

*{
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   outline: none;
   border: none;
   list-style: none;
   text-decoration: none;
   font-family: 'Poppins', sans-serif;
}

body{
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

#menu{
    display: none;
}

.sidebar{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 15rem;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1.25rem);
    transition: .4s ease;
    z-index: 1000;
}

.logo{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    color: var(--white);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: .1rem;
    background-color: var(--main-color);
}

.sidebar-content{
    height: calc(100% - 4rem);
    overflow: auto;
}

.sidebar-content::-webkit-scrollbar{
    width: .25rem;
    height: .25rem;
}

.sidebar-content::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}

.profile{
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.profile small{
    color: var(--light-bg);
    font-weight: 500;
}

.profile img{
    display: inline-block;
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
}

.sidebar-menu a{
    display: flex;
    align-items: center;
    justify-content: left;
    color: var(--white);
    font-size: 1.25rem;
    gap: 1rem;
    padding: 1.25rem;
}

.sidebar-menu i{
    font-size: 1.5rem;
}

.sidebar-menu a.active{
    color: var(--white);
    background-color: var(--main-color);
}

#menu:checked ~ .sidebar{
    width: 4rem;
}

#menu:checked ~ .container{
    width: calc(100% - 4rem);
    margin-left: 4rem;
}

#menu:checked ~ header, #menu:checked ~ footer{
    left: 4rem;
}

#menu:checked ~ .sidebar .logo span, #menu:checked ~ .sidebar .profile, #menu:checked ~ .sidebar a small{
    display: none;
}

header{
    position: fixed;
    top: 0;
    left: 15rem;
    right: 0;
    height: 4rem;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1.25rem);
    transition: .4s ease;
    z-index: 1001;
}

.header-content, .menu{
    display: flex;
    align-items: center;
}

.header-content{
    justify-content: space-between;
    padding: 1rem;
}

.bx-menu{
    color: var(--white);
    font-size: 1.5rem;
    background-color: var(--main-color);
    border-radius: 50%;
    padding: .3rem;
    cursor: pointer;
    transition: .4s ease;
}

.bx-menu:active{
    background-color: var(--main-color-dark);
    transform: rotate(180deg);
}

.icon{
    position: relative;
    margin-left: .75rem;
}

.icon i{
    color: var(--white);
    font-size: 1.25rem;
    background-color: var(--main-color);
    border-radius: 50%;
    padding: .3rem;
    cursor: pointer;
    transition: .4s ease;
}

.icon i:active{
    background-color: var(--main-color-dark);
}

.icon span{
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    top: -.2rem;
    right: -.2rem;
    width: .9rem;
    height: .9rem;
    color: var(--white);
    font-size: .75rem;
    font-weight: 500;
    background-color: var(--red);
    border-radius: 50%;
}

.container{
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    width: calc(100% - 15rem);
    min-height: 100vh;
    background-repeat: no-repeat;
    padding: 1.5rem;
    margin-left: 15rem;
    transition: .4s ease;
}

.wrapper{
    padding: 1.25rem;
    background: var(--light-bg);
    border-radius: .5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cards, .card, .view, .details, p{
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards{
    height: 25rem;
    width: 25rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cards .card{
    cursor: pointer;
    position: relative;
    perspective: 10rem;
    transform-style: preserve-3d;
    height: calc(100% / 4 - 1rem);
    width: calc(100% / 4 - 1rem);
}

.card.shake{
    animation: shake 0.35s ease-in-out;
}

@keyframes shake {
    0%, 100%{
    transform: translateX(0);
  }
  
  20%{
    transform: translateX(-13px);
  }
  
  40%{
    transform: translateX(13px);
  }
  
  60%{
    transform: translateX(-8px);
  }
  
  80%{
    transform: translateX(8px);
  }
}

.cards .card .view{
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
    position: absolute;
    background-color: var(--white);
    border-radius: .5rem;
    backface-visibility: hidden;
    transition: transform 0.25s linear;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.card .front-view img{
    max-width: 1.5rem;
}

.card .back-view{
    transform: rotateY(-180deg);
}

.card .back-view img{
    max-width: 3rem;
}

.card.flip .front-view{
    transform: rotateY(180deg);
}

.card.flip .back-view{
    transform: rotateY(0);
}

.details{
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: .5rem;
    background-color: var(--white);
    height: calc(100% / 4 - 2rem);
    justify-content: space-between;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.details p{
    font-size: 1.2rem;
    height: 1rem;
    padding-right: 1rem;
    border-right: .1rem solid var(--light-color);
}

.details p span{
    margin-left: .5rem;
}

.details p b{
    font-weight: 500;
}

.details button{
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--main-color);
    border-radius: .5rem;
    padding: .25rem;
    background-color: var(--white);
    border: .15rem solid var(--main-color);
    transition: 0.3s ease;
}

.details button:hover{
    color: var(--white);
    background-color: var(--main-color);
}

.form-box{
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 25rem;
    height: 30rem;
    margin-bottom: 4rem;
    overflow: hidden;
}

.login-container{
   display: flex;
   position: absolute;
   width: 100%;
   flex-direction: column;
   transition: left .4s;
}

.register-container{
   display: flex;
   position: absolute;
   width: 100%;
   right: -100%;
   flex-direction: column;
   transition: right .4s;
}

.reset-container{
   display: flex;
   position: absolute;
   width: 100%;
   left: -100%;
   flex-direction: column;
   transition: left .4s;
}

.title{
   color: var(--white);
   text-align: center;
   font-size: 1.5rem;
   font-weight: 600;
   padding: 1.25rem;
}

.two-forms{
   display: flex;
   gap: 1rem;
}

.input-field{
   width: 100%;
   height: 3rem;
   color: var(--white);
   font-size: .9rem;
   border-radius: 3rem;
   background-color: rgba(255, 255, 255, 0.1);
   backdrop-filter: blur(.25rem);
   border: .1rem solid var(--main-color);
   padding: 0 1rem 0 2.5rem;
}

.input-field:hover, .input-field:focus{
   border: .15rem solid var(--main-color);
}

::-webkit-input-placeholder{
   color: var(--light-bg);
}

.input-box i{
   position: relative;
   color: var(--white);
   left: 1.25rem;
   top: -2.25rem;
}

.submit{
   width: 100%;
   height: 3rem;
   color: var(--white);
   font-size: 1rem;
   font-weight: 600;
   border-radius: 3rem;
   background-color: var(--main-color);
   cursor: pointer;
}

.submit:hover{
   background-color: var(--main-color-dark);
}

.col{
   display: flex;
   justify-content: space-between;
   font-size: .9rem;
   font-weight: 600;
   margin-top: 1.25rem;
}

.col-link{
   color: var(--white);
   cursor: pointer;
}

.col-link:hover{
   color: var(--light-color);
}

footer{
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    bottom: 0;
    left: 15rem;
    right: 0;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1.25rem);
    transition: .4s ease;
    z-index: 1002;
}

footer p{
    color: var(--white);
    font-size: 1.25rem;
    text-align: center;
}

footer span{
    margin-right: .5rem;
    font-weight: 600;
}

@media only screen and (max-width: 991px){
    footer p{
        font-size: 1rem;
    }

    .login-container, .register-container, .reset-container{
        padding: 1.25rem;
     }
 
     .col{
        font-size: 0.75rem;
        gap: 1.25rem;
     }
 
     .register-container .two-forms{
        flex-direction: column;
        gap: 0;
     }
}

@media only screen and (max-width: 768px){
    .sidebar{
        left: -15rem;
    }
    
    header, footer{
        left: 0;
    }

    .container{
        width: 100%;
        margin-left: 0;
    }

    .cards{
        height: 20rem;
        width: 20rem;
    }

    .cards .card{
        height: calc(100% / 4 - .75rem);
        width: calc(100% / 4 - .75rem);
    }

    .details p{
        font-size: 1rem;
    }
    
    .details button{
        font-size: .9rem;
        border: none;
        color: var(--white);
        background-color: var(--main-color);
    }
    
    footer p{
        font-size: .75rem;
    }

    #menu:checked ~ .sidebar{
        left: 0;
        width: 15rem;
    }

    #menu:checked ~ .sidebar .logo span{
        display: none;
    }
    
    #menu:checked ~ header, #menu:checked ~ .container, #menu:checked ~ footer{
        left: 0;
    }
    
    #menu:checked ~ .sidebar .profile, #menu:checked ~ .sidebar a small{
        display: block;
    }
    
    #menu:checked ~ .sidebar a small{
        font-size: 1rem;
    }
}