/* Neomorphic Stylesheet */

body {
    margin: 0px;
    font-family: sans-serif;
}

fieldset {
    border: none;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px #dddddd88;
    margin-bottom: 20px;
}

legend {
    background-color: white;
    margin-left: 30px;
    padding: 5px 10px;
    border-radius: 10px;
    box-shadow: 0 -3px 8px #dddddd77;
}

h1 {
    color: #2196F3;
    text-align: center;
    padding-top: 25px;
}

a {
    text-decoration: none;
    color: #3f51b5;
}

a:hover {
    color: #2196F3;
}

a.destructive {
    color: #ef1d05;
    -webkit-touch-callout: none;
}

a.destructive:hover {
    color: #F39621;
}

a h1 {
    margin: 0px;
}

header {
    background-color: #87CEEB;
    box-shadow: 0 0px 15px rgba(102, 102, 102, 0.5);
    margin: 10px;
    border-radius: 10px;
}

footer {
    background-color: #616161;
    color: #fdf5e6;
    padding: 10px 15px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px #444444aa;
}

footer a {
    color: #f0e68c;
}

footer a:hover {
    color: #ffc107;
}

footer div.part {
    width: calc(calc(100% - 10px)/3);
    display: inline-block;
    vertical-align: top;
}

h2 {
    padding-left: 15px;
    color: #673ab7;
    margin: 10px;
}

p {
    padding: 10px 15px;
}

h3 {
    text-decoration: underline;
    padding: 0px 15px;
}

h3 a {
    color: black;
}

h3 a:hover {
    color: #333;
}

pre {
    overflow-x: scroll;
}

pre.wrap {
    white-space: pre-wrap;
}

.download {
    padding: 5px 10px;
}

#headbar {
    margin: 0;
    padding: 0;
    visibility: visible;
}

#headbar ul li {
    float: left;
}

#headbar ul li a, .dropdown-btn {
    display: inline-block;
    padding: 14px 16px;
    color: white;
    text-align: center;
}

#headbar ul {
    background-color: rgba(97, 97, 97, 0.8);
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
}

#headbar ul li a.active {
    background-color: #607d8b;
}

#headbar ul li a:hover:not(.active), .dropdown:hover .dropdown-btn {
    background-color: #778899;
}

li.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fdfdfd;
    min-width: 160px;
    box-shadow: 0 5px 10px #88888888;
    border-radius: 0 0 10px 10px;
}

.dropdown-content a {
    color: black !important;
    padding: 12px 16px;
    display: block !important;
    text-align: left !important;
}

.dropdown-content a:hover {
    background-color: #f1f1f1 !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#content {
    width: calc(85% - 62px);
    display: inline-block;
    border: 1px solid #EEEEEE;
    background-color: #FAFAFA;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 10px;
    box-shadow: 0px 0px 10px rgba(127, 127, 127, 0.2);
}

hr {
    border: 1px solid #eee;
    width: 100%;
    margin: 5px 0px;
}

#navbar {
    width: 15%;
    position: absolute;
    overflow: auto;
    display: inline-block;
    min-height: inherit;
    margin: 0px;
}

#navbar ul {
    list-style-type: none;
    margin: 0px;
    height: 100%;
    padding: 0px;
}

#navbar ul li {
    text-align: center;
}

#navbar ul li a {
    display: block;
    color: black;
    padding: 10px;
    margin: 16px;
    margin-left: 10px;
    background-color: #fafafa;
    box-shadow: 0 0 8px rgba(200, 200, 200, 128);
    border-radius: 8px;
}

#navbar ul li a:hover:not(.active) {
    background-color: #f5f5f5;
}

#navbar ul li a.active {
    background-color: #607d8b;
}

.article-img, .floating-image {
    float: right;
}

.floating-image, .pp {
    box-shadow: 0 0 10px #88888888;
    border-radius: 10px;
}

.article-index {
    background: white;
    box-shadow: 0px 0px 10px rgba(192, 192, 192, 0.9);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 20px;
}

textarea {
    width: calc(100% - 20px);
    border-radius: 10px;
    border: none;
    background-color: #fffae8;
    padding: 10px;
    box-shadow: 0 0 10px #b0b0b088 inset;
    /* iOS fix for box shadows */
    -webkit-appearance: button;
}

textarea:hover {
    background-color: #fffcf0;
}

.menu {
    list-style-type: none;
    padding: 0px;
}

.menu li {
    position: relative;
    display: inline-block;
    font-size: medium;
    font-weight: normal;
    margin: 10px;
}

.menu li a {
    color: #fdf5e6;
    top: initial;
    right: initial;
    display: block;
    box-shadow: 0 0 10px #3f51b588;
    padding: 20px;
    background-color: #673ab7;
    vertical-align: baseline;
    border-radius: 10px;
}

.menu li a:hover {
    background-color: #9c27b0;
}

.msg {
    position: absolute;
    top: 50px;
    display: block;
    border: 1px solid black;
    background-color: #616161;
    padding: 10px;
    animation: msg 5s ease-in 10s 1 normal forwards running;
    -webkit-animation: msg 5s ease-in 10s 1 normal forwards running;
}
.msg-red {
    border: 1px solid #f44336;
    background-color: #ff5722;
}
.msg-green {
    border: 1px solid #4CAF50;
    background-color: #8bc34a;
}

@keyframes msg
{
    from {opacity:1;}
    to {opacity:0; visibility: hidden;}
}

/*Safari and Chrome:*/
@-webkit-keyframes msg
{
    from {opacity:1;}
    to {opacity:0; visibility: hidden;}
}

table.collapse {
    border-collapse: collapse;
    border: 1px solid gray;
}

table.collapse td, table.collapse th {
    border: 1px solid gray;
    padding: 10px;
}

table.collapse tr:hover {
    background-color: #ededed !important;
}

table.collapse tr {
    background-color: #fefefe;
}

table.collapse tr:nth-child(even) {
    background-color: #f5f5f5;
}

.pages-content {
    display: block;
    text-align: left;
    margin-left: 30px;
    padding-bottom: 10px;
}

.pages {
    display: inline-block;
    background-color: #616161;
    width: auto;
}

.pages a {
    color: #f1f1f1;
}

#results {
    position: absolute;
    width: 300px;
    display: none;
    border-width: 0px 1px 1px;
    border-style: solid;
    border-color: rgb(170, 170, 170);
    background-color: rgb(255, 255, 255);
}

#search {
    width: 300px;
}

#subject {
    width: 400px;
}

#results div {
    padding: 2px 4px;
    text-align: left;
    border: 0px;
    background-color: #fff;
}

#results div:hover, .result_focus {
    background-color: #f1f1f1 !important;
}

label {
    width: 250px;
    display: inline-block;
    margin-left: 10px;
}

input:not([type=checkbox]) {
    margin-bottom: 5px;
    padding: 5px 10px;
    border-radius: 10px;
    border: none;
    background-color: #edf9ff;
    box-shadow: 0 0 6px #9e9e9e88 inset;
    /* iOS fix for box shadows */
    -webkit-appearance: button;
}

input[type=submit] {
    box-shadow: 0 0 6px #9e9e9e88;
}

input:hover {
    background-color: #e8fdff;
}

input[type="submit"] {
    cursor: pointer;
    margin-left: 30px;
}

input[type=checkbox] + label {
    display: inline;
}

.bordered {
    background-color: #eee;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px #9e9e9e88;
    margin-bottom: 15px;
}

.pm, .comment-content {
    margin-left: 100px;
}

.right {
    float: right;
}

.small {
    size: 8px;
    color: gray;
}

.notification
{
    padding: 2px 4px 2px 4px;
    color: #87CEEB;
    font-weight: bold;
    border-radius: 50%;
    background-color: #2196F3;
}

.pp {
    float: left;
    margin-right: 10px;
}

.comment {
    min-height: 100px;
}

.comment-content {
    padding: 10px;
    background-color: #f1f1f1;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px #9e9e9e88;
}

.onlyMobile {
    display: none;
}

.onlyDesktop {
    display: block;
}

.product-overview {
    display: inline-block;
    margin: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(192, 192, 192, 0.9);
}
.product-overview img {
    vertical-align: top;
    display: block;
    margin: auto;
}
.product-overview figcaption {
    text-align: center;
}

/*Media queries */
@media (prefers-color-scheme: dark) { /* Dark mode */
    body {
        background-color: #222;
        color: #eee;
    }

    #content {
        border: 1px solid #333;
        background-color: #000;
    }
    
    .comment-content, .bordered {
        border-color: #888;
        background-color: #222;
    }
    
    header {
        background-color: #2196F3;
    }
    
    h1 {
        color: #87CEEB;
    }
    
    h2 {
        color: #c0ade4;
    }
    
    a {
        text-decoration: none;
        color: #2196F3;
    }
    
    a:hover {
        color: #3f51b5;
    }
    
    footer {
        background-color: #222;
    }
    
    h3 a {
        color: #eee;
    }
    
    h3 a:hover {
        color: #ccc;
    }
        
    .dropdown-content {
        background-color: #555;
    }
    
    .dropdown-content a {
        color: #eee !important;
    }
    
    .dropdown-content a:hover {
        background-color: #222 !important;
    }
    
    table.collapse tr:hover {
        background-color: #555 !important;
    }
    
    table.collapse tr {
        background-color: #111;
    }
    
    table.collapse tr:nth-child(even) {
        background-color: #222;
    }
    
    input, textarea, button, select {
        background-color: #555;
        color: #eee;
    }
    
    input:hover, textarea:hover, button:hover, select:hover {
        background: #888;
    }
    
    ::placeholder {
        color: #999;
    }
    
    img {
        opacity: .75;
        transition: opacity .5s ease-in-out;
    }
    
    img:hover {
        opacity: 1;
    }
    
    hr {
        border-color: #333;
    }
    
    .article-index {
        background: black;
        box-shadow: 0px 0px 10px rgba(127, 127, 127, 0.9);
    }
    
    fieldset {
        background: black;
    }
    
    legend {
        background: black;
    }
    
    #navbar ul li a {
        background: black;
        color: white;
        box-shadow: 0 0 8px rgba(100, 100, 100, 128);
    }
    
    #navbar ul li a:hover:not(.active) {
        background: #333;
    }

    .comment-content {
        box-shadow: 0 0 10px #cccccc88;
    }
}

@media only screen and (max-width: 699px), (orientation: portrait) {
    footer div.part {
        display: block;
        width: 100%;
    }
    
    .onlyMobile {
        display: block;
    }
    
    .onlyDesktop {
        display: none;
    }
    
    #navbar {
        display: none;
    }
    
    #content {
        width: calc(100% - 62px);
    }
    
    #headbar {
        visibility: hidden;
        position: fixed;
        top: 0;
        left: 0;
        background-color: rgba(135, 206, 235, 0.9);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        z-index: 200;
        padding-bottom: 62px;
        border-radius: 10px;
        margin: 5px;
        box-shadow: 0 0 10px #55555588;
    }

    #headbar ul li a, #headbar ul li div a, .dropdown-content a {
        display: block;
        padding: 14px 26px;
        color: black;
        text-align: left;
        width: calc(100% - 52px);
        background-color: transparent;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-btn {
        display: none !important;
        padding: 0;
    }
    
    .dropdown-content {
        display: block;
        width: 100%;
        position: relative;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .dropdown-content a:hover {
        background-color: #00bcd4 !important;
    }
    
    #headbar ul li {
        float: none;
    }

    #headbar ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        width: 230px;
        overflow: auto;
        height: calc(100% - 57px);
        position: relative;
        top: 57px;
        background-color: transparent;
        border-radius: 0;
    }

    #headbar ul li a.active {
        background-color: #2196F3;
    }

    #headbar ul li a:hover:not(.active), .dropdown:hover .dropdown-btn {
        background-color: #00bcd4;
    }
    
    #mobile-menubtn {
        position: fixed;
        left: 15px;
        top: 15px;
        padding: 5px;
        border-radius: 50%;
        background-color: #f1f1f1;
        cursor: pointer;
        z-index: 300;
        opacity: 1;
        box-shadow: 0 0 10px #88888888;
    }
    
    #mobile-screendisabling {
        visibility: hidden;
        position: fixed;
        top: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.4);
        width: 100%;
        height: 100%;
        z-index: 100;
    }
    
    h2 {
        padding: 0 0 12px 0;
        text-align: center;
    }
}


@media only screen and (max-width: 699px) and (prefers-color-scheme: dark),
(orientation: portrait) and (prefers-color-scheme: dark) {
    #mobile-menubtn {
        filter: invert(100%);
    }
    
    #headbar {
        background-color: rgba(51, 51, 51, 0.7);
        color: #eee;
    }
        
    #headbar ul li a, #headbar ul li div a, .dropdown-content a {
        color: #eee;
    }

    .dropdown-content a:hover,  #headbar ul li a:hover {
        background-color: #555 !important;
    }
}

