.button:not(:disabled) {
    background-color: #0054c3;
    color: white;
    border: 5px #0054c3 solid;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    margin: 5px;
}

.button:disabled {
    background-color: gray;
    color: lightgray;
    border: 5px gray solid;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    margin: 5px;
}

ul,ol {
    list-style-position: inside;
    display: inline-block;
}

.yes:not(:disabled):not(:hover) {
    background-color: #00c354 !important;
    border: #00c354 5px solid !important;
}

.no:not(:disabled):not(:hover) {
    background-color: #ec2020 !important;
    border: #ec2020 5px solid !important;
}

.button:hover:not(:disabled) {
    background-color: lightgray;
    border: 5px lightgray solid;
    color: black;
}

.button:focus:not(:disabled) {
    box-shadow: 2px 1px 1px black;
}

.hoverimg {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px;
    border: rgba(0,0,0,0) solid 5px;
    border-radius: 5px;

}

.hoverimg:hover {
    border: rgba(0,0,0,0.1) solid 5px;
    background-color: rgba(0,0,0,0.1);
}

.topnav {
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    background-color: #0054c3;
    height: 50px
}

.topnav a {
    color: lightgray;
}

.topnav a:hover {
    color: white;
}

.footer {
    width: 100%;
    background-color: #0054c3;
    position: fixed;
    bottom: 0;
    left: 0;
    color: white;
}

.footer i {
    padding-left: 10px;
}

.sidenav h1 {
    color: white;
    text-align: center;
}

body {
    font-family: Helvetica;
    overflow: hidden;
}

.topnav-menu a {
    line-height: 50px;
    padding-left: 20px;
    padding-right: 20px;
    text-decoration: none;
}

.sidenav {
    height: 100%;
    width: 200px;
    background-color: #0044b3;
    position: fixed;
    top: 50px;
    left: 0px;
    z-index: 2;
}

.sidenav-button {
    width: 200px;
    color: lightgray;
    height: 50px;
}

.sidenav-button a {
    line-height: 50px;
    padding-left: 10px;
}

.sidenav-button span {
    font-size: 24px;
    line-height: 50px;
}

.sidenav-button:focus, .sidenav-button:hover {
    background-color: rgba(0,0,0,0.1);
    color: white;
}

.maindiv {
    
    position: absolute;
    top: 50px;
    padding: 10px;
    height: calc(100vh - 60px);
    overflow-y: scroll;
    overflow-x: hidden;
    text-align: center;
    
}

.mdclosed {
    left: 0;
    width: 100%;
}

.mdopen {
    width: calc(100% - 200px);
    left: 200px;
}

h1,h2 {
    text-align: center;
}
.overlaybox {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(64,64,64,0.8);
    z-index: 1000002;
    /*If that's not enough, I don't know what is!*/
    width: 100%;
    height:100%;
    overflow-y: scroll;
}
.overlayboxi {
    padding: 25px;
    margin-top: 25px;
    padding-top: 25px;
    border: 10px white solid;
    border-radius: 10px;
    align-items: center;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    width: fit-content;
    position: relative;

}

.overlaybox h3 {
    text-align: center;
}

input[type=text],input[type=password] {
    padding: 5px;
    border: 1px solid black;
    border-radius: 5px;
}

.distributed {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#main div {
    margin-bottom: 100px;
}

/* Table formatting */

table {
    border: 3px black solid;
    border-collapse: collapse;
}

.tablecontainer {
    max-width: calc(100% - 50px);
    overflow-x: auto;
}

td,th {
    border: 1px black solid;
    border-collapse: collapse;
    padding: 5px;
    white-space: nowrap;
}

th {
    background-color: #b3d3ff;
}

td {
    background-color: #e5f0ff;
}

.uploadfilea {
    padding: 40px;

    background-color: #b3d3ff;
}

select {
    padding: 5px;
    border: 1px solid black;
    background-color: white;
    border-radius: 5px;
}

.tile {
    width: 200px;
    height: 100px;
    white-space:nowrap;
    overflow: hidden;
    display: inline-block;
    border: 5px solid #b3d3ff;
    border-radius: 5px;
    background-color: #b3d3ff;
    margin: 50px;
    text-wrap: wrap;
    position: relative;

}
.tile:hover, .tile:focus {
    /*height: auto;*/
    /*scale: 105%;*/
    cursor: pointer;
    
}

.tile h4 {
    color: black;
    text-align: center;
    text-decoration: none;
}

.tile:hover,.tile:focus{
    opacity: 0.5;
}

#homefeatured {
    display: block;
}

.disabledtile {
    background-color: pink;
    border: 5px solid pink;
}

.disabledtile:hover {
    background-color: #ec2020 !important;
}

.read {
    filter: blur("5px");
    padding-left: 100px;
    padding-right: 100px;
    background-color: lightgreen;
}

#updatearea {
    width: 100%;
    height: 3em;
    padding: 10px;
    margin: 0;
    background-color: lightblue;
}