::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}
::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

main {
    margin: 0 20px 0 20px;
    min-heightz: 690px;
}
                
main section {
    margin-top: 2em;
    margin-left: 40px;
    width: 80%;
    padding-bottom: 1em;
    z-index: 9999 !important;
}

.menubar {
    height: 90px;
    display: flex;
    justify-content: space-between;
    background-image: url("../images/header_gradient_nummisuutarit.png"); 
    background-repeat: repeat-x;
    background-color: #81a865;
}

.toolbar {
    height: 35px;
    display: flex;
    justify-content: flex-start;
    background-image: url("../images/menu_gradient.png");
    background-repeat: repeat-x;
    background-color: white;
    font-family: Arial, Verdana, Tahoma, sans-serif;
}

.toolbar paper-listbox {
    background: solid;
}                

.toolbar a:nth-child(1), .toolbar a:nth-child(2) {
    margin-right: 1em;
}
.toolbar a, paper-button, .toolbar a:active, paper-button:active, .breadcrumbs a, .breadcrumbs a:active, .footer a, .footer a:active {
    color: black;
    cursor: pointer;
    text-decoration: none;
    text-transform: none;
    display: inline-block;
    font-weight: normal;
    font-family: Arial, Verdana, Tahoma, sans-serif;
    padding: 0px;
}

a:focus, paper-button:focus {
    color: #cc6600;
}

paper-button:hover, a:hover {
    color: #cc6600;
}     

.toolbar paper-menu-button paper-listbox {
    display: flex;
    flex-direction: column;
}

.toolbar paper-menu-button#first paper-listbox {
    padding: 10px;
}

.toolbar paper-menu-button#first paper-listbox a:nth-child(1) {
    margin-bottom: 1em;
}



.toolbar paper-listbox a:selected {
    background-color: #F0F0F0;
}

.header_border {
    width: 100%;
    height: 12px;
    border-bottom: 1px solid black;
    background-color: #cc6600;
    display: flex;
}

.appname {
    padding-top: 15px;
    padding-bottom: 15px;
}    

.tp-title, .tp-title-author {
    font-family: Georgia, serif;
    padding: 0px;
}
                
.tp-title {
    font-size: 36px;
    margin-top: 0px;
}
                
.tp-title-author {
    font-size: 16px;
    margin-bottom: 0px;
}

.tp-title span {
    color: #9e9e9e;
    font-size: 26px;
    margin-top: 12px;
}       

#side_menu {
    display: none;
}
                
.footer {
    height: 64px;
    width: 100%;
    border-top: solid 1px #bababa !important;
    display: flex;
    justify-content: left;
    background-image: url("../images/footer_gradient.gif");
    z-index: 9999;
}
                
.footer a {
    margin-right: 10px;
    font-size: 80%;
}

.footer a:nth-child(3) {
    margin-left: 5%;
}

.dropdown-content {
    top: 50;
}
                
paper-listbox {
    padding: 0px;
    top: 30px;
}
                
#fdbck ul {
    padding: 0px;
    list-style-type: none;
    margin-bottom: 1em;
}
                
#fdbck ul li ul li {
    margin-bottom: 5px;
}

#fdbck ul li ul li span {
    font-style: italic;
}

#fdbck p #submit:focus {
    color: #cc6600 !important;
}

dd {
    display: inline !important;
}
@media (max-width: 1023px) {
    #side_menu {
        display: inline-block !important;
    }
    
    pb-grid {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    pb-panel {
        width: 95%;
        height: 400px;
        margin-bottom: 1em;
    }
    
    #open_float {
        display: none;
    }
    
    div.search-panel {
        display: none;
    }
}    

app-drawer a {
    padding-bottom: 0.5em;
}

paper-item em {
    margin-right: 2px !important;
}

