/** STYLES FOR VORTEX-USA DASHBOARD @ www.nss.noaa.gov/projects/vortexusa/impacts **/

#main {
    width: 100%;
}

.dashboard {
  background-color: white;
  width: 100%;
}

img {
    display: block;
    max-width: 100%;
    /*height: auto;*/
}

#section1 {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

#section1 .column {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#section1 .column:first-child,
#section1 .column:last-child {
    min-width: 260px;
}

#collab-map,
#domain-map {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#section1 .column .row {
    display: flex;
    align-items: center;
}

#section1 .column .row:first-child {
    justify-content: space-between;
    gap: 24px;
}

#section1 .column .row:first-child h3 {
    margin: 0;
    text-align: center;
    line-height: 1.2;
    font-size: 24px;
    font-weight: 700;
    flex: 1 1 auto;
    color: black;
}

#section1 .column .row:first-child img {
    height: clamp(38px, 6vw, 60px);
    width: auto;
    flex: 0 0 auto;
}

#section1 .column .row:nth-child(2) {
    gap: 16px;
    padding: 16px;
}

#section1 .column .row:nth-child(2) span {
    margin: 0;
    padding:0;
    color: black;
}

/*===== Section 2: Two Topics =====*/

#section2 {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr ;
    padding: 10px;
}

#section2 h3 {
    text-align: center;
    justify-items: center;
    align-content: center;
    color: #000;
}

.topics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    column-gap: 5px;
}

#section2 #topics-physical-science {
    padding: 10px;
}

#section2 #topics-physical-science,
#section2 #physical {
    background-color: rgba(11, 83, 148, 0.5);
}

#section2 #topics-social-science {
    padding: 10px;
}

#section2 #topics-social-science,
#section2 #social {
    background-color: rgba(255, 205, 122, 0.5);
}


.topics .cell {
    position: relative;
    overflow: hidden;
    min-height: 0;
    aspect-ratio: 5/3;
    box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.5);
}

.topics .cell a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.topics .cell a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 5px;
}

.topics .cell a .label {
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 14px;
    white-space: normal;
    max-width: 90%;
    display: grid;
    place-items: center;
    padding: 12px;
    text-align: center;
    z-index: 1;
    font-size: small;
    background-color: #000;
}

.charts {
    display: grid;
    grid-row: repeat(3, 1fr);
}

.charts #physical {
    align-content: start;
    padding: 10px 15px;
    margin: 0px 10px 10px 0px;
}

.charts p {
    text-align: center;
    justify-items: center;
    align-content: center;
    color: black;
}

.charts #social {
    align-content: end;
    padding: 25px 15px;
    margin: 10px 0px 0px 10px;
}

#footnote {
    color:black;
    text-align: right;
    width: 100%;
    font-size: .8rem;
}