/* 
    Author: J.P. O’Malley
*/

@font-face {
    font-family: "Helvetica Backup";
    src: url(../fonts/helvetica.woff);
}

@font-face {
    font-family: "Helvetica Backup";
    font-style: oblique;
    src: url(../fonts/helvetica-oblique.woff);
}

@font-face {
    font-family: "Helvetica Backup";
    font-weight: bold;
    src: url(../fonts/helvetica-bold.woff);
}

@font-face {
    font-family: "Helvetica Backup";
    font-weight: bold;
    font-style: oblique;
    src: url(../fonts/helvetica-bold-olique.woff);
}

@font-face {
    font-family: "PixelMplus12";
    src: url(../fonts/pixelmplus12-regular.woff);
}

@font-face {
    font-family: "PixelMplus12";
    font-weight: bold;
    src: url(../fonts/pixelmplus12-bold.woff);
}

q:before { 
    content: "“";
}

q:after { 
    content: "”";
}

.noDrag {
    /*-webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    user-drag: none;*/
}

.noSelect {
    /*-webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;*/
}

.noDisplay {
    display: none;
}

.hidden {
    visibility: hidden;
}

body {
    font-family: Helvetica, "Helvetica Backup", sans-serif;
    font-size: 16px;
    background: #61009e;
    color: white;
    margin: 0;
}

    #homeIcon, #topNav {
        z-index: 3;
        box-shadow: 0 2.5px 5px 0 rgba(0, 0, 0, 0.2);
        /*box-shadow: 0 2.5px 5px 0 rgba(97, 0, 158, 0.2);*/
    }
    
    #homeIcon {
        position: fixed;
        top: 5px;
        left: 5px;
        height: 25px;
        width: 25px;
    }

        #homeIcon div {
            height: 100%;
            width: 100%;
            background-image: url(../images/home_ico.svg);
            background-repeat: no-repeat;
            background-size: cover;
        }

            #homeIcon:hover div {
                height: 100%;
                width: 100%;
                background-image: url(../images/home_ico_hov.svg);
            }

    #topNav {
        position: fixed;
        top: 0px;
        left: 35px;
        overflow: hidden;
        background-color: #d8c0e7 /*#333*/;
        height: 35px;
        width: calc(100% - 35px);
        border-bottom-left-radius: 4.0254234375px;
    }

        /* Style the links inside the navigation bar */
        #topNav a {
            float: left;
            display: -webkit-flex;
            display: flex;
            color: #61009e;
            /*color: #f2f2f2;*/
            text-align: center;
            padding: 8px 16px;
            text-decoration: none;
            font-size: 16px;
            box-sizing: border-box;
        }

        /* Change the color of links on hover */
        #topNav a:hover {
            background: #ebdff3;
            /*background-color: #ddd;
            color: #61009e;*/
        }

        /* Add a color to the active/current link */
        #topNav a.activeTab {
            background: #61009e;
            /*background: #9100ce;*/
            /*background-color: #4caf50;*/
            color: white;
            /*pointer-events: none;*/
        }
        
        #topNav a.activeTab:hover {
            background: #9100ce;
        }
        
            #topNav a span {
                margin: auto;
            }
        
    header#topNav > div {
        float: left;
    }
    
        header#topNav > div > * {
            float: right;
        }
    
        header#topNav .logo {
            height: 35px;
            /*width: calc(100% - 466.515625px);*/
            /*width: calc(100% - 496.75px);*/
            max-width: calc(1300 / 542 * (34px - 8px) + 8px);
        }
        
        header#topNav img.logo {
            box-sizing: border-box;
            padding: 4px;
            object-fit: contain;
        }
        
            header#topNav .logo > img {
                display: block;
                padding: 4px;
                box-sizing: border-box;
                object-fit: contain;
                height: 100%;
                width: 100%;
                position: relative;
            }
            
            header#topNav .logo > .logoTitle {
                z-index: 5;
            }
            
            @-o-keyframes logoSpin {
                from {transform: rotate(0deg);}
                to {transform: rotate(360deg);}
            }
            
            @-moz-keyframes logoSpin {
                from {transform: rotate(0deg);}
                to {transform: rotate(360deg);}
            }
            
            @-webkit-keyframes logoSpin {
                from {transform: rotate(0deg);}
                to {transform: rotate(360deg);}
            }
            
            @keyframes logoSpin {
                from {transform: rotate(0deg);}
                to {transform: rotate(360deg);}
            }
            
            header#topNav .logo > .logoBackground {
                z-index: 4;
                top: -100%;
                -o-animation: logoSpin 90s linear infinite;
                -moz-animation: logoSpin 90s linear infinite;
                -webkit-animation: logoSpin 90s linear infinite;
                animation: logoSpin 90s linear infinite;
            }

/*            header#topNav .logo img {
                top: 0;
                left: 0;
                padding: 4px;
                height: 100%;
                width: 100%;
                object-fit: contain;
                box-sizing: border-box;
            }*/
            
    #content {
        margin-left: auto;
        margin-right: auto;
        padding: 35px;
        max-width: 990px;
        /*min-height: calc(100vh - 3 * 35px - 2 * 1.44em);*/
    }
    
    #content, footer {
        z-index: 1;
    }
    
    #topNav + #content {
        padding-top: 70px;
    }

        figure {
            float: right;
            width: 250px;
            margin: 0px;
            margin-top: 35px;
            margin-bottom: 35px;
            border: 3px solid white;
            border-radius: 25px;
            padding: 5px;
        }

            figure img {
                display: block;
                border-radius: 17px;
                max-width: 100%;
            }

            figcaption {
                text-align: center;
                margin-top: 5px;
                margin-left: 7.5px;
                margin-right: 7.5px;
            }

        .articleWrapper {
            margin-top: 70px;
            margin-bottom: 70px;
            border: 3px solid white;
            border-radius: 25px;
            padding: 1.44em;
        }

        .articleWrapper:first-child {
            margin-top: 0;
        }

        .articleWrapper:last-child {
            margin-bottom: 0;
        }

            article {
                width: calc(100% - 266px - 1.44em);
                overflow: hidden;
            }

            article:only-child {
                width: auto;
                max-width: calc(990px - 266px - 1.44em);
                margin-left: auto;
                margin-right: auto;
            }

                article > * {
                    padding-left: 1.44em;
                    padding-right: 1.44em;
                }

                h1 {
                    font-size: 50px;
                    font-weight: bold;
                    text-decoration: none;
                    text-transform: none;
                    margin: 0 0 0.75em 0;
                    padding: 0;
                }

                    h1 a {
                        color: inherit;
                    }
                
                

                .section {
                    background: white;
                    border-radius: 10px;
                    color: black;
                    line-height: 1.2;
                    overflow: auto;
                    margin-top: 1.44em;
                    margin-bottom: 1.44em;
                    padding: 1.44em;
                }

                    .section > :first-child,
                    .section > header:first-child > :first-child,
                    footer > :first-child {
                        margin-top: 0;
                    }

                    .section > :last-child, footer > :last-child {
                        margin-bottom: 0;
                    }

                p {
                    margin-top: 1.44em;
                    margin-bottom: 1.44em;
                }

                table {
                    border-collapse: separate;
                    border-spacing: 5px 0px;
                    margin-left: -5px !important;
                    margin-right: -5px !important;
                }

                    thead > tr, tfoot > tr {
                        background: #9e9e9e;
                    }

                    tbody > tr:nth-child(even) {
                        background: #e6e6e6;
                    }

                    tbody > tr:nth-child(odd) {
                        background: #cccccc;
                    }

                        th, td {
                            padding: 0.3125em;
                        }

                article > :last-child {
                    margin-bottom: 0;
                }
                
                article.fullWidth:only-child {
                    width: 100%;
                    max-width: none;
                }

                    .gallery {
                        display: -webkit-flex;
                        display: flex;
                        -webkit-flex-flow: wrap;
                        flex-flow: wrap;
                        -webkit-justify-content: space-around;
                        justify-content: space-around;
                        padding: calc(1.44em / 2);
                        background: #d8c0e7;
                        border: solid 5px white;
                        border-radius: calc(17px + 1.44em);
                    }

                        .gallery figure {
                            float: none;
                            margin: calc(1.44em / 2);
                            width: calc(33.333333333% - 1.44em);
                            box-sizing: border-box;
                            background: #61009e;
                        }

                            .gallery .imgContainer {
                                width: calc(50% - 3px);
                                border: solid 3px #d8c0e7;
                                border-radius: 17px;
                                padding: calc(50% - 3px);
                                box-sizing: border-box;
                                position: relative;
                                background: white;
                            }

                                .gallery .imgContainer img {
                                    position: absolute;
                                    width: 100%;
                                    height: 100%;
                                    top: 0;
                                    left: 0;
                                    border-radius: 14px;
                                    padding: 5px;
                                    object-fit: contain;
                                    box-sizing: border-box;
                                }

    footer {
        margin: 0 auto;
        padding: 1.44em calc(1.44em + 35px);
        max-width: 990px;
    }
    
        footer p {
            text-align: center;
        }
    
    fieldset {
        margin: 1em 2px 0.75em 2px;
        border: 1.5px solid gray;
    }
    
        fieldset:first-child,
        legend:first-child + fieldset {
            margin-top: 0;
        }

        fieldset:last-child {
            margin-bottom: 0;
        }
        
            #name > div {
                display: inline-block;
                margin: 0;
            }
            
            #sex {
                margin-left: 0;
                margin-right: 0;
            }
    
                #sexLabel {
                    display: inline-block;
                    font-size: inherit;
                }

                #sex .radioRow {
                    display: inline-block;
                }
                
                    #sex .radioRow .radioElem > input {
                        margin-left: 10px;
                    }
    
    input, select {
        font-family: inherit;
        font-size: inherit;
    }
    
    /*input:matches([type="color"],
                  [type="date"],
                  [type="datetime-local"],
                  [type="email"],
                  [type="month"],
                  [type="number"],
                  [type="password"],
                  [type="search"],
                  [type="tel"],
                  [type="text"],
                  [type="time"],
                  [type="url"],
                  [type="week"]) {*/
    input[type="color"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="email"],
    input[type="month"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="text"],
    input[type="time"],
    input[type="url"],
    input[type="week"] {
        -webkit-appearance: none;
        appearance: none;
        margin: 2px;
        padding: 0.2em;
        width: 14em;
        border: thin solid lightgray;
    }
    
    input[type="color"]:focus,
    input[type="date"]:focus,
    input[type="datetime-local"]:focus,
    input[type="email"]:focus,
    input[type="month"]:focus,
    input[type="number"]:focus,
    input[type="password"]:focus,
    input[type="search"]:focus,
    input[type="tel"]:focus,
    input[type="text"]:focus,
    input[type="time"]:focus,
    input[type="url"]:focus,
    input[type="week"]:focus {
        outline: none;
        box-shadow: inset 0 0 3px -1px rgba(0, 0, 0, 0.25);
    }
    
    input[type="color"].error,
    input[type="date"].error,
    input[type="datetime-local"].error,
    input[type="email"].error,
    input[type="month"].error,
    input[type="number"].error,
    input[type="password"].error,
    input[type="search"].error,
    input[type="tel"].error,
    input[type="text"].error,
    input[type="time"].error,
    input[type="url"].error,
    input[type="week"].error {
        border-color: red;
    }
    
    input[type="submit"] {
        display: block;
        margin-top: 1.2em;
    }
    
    label {
        display: block;
        margin-top: 0.75em;
        font-size: 0.9em;
    }
    
    .checkboxElem, .radioElem {
        white-space: nowrap;
        margin: 0;
        cursor: default;
    }
    
        .checkboxLabel, .radioLabel {
            display: inline-block;
            font-size: inherit;
        }
    
    .checkboxRow, .radioRow {
        margin-left: 0;
        margin-right: 0;
    }

        .checkboxRow .checkboxElem,
        .radioRow .radioElem {
            display: inline-block;
        }
        
            .checkboxRow > .checkboxElem:not(:first-child) > input,
            .radioRow > .radioElem:not(:first-child) > input {
                margin-left: 10px;
            }
            
            .checkboxRow:first-child > label,
            legend:first-child + .checkboxRow label,
            .radioRow:first-child > label,
            legend:first-child + .radioRow label {
                margin-top: 0;
            }
    
    .errorMsg {
        display: block;
        margin-top: 2px;
        margin-bottom: 0.75em;
        font-size: 0.875em;
        color: red;
    }
    
    .errorMsg:last-child {
        margin-bottom: 0;
    }
    
    form *:not(legend) {
        margin-left: 2px;
        margin-right: 2px;
    }
          
#sitemap {

}

    #sitemap article {
        overflow: visible;
    }

        #sitemap #labs {
            background: #d8c0e7;
            padding: 5px;
            border: 3px solid white;
            border-radius: 10px;
            display: -webkit-flex;
            display: -moz-flex;
            display: flex;
            -webkit-flex-flow: wrap;
            -moz-flex-flow: wrap;
            flex-flow: wrap;
            /*-webkit-justify-content: space-between;
            -moz-justify-content: space-between;
            justify-content: space-between;*/
        }

            #sitemap #labs .button {
                position: relative;
                /*background: #61009e;*/
                color: white;
                text-align: center;
                text-decoration: none;
                font-size: inherit;
                width: calc(20% - 10px);
                padding: 0;
                border: 0;
                border-radius: 2.5px 2.5px 0 0;
                margin: 5px;
            }

            #sitemap #labs .dropdownButton:hover {
                /*border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;*/
            }

                #sitemap #labs .button a {
                    display: block;
                    color: inherit;
                    text-decoration: none;
                    padding: calc((60px - 1em) / 2) 10px;
                }

                #sitemap #labs .button > a {
                    background: #61009e;
                    border-radius: 2.5px;
                    position: relative;
                    z-index: 0;
                }

                #sitemap #labs .button > a:hover {
                    background: #9100ce;
                }

                #sitemap #labs .button:hover > a {
                    z-index: 2;
                }
                
                #sitemap #labs .button:hover > * {
                    box-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.5);
                    box-shadow: 0 2px 0px 0px rgba(0, 0, 0, 0.25);
                }

                #sitemap #labs .dropdownMenu {
                    display: none;
                    position: absolute;
                    width: 100%;
                    background: green;
                    word-wrap: break-word;
                    z-index: 1;
                }

                #sitemap #labs .button:hover .dropdownMenu {
                    display: block;
                    /*border-bottom-left-radius: 2.5px;
                    border-bottom-right-radius: 2.5px;*/
                    border-radius: 0 0 2.5px 2.5px;
                    margin-top: -2.5px;
                    overflow: hidden;
                }

                    #sitemap #labs .dropdownMenu a {
                        padding: calc((30px - 1em) / 2) 10px;
                    }

                    #sitemap #labs .dropdownMenu a:hover {
                        background: #3dce00;
                    }

                    #sitemap #labs .dropdownMenu a:first-child {
                        /*border-top-left-radius: 2.5px;
                        border-top-right-radius: 2.5px;*/
                        padding-top: calc((30px - 1em) / 2 + 2.5px);
                    }

                    #sitemap #labs .dropdownMenu a:last-child {
                        /*border-bottom-left-radius: 2.5px;
                        border-bottom-right-radius: 2.5px;*/
                    }

#lab2 {
    
}
    #lab2 #content {
        font-family: "PixelMplus12";
    }
    
        #lab2 #content p {
            text-indent: 2.5em;
        }

        #lab2 #content a:hover {
            color: #d8c0e7;
        }

        #lab2 #content #seaIce a {
            background-color: #9100ce;
        }

        #lab2 #content h1 {
            text-transform: uppercase;
        }

#lab3 {

}

    #lab3 #content li {
        padding-top: 0.1em;
        padding-bottom: 0.1em;
    }

        #lab3 #content li:nth-child(odd) {
            background: #cccccc;
        }

        #lab3 #content li:nth-child(even) {
            background: #e6e6e6;
        }

    #lab3 #content pre {
        padding-left: 2.5em;
    }

    #lab3 #content .name {
        font-variant: small-caps;
    }
    
#lab4 {

}
        
    #lab4 #content img {
        max-width: 100%;
    }

    #lab4 #content .animated {
        background: lightgray !important;
    }

        #lab4 #content .animated figcaption {
            background: darkgray;
            border-radius: 5px;
        }

    #lab4 #content .transparent {
        background: darkgrey !important;
    }

        #lab4 #content .transparent .imgContainer {
            background: #5b9de5 !important;
        }

        #lab4 #content .transparent figcaption {
            color: white;
            background: darkblue;
            border-radius: 5px;
        }

#lab5 {

}

    #lab5 #content #climateData td {
        text-align: right;
    }

    #lab5 #content #climateData td:nth-child(1),
    #lab5 #content #climateData td:nth-child(2),
    #lab5 #content #climateData td:nth-child(3) {
        text-align: inherit;
    }

#lab8 {

}