body {
    font-family: neuzeit-grotesk, sans-serif;
    font-style: normal;
    font-size: medium;
    font-weight: normal;
    margin: 0;
    min-height: 100%;
}

/* main flexbox to hold fullscreen site */
#box {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr;
}


/* Remove body margins */

h1 {
    font-family: futura-pt, sans-serif;
    font-style: bold;
    font-size: 3em;
    font-weight: 600;
    margin: 0;
}

h2 {
    font-family: neuzeit-grotesk, sans-serif;
    font-style: normal;
    font-size: 2em;
    font-weight: 700;
}

h3 {
    font-family: neuzeit-grotesk, sans-serif;
    font-style: normal;
    font-size: 1.5em;
    font-weight: 900;
}

h4 {
    font-family: neuzeit-grotesk, sans-serif;
    font-style: normal;
    font-size: 1.25em;
    font-weight: 700;
}


.spaced-text>br {
    margin-bottom: 1em;
}

#logo {
    width: 10vw;
    fill: #172d43;
    z-index: 2000000;
}

#header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    background-image: linear-gradient(0deg, rgb(23, 45, 67) 0%, rgb(23, 45, 67) 35%, rgb(56, 124, 156) 35%, rgb(56, 124, 156) 35%, rgb(56, 124, 156) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}

.transitioned {
    transition: background-position 1.2s ease-in-out;
}

#obs_name {
    color: white;
    text-align: center;
    font-size: 5vw;
    letter-spacing: .04em;
    padding-left: 60px;
    white-space: nowrap;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;

}

#activityMap-container {
    grid-row: 1/2;
    grid-column: 2/5;
    min-height: .5vh;
    padding: 1em;
}

#activityMap {
    height: 60vh;
    min-height: 520px;
    border-radius: 10px;
}

#menu-search {
    width: 90%;
    display: block;
    padding: 5px;
    font-size: large;
    font-weight: bold;
}

.social-icon {
    width: 30px;
    padding: 1em;
}

.social-icon:hover {
    animation-name: social-bop;
    animation-duration: .2s;
}

@keyframes social-bop {
    0% {
        transform: scale(80%);
    }

    50% {
        transform: scale(120%);
    }

    100% {
        transform: scale(100%);
    }
}

#social-list {
    list-style: none;
    display: inline-flex;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}



/* Main Nav Button */

.navButton {
    letter-spacing: 1px;
    cursor: pointer;
    color: #172d43;
    text-align: center;
    transition: 0.3s ease-in-out;
}




/* Main container */

.container {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1fr) minmax(0, auto);
    grid-gap: 1rem;
    grid-template-rows: repeat(6, auto);
    align-items: start;
    transition: .1s ease;
    width: 100%;
    max-width: 100%;
}

#toggle:checked~.container {
    grid-template-columns: min(60px, 10vw) minmax(0, 1fr) minmax(0, 1fr) minmax(0, auto);
}

.grid {
    background-color: #444;
    padding: 5px;
}

.content {
    grid-column: 2 / 5;
    grid-row: 2 / 3;
}

#content {
    grid-column: 2/4;
    padding: 5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width:100%;
}

.volcanic-activity {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
    min-height: 200px;
}

.hans-html {
    border: solid 2px #172d43;
    color: #172d43;
    border-radius: 4px;
    padding: 1em;
}

.volcanic-activity-radio {
    grid-column: 4;
    grid-row: 1 / 5;
    min-height: 200px;
    min-width: 100%;
}

#radio-logo {
    width: 200px;
    display: block;
    margin: auto;
}

#radio-text {
    text-align: center;
}

#audio-control {
    display: block;
    margin: auto;
    max-width: 100%;
}

.related-images {
    grid-column: 1 / 3;
    grid-row: 5 / 6;
    min-height: 150px;
    background-color: #2BB673;
}

.related-posts {
    grid-column: 3 / 4;
    grid-row: 5 / 6;
    background-color: #f3cddd;
}


#footer {
    background-color: #172d43;
    /*background: linear-gradient(0deg, #172d43 30%, #387c9c);*/
    color: white;
    text-align: center;
    margin: 0px;
    padding-top: 1em;
    padding-right: 0px;
    padding-bottom: 1em;
    padding-left: 0px;
}

/* display footer list horizotally. Use a list for screen readers */

#footer-list {
    margin: 0px;
    list-style-type: none;
    text-align: center;
    display: inline-flex;
}

#footer-list li {
    padding-left: 1em;
    padding-right: 1em;
    padding-top: .5em;
    padding-bottom: 0;
}

#footer-list a {
    color: white;
    text-decoration: none;

}

.USGS-Grant {
    text-align: center;
}

.USGS-Grant>p {
    margin: 0;
}

/* The sidebar menu */

.sidenav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    font-family: futura-pt, sans-serif;
    font-style: bold;
    font-size: 2em;
    /* Full-height: remove this if you want "auto" height */
    background-color: #172d43;
    /* Black */
    overflow-x: hidden;

    grid-column: 1;
    grid-row: 1;
}

/* The navigation menu links */

.sidenav a {
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    white-space: nowrap;

}

/* When you mouse over the navigation links, change their color */

.sidenav a:hover {
    color: #f1f1f1;

}

.afternav {
    height: 100%;
    background-color: #172d43;
    grid-row: 1/7;
    grid-column: 1;
}

.menu-item {
    display: grid;
    grid-template-columns: min(60px, max(10vw, 40px)) 1fr;
    margin: 20px 6px 6px 0px;
    align-items: center;
}

.navButton + .menu-item {
    margin-top: 0px;
}

.menu-item-icon {
    justify-self: center;
    align-self: center;
}

.nav-search-button {
    border: none;
    background: none;
    padding: 0;
    min-width: 0;
    max-width: 30px;
    justify-self: center;
}

.menu-item-icon svg {
    max-width: 30px;
    fill: #f9f9f9;
    display: grid;
}

.menu-item-icon img {
    max-width: 30px;
    fill: #f9f9f9;
    display: grid;
}

.menu-item-icon:hover {
    animation-name: social-bop;
    animation-duration: .2s;
}


#toggle {
    display: none;
}

.ham {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 400ms;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    scale: 1;
    width: min(60px, max(10vw, 40px));
}

.hamRotate.active {
    transform: rotate(45deg);
}

.hamRotate180.active {
    transform: rotate(180deg);
}

.line {
    fill: none;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    stroke: #000;
    stroke-width: 5.5;
    stroke-linecap: round;
    stroke: white;
}

.ham1 .top {
    stroke-dasharray: 40 139;
}

.ham1 .bottom {
    stroke-dasharray: 40 180;
}

.ham1.active .top {
    stroke-dashoffset: -98px;
}

.ham1.active .bottom {
    stroke-dashoffset: -138px;
}

/* submenus */
.dropdown {
    display: table-caption;
    grid-auto-flow: column;
    grid-template-columns: 60px 1fr;
    align-items: center;
    margin: 10vh 6px 6px 0px;
}

.dropdown-collection {
    grid-column: 1/3;
    transition: max-height 0.15s ease-out;
    overflow: hidden;
    background: #d5d5d5;
}

.dropdown-item {
    grid-template-columns: 1fr;
    text-align: right;
}

.dropdown-item a {
    text-align: right;
    color:black;
}
.dropdown-item a:hover {
    color: #172d43;
    text-shadow: gold 0 0 10px;
}


#toggle:checked ~ * .dropdown-collection {
    display: none;
}

.gsc-search-button {
    display: none;
}

.sensorsIcons {
    display: flex;
}

/* carat for show hide accordians */
.search-carat{
/* Caret CSS */
    margin-left: auto;
    width: 14px;
    min-width: 14px;
}

.caret {
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #fff;
    display: inline-block;
    vertical-align: middle;
}

.trigger{
    display: -webkit-flex; /* Safari */  
    display: flex;
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    cursor: pointer;
}

.nav-trigger{
    display: -webkit-flex; /* Safari */  
    display: flex;
    -webkit-align-items: center; /* Safari 7.0+ */
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    cursor: pointer;
}

/**Toggle CSS for hide and show caret **/
.rotated-carat {
    transform: rotate(90deg);
    transform-origin: 50% 50%;
    transition-property: transform;
    transition-duration: 0.1s;
     fill: #FFFFFF;
}
.unrotated-carat {
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    transition-property: transform;
    transition-duration: 0.1s;
    fill: #FFFFFF;
}

.hidden{
    display:none;
}
  
/* map stuff */
.popup-image {
    max-width: 300px;
}

.instrumentCount {
    text-align: center;
    background-color: white;
    border-radius: 100%;
    width: 100%;
    height: 100%;
}

.legend {
    background-color: #FFFFFFBB;
    border-radius: 10px;
    padding: 1em;
    margin: 1em;
}

.legendTitle {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}

.legendTable>tbody>tr>td {
    vertical-align: middle;
    text-align: left;
}

.legendTable>tbody>tr>td>img {
    width: 25px;
    height: 25px;
}

.legendTable>tbody>tr>td>svg {
    width: 25px;
    height: 25px;
}

.earthquakeCircle {
    box-sizing: border-box;
    background: linear-gradient(to right, #d31820AA 0%, #d31820AA 33%, #f7941eAA 33%, #f7941eAA 67%, #fff200AA 67%, #fff200AA 100%);
    border: 1px solid #3388ff;
    max-width: 25px;
    max-height: 25px;
    aspect-ratio: 1/1;
    border-radius: 50%;
}
.clusterCount{
    display: inline-block;
    position: relative;
    border-radius: 5px;
}
.stationCount{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: bolder;
    color: white;
    font-family: Helvetica;
    background-color: rgba(0, 0, 0, 5);
}

.stationIcon{
    height: 35px;
    display: block;
    position: relative;
}

.stationMarker{
    border-radius: 100%;
    margin: auto;
}


@media only screen and (max-width: 768px),
(orientation: portrait) {

    .container {
		grid-template-columns: min(60px, max(10vw, 40px)) minmax(0, 1fr);
        grid-template-rows: auto auto;
        grid-column-gap: 1%;
    }

    #toggle:checked~.container {
        grid-template-columns: min(60px, max(10vw, 40px)) minmax(0, 1fr);
    }

    .sidenav {
        overflow-x: hidden;
    }

    #toggle:checked~.container>.sidenav {
        width: 250px;
        overflow-x: visible;
        z-index: 100;
    }

    #toggle:checked~.container>.sidenav ~ * {
        z-index: 0;
    }

    .content {
        grid-column: 2;
    }

    .volcanic-activity {
        grid-column: 2;
    }

    #activityMap-container {
        grid-column: 2;
        min-height: 480px;
        padding: 1em;
    }


    .clusterCount {
        position: relative
    }

    .communityIcon {
        position: absolute;
        top: 30%;
    }

    .volcanic-activity-radio {
        grid-column: 2;
        grid-row: 4;
    }

    #footer-list {
        display: inline-block;
    }

}

@media screen and (max-height: 1000px) {
    .menu-item {
        margin: 1.2vh 6px 6px 0px;
    }
    
    .navButton + .menu-item {
        margin-top: -13px;
    }
}



@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}


@media only screen and (max-width: 400px) {

    .card {
        font-size: small;
    }

    .sidenav {
        font-size: 3em;
    }

    figure {
        margin: 10px;
    }
}

.toggle-list {
    list-style: none;
    padding: 0px 10px;
    margin: 0;
}

.image-width {
    max-width: 100%;
    width: 100%;
}

.volcano-popup {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 5px;
}

.volcano-popup-title {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}

/* down scale h1, h2, and h3, as screen gets smaller */
@media only screen and (max-width: 900px) {
    h1 {
        font-size: 1.75em;
    }

    h2 {
        font-size: 1.375em;
    }

    h3 {
        font-size: 1.1275em;
    }
}
@media only screen and (max-width: 768px) {
    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.25em;
    }

    h3 {
        font-size: 1.085em;
    }
}

.sub-page-links {
    
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: left;
    align-items: center;
}

.sub-page-links a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    padding: 10px;
    background-color: rgb(56, 124, 156);
    border: #000000 1px solid;
}

.sub-page-links a:hover {
    background-color: rgb(23, 45, 67);
}

.org-logo{
    max-width: 12em;
    margin:auto;

}
.cooperators{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

.img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.database-video-player {
    max-height: 90vh;
    max-width: 80vw;
}

figure {
    min-width: 33%;
    display: table;
}

figure img {
    max-width: 100%;
    max-height: 100%;
}
figcaption {
    display: table-caption;
    caption-side: bottom;
    white-space: wrap;
    text-align: center;
    vertical-align: middle;
    margin: 10px;
}

sup {
    vertical-align: top;
    font-size: small;
}