/* Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');

/* Initial CSS styles */
html{
    box-sizing: border-box;
}

*, *::before, *::after{
    box-sizing: inherit;
} 

:root{
    --primary-color: #2e353d;
    --secondary-color: #e1ffff;
    --info: #DBEAFE;
    --error: #FEE2E2;
    --success: #D1FAE5;
    --warning: #FEF3C7;
}

body{
    margin: 0%;
    padding: 0%;
}

/* Mobile first Approach */
header{
    margin: 0;
    padding: 1rem;
    background-color: var(--primary-color);
    color: #e1ffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 10%;
}

.header{
    margin: 0;
    padding: 1rem;
    background-color: var(--primary-color);
    color: #e1ffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 10%;
}

.header-brand{
    color: aqua;
}

.header-navigation{
    display: flex;
    gap: 2rem;
}

.header-link{
    list-style: none;
    color: #e1ffff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.8rem;
}

.header-navigation .header-link:active{
    color: aqua;
}

.header-navigation .header-link:hover{
    border-bottom: 3px solid aqua;
}

.nav-side-menu{
    width: 100%;
    background-color: lightgrey;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
}

.nav-side-menu ul,
.nav-side-menu li{
    display: none;
}

.container{
    margin:auto;
    padding: 1rem;
    border: 1px solid lightgrey;
    width: 90%;
    /* display: flex; */
    flex-direction: column;
    flex-wrap: wrap;
}

.component-heading{
    margin: 1rem;
}

.container-example{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.avatar{
    color: black;
    border: 1px solid black;
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.extra-small{
    width: 30px;
    height: 30px;
}

.small{
    width: 50px;
    height: 50px;
}

.medium{
    width: 70px;
    height: 70px;
}

.large{
    width: 90px;
    height: 90px;
}

.container-code-snippet{
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    margin: 1rem;
    box-shadow: 5px 5px lightgray;
}

.container-code-head{
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
}

.red{
    height: 10px;
    width: 10px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
}

.yellow{
    height: 10px;
    width: 10px;
    background-color: yellow;
    border-radius: 50%;
    display: inline-block;
}

.green{
    height: 10px;
    width: 10px;
    background-color: green;
    border-radius: 50%;
    display: inline-block;
}

.container-code{
    color: #e1ffff;
    padding: 1rem;
}

.img-icon{
    width: 50px;
    height: 50px;
}

.container-group{
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.group-item{
    margin-left: -0.8rem;
}

.color-blue{
    background-color: lightblue;
}

.status-online{
    height: 1rem;
    width: 1rem;
    line-height: 1rem;
    background-color: green;
    border: 1px solid green;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
}

.status-busy{
    height: 1rem;
    width: 1rem;
    line-height: 1rem;
    background-color: red;
    border: 1px solid red;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
}

.alert{
    width:80%;
    border-radius: 0.5rem;
    border: 1px solid black;
    display: flex;
    padding: 0.8rem;
    margin: 0.3rem;
    position:relative;
}

.alert-icon{
    width: 20px;
    max-width:100%;
    margin-left: 1rem;
    align-self: center;
}

.alert-text{
    align-self: center;
    margin-left: 1rem;
}

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

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

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

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

.info-outline{
    border: 3px solid var(--info);
}
.error-outline{
    border: 3px solid var(--error);
}
.success-outline{
    border: 3px solid var(--success);
}
.warning-outline{
    border: 3px solid var(--warning);
}

.icon-close{
    color: var(--primary-color);
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    width: 0.8rem;
    height: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.position-relative{
    position: relative;
}

.icon-badge-position{
    position: absolute;
    top:0;
    right: 0;
    margin: -0.4rem;
}

.btn-primary{
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.5rem;
}

.btn-secondary{
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem;
}

.btn-linked{
    padding: 1rem;
    background-color: var(--primary-color);
}

.btn-linked a{
    color: var(--secondary-color);
}

.btn-linked:hover{
    cursor: pointer;
}

.btn-outlined{
    border: 1px solid var(--primary-color);
    background-color: white;
    padding: 0.5rem;
}

.btn-disabled{
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    pointer-events: none;
}

.flex-row{
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.validation{
    color: red;
    margin: 0;
    padding: 0;
}

.btn-small{
    width: 50px;    
    height: 30px;
    border: 1px solid var(--primary-color);
    background-color: white;
    color: black;
}

.btn-medium{
    width: 90px;    
    height: 30px;
    border: 1px solid var(--primary-color);
    background-color: white;
    color: black;
}

.btn-large{
    width: 150px;    
    height: 30px;
    border: 1px solid var(--primary-color);
    background-color: white;
    color: black;
}

.no-border{
    border: 1px solid white;
}

.no-background{
    background-color: white;
}

.float{
    position: fixed;
	bottom:10px;
	right:10px;
}

.img-round{
    max-width: 100%;
    border-radius: 50%;
}

.img-responsive{
    max-width: 100%;
}

.input-noborder{
    padding: 0.5rem;
    padding-bottom: 0;
    line-height: 1.6rem;
    border: 0;
    border-bottom: 1px solid black;
    font-size: 1rem;
}

.input-noborder-error{
    padding: 0.5rem;
    padding-bottom: 0;
    line-height: 1.6rem;
    border: 0;
    border-bottom: 1px solid black;
    font-size: 1rem;
}

.input-noborder-error:placeholder-shown{
    border-bottom: 1px solid red;
}

.input-noborder:focus:placeholder-shown{
    /* text-transform: uppercase; */
    line-height: 1rem;
}

.input-outlined{
    margin-left: 0.2rem;
    padding: 0.5rem;
    padding-bottom: 0;
    line-height: 1.6rem;
    font-size: 1rem;
}

.input-outlined-error{
    margin-left: 0.2rem;
    padding: 0.5rem;
    padding-bottom: 0;
    line-height: 1.6rem;
    font-size: 1rem;
    border: 1px solid black;
}

.input-outlined-error:placeholder-shown{
    border: 1px solid red;
}

.input-outlined:focus{
    /* text-transform: uppercase; */
    line-height: 0.6rem;
    border: 2px solid var(--primary-color);
}

.input-filled{
    margin-left: 0.2rem;
    padding: 0.5rem;
    padding-bottom: 0;
    line-height: 1.6rem;
    border: 0;
    border-bottom: 1px solid black;
    background-color: lightgray;
    font-size: 1rem;
}

.input-filled-error{
    margin-left: 0.2rem;
    padding: 0.5rem;
    padding-bottom: 0;
    line-height: 1.6rem;
    border: 0;
    border-bottom: 1px solid black;
    background-color: lightgray;
    font-size: 1rem;
}

.input-filled-error:placeholder-shown{
    border: 1px solid red;
}

input{
    margin-bottom: 1rem;
}

.list{
    list-style: none;
}

.list-item{
    padding: 0.4rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.list-item:hover{
    background-color: lightgrey;
}

.list-inline{
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-list{
    width: 100%;
}

.card-list-items{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid lightgray;
    padding: 0.7rem;
}

.card-list-items:hover{
    background-color: lightgray;
}

.card-list-notification{
    list-style: none;
    border: 1px solid black;
    display: flex; 
    padding: 0.4rem;
    align-items: center;
}

.card-notification-logo{
    padding: 1rem;
    width: 20%;
}

.card-notification-text{
    width: 100%;
    padding: 0;
    margin: 0;
}

.product-card{
    margin: 0.6rem;
    background-color: #fff;
    padding: 0.7rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}

.card-tag{
    /* background-color: rgba(179, 75, 248, 0.3); */
    background-color: var(--primary-color);
    padding: 5px 10px;
    /* color: #b34bf8; */
    color: var(--secondary-color);
    border-radius: 2px;
}

.card-header{
    padding: 1rem 2rem;
    text-align: center;
}

.card-header img{
    max-height: 200px;
}

.product-title{
    font-size: 1.4rem;
    line-height: 1;
    color: #353535;
}

.product-status{
    color: #808080;
}

.product-price{
    font-size: 1rem;
    color: #353535;
    margin: 20px 0;
}

.card-footer{
    display: flex;
    justify-content: space-between;
}

.btn{
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
}

.card-footer:first-child{
    margin-right: 1rem;
}

.card-text-overlay{
    position: absolute;
    top: 50%;
    left: 20%;
    line-height: 1rem;
    font-size: 2rem;
    font-weight: bold;
    z-index: 5;
    color: black;
    opacity: 100%;
}

.opacity{
    opacity: 20%;
}

.modal{
    border: 1px solid black;
    background-color: var(--secondary-color);
    padding: 1rem;
}

.modal-type{
    border-bottom: 1px solid black;
}

.grid-two-items{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-three-items{
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.grid-item{
    border: 1px solid var(--primary-color);
    padding: 1rem;
}

.grey-text{
    color: gray;
}

.rating{
    display: flex;
    border: 1px solid black;
}

.rating-item{
    padding: 1rem;
    border-right: 1px solid black; 
}

/* Desktop */
@media ( min-width:750px){
    header{
        margin: 0;
        padding: 1rem;
        background-color: var(--primary-color);
        color: white;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        border-bottom: 1px solid #23282e;
        position: fixed;
        width: 100vw;
        height: 20%;
        z-index: 1;
    }

    .header{
        margin: 0;
        padding: 1rem;
        background-color: var(--primary-color);
        color: white;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        border-bottom: 1px solid #23282e;
        width: 100vw;
        height: 20%;
        z-index: 1;
    }

    .nav-side-menu{
        width: 20%;
        height: 100vh;
        background-color: var(--primary-color);
        color: #e1ffff;
        font-size: 1.2rem;
        font-weight: bold;
        text-align: center;
        overflow: scroll;
        position: fixed;
        left: 0;
        top: 20%;
    }

    .nav-side-menu .brand{
        background-color: #23282e;
        line-height: 3rem;
        display: block;
        text-align: center;
        font-size: 1.3rem;
        margin-top: 0;
    }

    .nav-side-menu ul,
    .nav-side-menu li{
        display: block;
        font-weight: lighter;
        margin-left: 0;
        padding: 0;
        text-align: left;
    }

    .nav-side-menu li{
        list-style: none;
        border-bottom: 1px solid #23282e;
    }

    li .nav-link{
        color: #e1ffff;
        text-decoration: none;
        display: block;
        padding: 1rem;
    }

    li .nav-link:hover{
        border-left: 5px solid #d19b3d;
        background-color: #020203;
    }

    li .nav-link:active{
        border-left: 5px solid aqua;
        background-color: #020203;
    }

    .active{
        border-left: 5px solid aqua;
        background-color: #020203;
    }

    main{
        position: absolute;
        top:20%;
        left: 20%;
        right: 10%;
    }

    .float{
        position: fixed;
        bottom:40px;
        right:40px;
    }
} 

