/**
 * Author: Jan Sedláček
 */


body {
    background-image: url('../images/background/auth-wrapper-bg.jpg');
    background-attachment: fixed;
    background-size: 100% 100%;

    display: grid;
    grid-template-areas:
        "toolbar toolbar user"
        "nav main main";
        /*"footer footer footer";*/
    grid-template-rows: 80px 1fr; /*50px;*/
    grid-template-columns: minmax(75px, max-content) auto 20%;
    row-gap: 10px;
    column-gap: 10px;
    height: 100vh;
    margin: 0;

    position: relative;
    overflow: hidden;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

toolbar,
footer,
main,
nav,
user {
    padding: 1.2em;
    background-color: rgba(108, 150, 199, 0.85);
    /*rgba(157, 255, 0, 0.9);*/
}

#pageHeader {
    grid-area: toolbar;
}

#pageFooter {
    grid-area: footer;
}

#mainArea {
    grid-area: main;
    /*max-height: calc(100vh - 150px);*/
    /*otherwise it has tendency to push footer out*/
    overflow-x: auto;
}

#sideNav {
    grid-area: nav;
    /*max-height: calc(100vh - 150px);*/
}

#siteUser {
    grid-area: user;
    display: flex;
    justify-content: space-between;
}

/* Stack the layout on small devices/viewports. */
@media all and (max-width: 575px) {
    body {
        grid-template-areas:
            "toolbar"
            "nav"
            "main"
            "user"
            /*"footer";*/ !important;
        grid-template-rows: 80px 1fr 1fr 70px /*70px;*/ !important;
        grid-template-columns: 1fr !important;
    }
}



/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
}

/* Dropdown Button */
.dropbtn {
    background-color: #3498DB;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* Dropdown button on hover & focus */
.dropbtn:hover,
.dropbtn:focus {
    background-color: #2980B9;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

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

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}

a.raised-button,
button.raised-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 64px;
    border: none;
    outline: none;
    line-height: inherit;
    user-select: none;
    -webkit-appearance: none;
    overflow: visible;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    margin: 10px;
    cursor: pointer;
}

.raised-button.bg-white {
    background-color: rgba(255, 255, 255, 0.719);
    color: black;
}

.raised-button.bg-blue {
    background: #4E9CAF;
    color: white;
}

.center {
    margin: auto !important;
    width: fit-content;
    padding: 10px;
    /*transform: translateY(-15%);*/
}


a[disabled],
a[disabled]:hover {
    cursor: not-allowed;
    background-color: rgb(223, 55, 55);
    color: rgb(0, 0, 0);
}

grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 5px;
}

grid p {
    text-align: center;
    margin: 5px;
}

grid div.separator {
    grid-column: span 3;
    height: 2px;
    border-bottom: 1px solid black;
    width: 100%;
}