:root
{
    --theme-color: #0396f1;
    --offwhite: #faf4eb;
    --hover-eff: #ff7200;
}

*
{
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif !important;
}

body
{
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    background: #fff;
}

.tags{
    position: sticky;
    top: 50px;
    /* margin: auto; */
    /* margin-bottom: 20px; */
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: end;
    background: #f7f7f7;
    border-radius: 5px;
    padding: 0px;
    width: 100%;
}

.tags div{
    flex-grow: 1;
    border-bottom: 1px solid var(--hover-eff);
}

.tags a{
    text-decoration: none;
    color: black;
    font-size: 15px;
    height: 100%;
    /* margin: 5px 10px; */
    /* background-color: white; */
    padding: 10px 10px;
    /* border-radius: 5px; */
}

.tags a:hover{
    background-color: var(--hover-eff);
    color: white;
}

.tags a.active{
    border-left: 1px solid var(--hover-eff);
    border-top: 1px solid var(--hover-eff);
    border-right: 1px solid var(--hover-eff);
    /* background-color: var(--offwhite); */
    background-color: white;
}

.tags a.active:hover{
    color: black;
}

.tags a:not(.active){
    border-bottom: 1px solid var(--hover-eff);
}

#bodyDiv{
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0px;
    padding-bottom: 100px;
}

section
{
    position: relative;
    width: 100%;
    min-height: 7vh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.head
{
    min-height: 6vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upper
{
    width: 100%;
    margin-bottom: 4px;
    min-height: auto;
}

hr{
    width: 100%;
    margin: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid darkgray;
}

h2{
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
}

h3{
    font-size: 1.4rem;
    color: var(--hover-eff);
}

h4{
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

h6{
    font-size: 1rem;
    margin: 0;
    margin-bottom: 7px;
    font-weight: 400;
}

a{
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

#dashboard{
    width: 100%;
}

#topPageStats{
    width: 100%;
    margin-top: 0px;
}

#topPageFlexBox{
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.topPageStatCard{
    display: flex;
    justify-content: space-between;
    padding: 30px 40px 30px 30px;
    border-radius: 5px;
    box-shadow: 0px 0px 4px 0px darkgray;
    width: 49%;
    background-color: var(--offwhite);
}

.topPageStatCard:first-child{
    margin-right: 20px;
}

.topPageStatCard > img{
   height: 100%;
   width: 100px;
   opacity: 0.3;
}

/* Registrations stats */
#registrationsStats{
    width: 100%;
    margin-top: 10px;
}

#registrationsStats > div{
    display: flex;
    justify-content: space-between;
    padding: 30px 40px 30px 30px;
    border-radius: 5px;
    box-shadow: 0px 0px 4px 0px darkgray;
    margin-bottom: 20px;
}

#registrationsStats canvas{
    /* height: 70%; */
    /* width: 80%; */
    max-width: 78%;
    /* height: 100px; */
    border: 1px solid darkgray;
    padding: 10px 20px 10px 20px;
    border-radius: 5px;
    margin-right: 0px;
}

#regStatsDiv{
    width: 20%;
}

.registrationsStatCard{
    width: 100%;
    border: 1px solid darkgray;
    margin: 0;
    margin-bottom: 25px;
    padding: 20px 10px 10px 10px;
    border-radius: 5px;
}

.registrationsStatCard:last-child{
    margin-bottom: 0;
}

.registrationsStatCard > div{
    display: flex;
    justify-content: space-between;
}

/* Membership Stats */
#membershipStats{
    width: 100%;
    margin-top: 10px;
}

#membStatsDiv{
    display: flex;
    justify-content: start;
    align-items: start;
    height: max-content;
}

.membershipStatCard{
    margin-right: 25px;
    padding: 20px 20px 20px 20px;
    border-radius: 5px;
    height: 100%;
    width: 31%;
    flex-grow: 1;
}

.membershipStatCard:last-child{
    margin-right: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 1.1rem;
  }
  
  th {
    background-color: var(--offwhite); 
    border: 1px solid #dddddd; 
    text-align: left; 
    padding: 8px; 
  }
  
  tr {
    border: 1px solid #dddddd; 
  }
  
  td {
    border-right: 1px solid #dddddd; 
    padding: 8px; 
  }
  
  tr:nth-child(odd) {
    background-color: #f2f2f2;
  }

/* Library stats */
#libraryStats{
    width: 100%;
    margin-top: 10px;
}

#libStatsDiv{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    height: max-content;
}

#libStatsInfo{
    display: flex;
    justify-content: start;
    align-items: start;
    width: 100%;
}

.libInfoDiv{
    width: 30%;
    margin-right: 20px;
    margin-bottom: 20px;
    border: 1px solid darkgray;
    border-radius: 5px;
    padding: 10px 40px 10px 30px;
}

.libInfoDiv > div{
    display: flex;
    justify-content: space-between;
}

#libStatsCardDivs{
    display: flex;
    justify-content: start;
    align-items: start;
    width: 100%;
}

.libraryStatCard{
    display: flex;
    justify-content: space-between;
    padding: 30px 40px 30px 30px;
    border-radius: 5px;
    box-shadow: 0px 0px 4px 0px darkgray;
    width: 49%;
    background-color: var(--offwhite);
}

.libraryStatCard:first-child{
    margin-right: 20px;
}

.libraryStatCard > img{
   height: 100%;
   width: 100px;
   opacity: 0.3;
}

@media screen and (max-width:800px){
    #bodyDiv{
        width: 90%;
    }
    
    #topPageFlexBox{
        flex-direction: column;
    }
    
    .topPageStatCard{
        justify-content: space-between;
        padding: 20px 20px 20px 20px;
        width: 100%;
    }
    
    .topPageStatCard:first-child{
        margin-bottom: 15px;
    }
    
    .topPageStatCard > img{
       height: 100px;
       width: 100px;
       opacity: 0.3;
    }
    
    /* Registrations stats */
    #newRegistrationsChart{
        display: none!important;
    }
    
    #regStatsDiv{
        width: 100%;
    }
    
    /* Membership Stats */
    #membStatsDiv{
        flex-direction: column;
    }
    
    .membershipStatCard{
        margin: 0;
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Library stats */
    #libStatsInfo{
        flex-direction: column;
    }
    
    .libInfoDiv{
        width: 100%;
    }
    
    .libInfoDiv > div{
        display: flex;
        justify-content: space-between;
    }
    
    #libStatsCardDivs{
        flex-direction: column;
    }
    
    .libraryStatCard{
        padding: 20px 20px 20px 20px;
        width: 100%;
    }
    
    .libraryStatCard:first-child{
        margin-bottom: 15px;
    }
}