#volcanic-alert-level {
    box-sizing: border-box;
    margin: 0;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}
.wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 100%;
    margin: .5em;
    align-content: flex-start;
}

.card {
    margin: .5em;
    min-width: 25vw;
    flex-basis: min-content;
    flex-shrink: 1;
    font-size: medium;
}
.card .card-content {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.75, 0, 0.85, 1);
}
.more {
    display: none;
}
.card-content .front {
    height: 100%;
    max-height: 1000px;
    /* Set our transitions up. */
    -webkit-transition: max-height 0.1s;
    -moz-transition: max-height 0.1s;
    transition: max-height 0.1s;
}
.card-content .back {
    /* Initially we don't want any height, and we want the contents to be hidden */
    max-height: 0;
    overflow: hidden;
    /* Set our transitions up. */
    -webkit-transition: max-height 0.2s;
    -moz-transition: max-height 0.2s;
    transition: max-height 0.2s;
    padding-left: 1em;
    padding-right: 1em;
}
.more:checked~.card-content {
    transform: rotateY(180deg);
}
.more:checked~.card-content .back {
    max-height: 1400px;
}
.more:checked~.card-content .front {
    max-height: 0;
}
.front, .back {
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border-radius: 6px;
}
.front .inner, .back .inner {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    transform: translateZ(80px);
}
.front {
    background-color: #fff;
    background-size: cover;
    background-position: center center;
    white-space: nowrap;
}
.alert-YELLOW:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    backface-visibility: hidden;
    border-radius: 10px;
    border: 3px solid #172d43;
    background-image: linear-gradient( to right, #fff, #fff 70%, #ffee67 70%, #ffee67 85%, #fff 85%);
}
.alert-ORANGE:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    backface-visibility: hidden;
    border-radius: 10px;
    border: 3px solid #172d43;
    background-image: linear-gradient( to right, #fff, #fff 70%, orange 70%, orange 85%, #fff 85%);
}
.alert-RED:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
    border: 3px solid #172d43;
    background-image: linear-gradient( to right, #fff, #fff 70%, red 70%, red 85%, #fff 85%);
}
.front .inner {
    grid-template-rows: 1fr 1fr 1fr auto;
    grid-column-gap: 0.8em;
    justify-items: center;
    align-items: center;
}
.front h2 {
    grid-row: 1;
    margin-bottom: 0.3em;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}
.back {
    overflow: hidden;
    transform: rotateY(180deg);
    background-color: #fff;
    border-radius: 10px;
    border: 3px solid #172d43;
}
.back .inner {
    grid-template-rows: repeat(6, auto);
    grid-template-columns: minmax(0, 1fr) 1fr;
    align-items: stretch;
}
.back .info {
    position: relative;
    display: inline;
    align-items: center;
    color: #172d43;
    grid-row: 3;
    text-align: center;
}
.back .description {
    grid-row: 4;
    grid-column: 1/-1;
}
.back .location, .back .region {
    font-weight: 600;
    grid-row: 1;
    font-size: 0.86em;
}
.back .location {
    grid-row-start: 1;
    grid-column: 1;
    justify-self: left;
 
}

.back .location h4{
       margin: 0;
}
.back .region {
    grid-row-start: 1;
    grid-column: 2/-1;
    justify-self: right;
    margin-bottom: 1em;
}
.front h2, h3 {
    margin: auto;
}
.front .color-code {
    grid-row-start: 3;
    grid-column-start: 1;
}
.front .alert-level {
    grid-row-start: 2;
    grid-column-start: 1;
}
.plain-link{
    text-decoration: none;
    color: inherit;
}
.uncolored-link{
    color: inherit;
}
.front .button {
    grid-row: 4;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    padding: 0 1.5em;
    height: 3em;
    line-height: 2.9em;
    min-width: 3em;
    background-color: transparent;
    border: solid 2px #172d43;
    color: #172d43;
    border-radius: 4px;
    text-align: center;
    left: 50%;
    backface-visibility: hidden;
    transition: 0.3s ease-in-out;
}
.button:hover {
    background-color: #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    text-shadow: none;
    color: #355cc9;
}
.button.return {
    grid-row-start: 5;
    grid-column-start: 1;
    border: none;
    padding: 0;
    backface-visibility: hidden;
    width : 50px;
}

.button.return:hover {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    color: #fff;
    box-shadow: none;
    animation-name: infospin;
    animation-duration: .2s;
}
.more-info {
    grid-row-start: 5;
    grid-column-start: 2;
    width: 50px;
    justify-self: right;
}
.more-info:hover {
    animation-name: infospin;
    animation-duration: .2s;
}
@keyframes infospin {
    0% {
        transform: scale(80%);
    }
    50% {
        transform: scale(120%);
    }
    100% {
        transform: scale(100%);
    }
}
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #859ddf;
}
::-webkit-scrollbar-thumb:hover {
    background: #355cc9;
}
.back-YELLOW, .back-ORANGE, .back-RED, .back-alert-level {
    text-align: center;
    grid-row-start: 2;
    padding-top: 5px;
}
.elevation, .monitored{
    text-align: center;
    grid-row-start: 6;
    padding-top: 5px;
}
.back-YELLOW, .back-ORANGE, .back-RED {
    grid-column-start: 2;
    justify-self:end;
}
.back-YELLOW {
    text-shadow: 0 0 25px yellow;
}
.back-ORANGE {
    text-shadow: 0 0 25px orange;
}
.back-RED {
    text-shadow: 0 0 25px red
}
.elevation {
    grid-column-start: 1;
    justify-self: start;
}
.monitored {
    grid-column-start: 2;
    justify-self: end;
}
.back-alert-level {
    grid-column-start: 1;
    justify-self: start;
}
.sent-utc {
    color: grey;
    font-size: 8pt;
    grid-row: 3;
    grid-column: -1/-3;
    text-align: right;
    margin-top: 1em;
}
.tooltip {
    display: inline-block;
    position: relative;
    border-bottom: 1px dotted #666;
    text-align: left;
}
.tooltip h3 {
    margin: 0;
    padding: 0;
}
.tooltip .right {
    min-width: 300px;
    max-width: 400px;
    top: 50%;
    margin-left: 20px;
    transform: translate(0, -50%);
    padding: 0;
    color: #FFF;
    background-color: #172d43;
    font-weight: normal;
    font-size: 13px;
    border-radius: 8px;
    position: absolute;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s;
    font-size: small;
    white-space: initial;

}
.tooltip:hover .right {
    visibility: visible;
    opacity: 1;
    z-index: 99999999;

}
.tooltip .right img {
    border-radius: 8px 8px 0 0;
}
.tooltip .text-content {
    padding: 10px 15px;
}
.tooltip .right i {
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -12px;
    width: 12px;
    height: 24px;
}
.tooltip .right i::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: 0;
    top: 50%;
    transform: translate(50%, -50%) rotate(-45deg);
    background-color: #444444;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);

}

.left-right-card-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 100%;
    margin: .5em;
    align-content: flex-start;
}

.volcano-image {
    width: 50%;
    padding: 5px;
    float: left;
    flex-shrink: 1;
}

@media (orientation: portrait) {
    .volcano-image {
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    /* For mobile phones: */
    .card {
        width: 100%;
        flex-grow: 1;
    }
}
/* On smaller screens, where height is less than 450px, change the style of the sidebar (less padding and a smaller font size) */

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