/* shared styles */
p.error-msg {
    color:red;
    font-weight:bold;
}

/* styles for index.php */
#login-page {
    width: 500px;
    font-size: 15px;
    margin: auto;
}

/* styles for login.php */
#log-in {
    width: 300px;
    margin: auto;
}

/* styles for top_bar.php */
#header {
    width: 100%;
    height: 50px;
    background-color: whitesmoke;
    display: flex;
    justify-content: left;
    flex-direction: row;
    align-items:center;
    padding-left:15px;
}

#nav-button:hover {
    color: gray;
}

#nav-button:active {
    color: white;
}

.top-bar-logo {
    margin-left: 15px;
    margin-right: 7px;
}

/* styles for header.php */
.body-wrapper {
    display: flex; 
    flex-direction: row;
}

.body-content {
    margin: 30px;
}

/* styles for spec form */
div.spec-form {
    width:300px; 
    margin-top: 30px; 
    margin-left: 30px    
}

#submit-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

/* styles for navigation.php */
#nav-drawer {
    width: 0px;
    min-height: calc(100vh - 50px);
    background-color: #323d31;
    position: absolute;
    z-index: 99;
    -webkit-border-radius: 0em .6em .6em 0em;
	border-radius: 0em .6em .6em 0em;
}

#nav-accordion {
    opacity: 0%;
}

#nav-accordion .accordion-header .ui-btn {
    color:white;
    text-decoration: none;
    background-color: #323d31;
    border: none;
}

#nav-accordion .accordion-header .ui-btn:focus {
    box-shadow: none;
    background-color: #0b1709;
}

#nav-accordion .accordion-header .ui-btn:hover {
    box-shadow: none;
    color:#a4c93f;
}

#nav-accordion .accordion-header .ui-collapsible-content {
    background-color: #323d31;
    border: none;
}

#nav-accordion .accordion-header .ui-collapsible-content .ui-link,
#nav-accordion .accordion-header .last-nav-item .ui-link,
#nav-accordion .accordion-header-non-collapse .ui-link {
    color:white;
    text-decoration: none;
    padding: 0.5em 1em;
}

#nav-accordion .accordion-header .last-nav-item .ui-link:hover, 
#nav-accordion .accordion-header-non-collapse .last-nav-item .ui-link:hover {
    color:#a4c93f;
}

/* Mobile first media queries for a screen smaller than --min-width. */
/*This determines the minimum width where the drawer should load closed. Value also to be changed in navigation.js */
@media screen and (min-width: 770px) {
    #nav-drawer {
        width: 300px;
        position: static;
    }

    #nav-accordion{
        opacity: 100%;
    }
}

/* Animations for opening and closing the navigation drawer */
@keyframes close-drawer {
    from {
        width: 300px;
    }
    to {
        width: 0px;
    }
}

@keyframes open-drawer {
    from {
        width: 0px;
    }
    to {
        width: 300px;
    }
}

@keyframes fade-in-drawer {
    from {
        opacity: 0%;
        width: 0%;
    }
    to {
        opacity: 100%;
        width: 100%;
    }
}

@keyframes fade-out-drawer {
    from {
        opacity: 100%;
        width: 100%;
    }
    to {
        opacity: 0%;
        width: 0%;
    }
}