/* ============================================================
   VirtualPhotonics — site.css
   ============================================================
     images/favicon.ico
     images/header.png
     images/logo.png
     images/logo-small.png
     images/main-background.png
     images/sidebar-background.gif
   ============================================================ */

/*Yahoo browser reset
----------------------------------------------------------*/

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p,
blockquote, th, td {
    margin: 0;
    padding: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

fieldset, img {
    border: 0;
}

address, caption, cite, code, dfn, em, strong, th, var {
    font-style: normal;
    font-weight: normal;
}

ol, ul {
    list-style: none;
}

caption, th {
    text-align: left;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: normal;
}

abbr, acronym {
    border: 0;
}

q:before, q:after {
    content: '';
}

/*Defaults
----------------------------------------------------------*/

html {
    height: 100%;
}

body {
    font: normal 100% Calibri, Tahoma, sans-serif;
    background: url(../images/header.png) top left repeat-x #fff;
    height: 100%;
    text-align: left;
    color: #333;
}

/* ---------- Headings and defaults ---------- */

h1, h2 {
    font-weight: normal;
    font-style: normal;
    color: #670404;
    border-bottom: 1px dotted #e5e5e5;
}

h3, h4, h5, h6, legend {
    font-weight: normal;
    font-style: normal;
    color: #670404;
}

h1 {
    font-size: 170%;
}

h2 {
    font-size: 160%;
}

h3 {
    font-size: 140%;
}

h4 {
    font-size: 130%;
}

h5 {
    font-size: 120%;
}

h6 {
    font-size: 105%;
}

p {
    line-height: 24px;
    margin: 12px 0 32px 0;
}

    p.small {
        line-height: 22px;
        font-size: 85%;
    }

a {
    color: #05325f;
    text-decoration: none;
    font-weight: bold;
}

ul.square {
    list-style: square;
    list-style-position: inside;
    line-height: 24px;
    margin: 0 0 0 12px;
}

ol.decimal {
    list-style: decimal;
    list-style-position: inside;
    line-height: 24px;
    margin: 0 0 0 12px;
}

/* Forms
----------------------------------------------------------*/

input[type="text"], #CommentText, #password {
    border: 1px solid #DDDEDF;
    display: block;
}

fieldset {
    margin: 20px 0;
}

    fieldset div {
        margin: 16px 0 0 0;
    }

legend {
    font-size: 105%;
    border: none;
}

label {
    display: block;
    margin: 0 0 2px 0;
}

input[type="text"], #CommentText, #password {
    border-color: #cacec6;
    padding: 2px;
    width: 90%;
}

input[type="checkbox"] {
    margin: 2px 0 20px 10px;
}

input[type="submit"], input[type="button"], .button {
    font: 90% Verdana, Geneva, Tahoma, sans-serif;
    color: #333;
    padding: 2px 14px;
    display: block;
    margin: 2px 0 20px 0;
    font-weight: 600;
}

.forcheckbox {
    margin: 0 0 0 4px;
    display: inline;
}

/* ---------- Layout ---------- */

#header {
    float: left;
    width: 500px;
    height: 138px;
}

    #header h1 {
        font-family: "Georgia", Times New Roman, Times, serif;
        background: url(../images/logo.png) no-repeat left top;
        height: 138px;
        color: #fff;
        text-transform: uppercase;
        text-align: left;
        border-bottom: none;
    }

        #header h1 a {
            color: white;
            font-weight: normal;
        }

#logindisplay {
    float: right;
    margin: 140px 20px 0 0;
    color: White;
}

    #logindisplay a {
        color: White;
        text-decoration: none;
    }

        #logindisplay a:hover {
            color: #ffea9b;
        }

#layout-wrapper {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0em auto;
    background: url(../images/main-background.png) no-repeat right top;
}

#layout-main {
    clear: both;
    position: absolute;
    top: 170px;
    border-top: none;
    min-height: 555px;
    background: url(../images/sidebar-background.gif) no-repeat right top #fff;
}

#layout-content {
    float: left;
    width: 60%;
}

#aside-second {
    float: right;
    margin: 4px 0 0 0;
    min-height: 400px;
    margin-bottom: 30px;
}

    #aside-second li {
        list-style-type: none;
        padding: 0 0 20px 0;
    }

    #aside-second ul {
        list-style-type: none;
        line-height: normal;
    }

.indent {
    padding-left: 20px;
}

#content ul {
    list-style: disc inside;
    line-height: 25px;
}

/* ---------- Navigation ---------- */

.menu {
    font-family: "Georgia", Times New Roman, Times, serif;
    width: 100%;
    text-align: left;
    display: inline;
    position: absolute;
    top: 130px;
    left: 0px;
}

ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
    float: left;
}

    ul.menu li {
        float: left;
        margin: 0 0 0 15px;
    }

        ul.menu li a,
        ul.menu li a:visited,
        ul.menu li a:active {
            display: block;
            padding: 12px 12px 10px 12px;
            color: #e2e4dd;
            font-size: 83%;
            font-weight: bold;
            text-transform: uppercase;
            text-decoration: none;
        }

            ul.menu li a:hover {
                color: #ffea9b;
            }

        ul.menu li.On {
        }

#menucontainer {
    text-align: center;
}

#layout-footer {
    font-size: 70%;
    color: #918e8e;
    background-color: White;
    position: fixed;
    clear: both;
    text-align: center;
    border-top: 1px solid #660000;
    width: 100%;
    padding: 4px 0 4px 8px;
    bottom: 0px;
}

    #layout-footer .credits {
        font-size: 90%;
    }

    #layout-footer .menu {
        top: 0px;
        color: #918e8e;
        position: relative;
        text-align: center;
    }

        #layout-footer .menu a {
            font-family: Calibri, Tahoma, sans-serif;
            color: #000;
            margin: 0 8px;
            font-weight: normal;
            text-transform: none;
        }

.dotnest-credits {
    margin: 0;
}

/* Hide author and edit links on published site */
.published, .manage, #comments {
    display: none;
}

/* Software page layout */
.section-wide {
    width: 50%;
    margin: 0;
}

.section-narrow {
    width: 25%;
    margin: 0;
}

.section-middle {
    width: 25%;
    margin: 0;
}

.left {
    float: left;
}

.right {
    float: right;
}

.panel {
    text-align: center;
    height: auto;
    margin: 10px;
    padding: 10px;
    border: solid 4px darkgrey;
    background-color: whitesmoke;
}

.image-side {
    width: 48%;
}

    .image-side img {
        width: 100%;
    }

.image-top {
    width: 100%;
}

    .image-top img {
        width: 100%;
    }

.description {
    min-height: 62px;
    padding: 45px 5px;
    font-size: larger;
}

.description-horizontal {
    min-height: 50px;
    padding: 50px 10px 20px;
    font-size: larger;
}

.middle {
    min-height: 32px;
    padding: 30px 10px 20px;
    font-size: x-large;
    font-weight: bold;
}

.software-images {
    width: 50%;
    padding-left: 20px;
    float: right;
}

.clear {
    clear: both;
}

.panel-footer {
    font-weight: bolder;
    font-size: smaller;
    text-transform: uppercase;
}

/* Mobile Sizing */
@media (max-width: 768px) {
    #header {
        width: 100%;
    }

        #header h1 {
            background: url(../images/logo-small.png) no-repeat left top;
            font-size: 90%;
            padding: 50px 0 0 90px;
            width: auto;
        }

    #layout-wrapper {
        background-image: none;
    }

    #layout-content {
        width: 100%;
    }

    #aside-second {
        width: 100%;
    }

    ul.menu {
        float: none;
        z-index: 100;
        background-color: #490000e6;
        display: none;
    }

        ul.menu.expanded {
            display: block;
        }

    .menu {
        font-family: "Georgia", Times New Roman, Times, serif;
        width: 100%;
        text-align: left;
        -webkit-transition: all 0.5s ease;
        -moz-transition: all 0.5s ease;
        -ms-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
        transition: all 0.5s ease;
    }

    ul.menu li {
        float: none;
        margin: 0 0 0 15px;
    }

    #aside-second {
        float: left;
    }

    #layout-main {
        background: none;
        padding: 10px;
    }

    .software-images {
        width: 100%;
    }

    .software-tiles {
        font-size: 50%;
        margin-bottom: 20px;
    }

    .description-horizontal {
        min-height: 58px;
        padding: 0;
    }

    .description {
        min-height: 78px;
        padding: 0;
    }

    .middle {
        padding: 0;
    }

    .panel {
        padding: 5px;
        margin: 5px;
    }
}

@media (min-width: 415px) {
    #header h1 {
        font-size: 120%;
        padding: 60px 0 0 90px;
    }

    #layout-main {
        padding: 20px;
    }

    #layout-wrapper {
        background: url(../images/main-background.png) no-repeat right top;
    }

    #aside-second {
        width: 100%;
        float: left;
    }

    .software-tiles {
        font-size: 75%;
    }
}

.nav-toggle {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    cursor: pointer;
    height: 30px;
    right: 20px;
    position: absolute;
    top: 135px;
    width: 30px;
    z-index: 200;
}

    .nav-toggle:hover {
        opacity: 0.8;
    }

    .nav-toggle .nav-toggle-bar,
    .nav-toggle .nav-toggle-bar::after,
    .nav-toggle .nav-toggle-bar::before {
        position: absolute;
        top: 50%;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        -webkit-transition: all 0.5s ease;
        -moz-transition: all 0.5s ease;
        -ms-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
        transition: all 0.5s ease;
        background: white;
        content: '';
        height: 4px;
        width: 100%;
    }

    .nav-toggle .nav-toggle-bar {
        margin-top: 0;
    }

        .nav-toggle .nav-toggle-bar::after {
            margin-top: 8px;
        }

        .nav-toggle .nav-toggle-bar::before {
            margin-top: -8px;
        }

    .nav-toggle.expanded .nav-toggle-bar {
        background: transparent;
    }

        .nav-toggle.expanded .nav-toggle-bar::after,
        .nav-toggle.expanded .nav-toggle-bar::before {
            background: white;
            margin-top: 0;
        }

        .nav-toggle.expanded .nav-toggle-bar::after {
            -ms-transform: rotate(45deg);
            -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
        }

        .nav-toggle.expanded .nav-toggle-bar::before {
            -ms-transform: rotate(-45deg);
            -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
        }

@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }

    #header h1 {
        font-size: 130%;
        padding: 45px 0 0 170px;
    }

    #layout-main {
        padding: 16px 0 35px 27px;
        min-width: 90%;
    }

    #aside-second {
        float: right;
        width: auto;
        padding-right: 40px;
    }

    .software-tiles {
        font-size: 100%;
    }
}

@media (max-width: 991px) {
    ul.menu li a,
    ul.menu li a:visited,
    ul.menu li a:active {
        padding: 14px 12px;
        font-size: 63%;
    }
}

@media (max-width: 886px) {
    #layout-main {
        background: none;
        padding: 10px;
    }

    #aside-second {
        float: left;
    }

    #layout-content {
        width: 100%;
    }

    ul.menu li a,
    ul.menu li a:visited,
    ul.menu li a:active {
        padding: 14px 10px;
        font-size: 60%;
    }
}

@media (max-width: 768px) {
    ul.menu li a,
    ul.menu li a:visited,
    ul.menu li a:active {
        font-size: 100%;
    }
}
