@font-face {
    font-family: 'Crealto Regular';
    src: url(assets/CreatoDisplay-Regular.otf);
    
}

@font-face {
    font-family: 'Crealto Medium';
    src: url(assets/CreatoDisplay-Medium.otf);
    
}

html {
    font-family: 'Crealto Regular';
    letter-spacing: 0.4px;
}


#table-options {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    right: 0 !important;
    align-items: center;
}

label, #title{
    margin-left: auto;
}

#header{
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
}

#dark-mode-toggle{
    height: fit-content;
    padding: 5px;
    font-family: 'Crealto Regular';
    background-color: #121212;
    border:none;
    color: white;
    border-radius: 2px;
    align-self: center;
    margin-left: auto;  
    cursor: pointer;
}

label{
   
    
    height: fit-content;
    padding-left: 2%;

}

#search-bar{
    margin-left: auto;
    height: 3em;
    
}

#main{
    width: 50%;
    position: static;
    margin: auto;
    left: 50%;
}

#main-table-header {
    
    background-color: rgb(0, 0, 0);
    color: white;
}

#main-table {
    font-family: 'Crealto Regular';
    width: 100%;
    border: 1px black solid;
    box-shadow: 10px 10px rgb(255, 0, 0);
    border-spacing:0;
}

th, td {
  padding: 15px;
}

tbody>tr:nth-child(odd){
    background-color: rgb(214, 214, 214);
}



/*Dark Mode */

.active{
    background-color: #121212;
    color: #ffffff; 
    th {
        background-color: white;
        color:black;
    }
    tbody>tr:nth-child(odd){
    background-color: #303030;
    }
    
    #main-table{
        border: 1px rgb(255, 255, 255) solid;
         box-shadow: 10px 10px #303030;
    }

    a:link{
        color:white;
    }
    
    a:visited{
        color:white;
    }

    #dark-mode-toggle{
        background-color: white;
        color:#121212;
    }
}

.inactive {
    background-color: #FFFFFF;
    color: black;
}


@media (pointer:none), (pointer:coarse) {
    #main{
    width: 100%;
    position: static;
    margin: auto;
    
}
}