/*
 * common.css
 */

/* Color Definitions */

:root {
  --ssg-red: rgba(211, 41, 61, 1);
  --ssg-green: rgba(24, 154, 70, 1);
  --ssg-blue: rgba(29, 57, 98, 1);
  --ssg-vendor-red: IndianRed;
  --ssg-vendor-green: green;
  --ssg-vendor-blue: deepskyblue;
}

/* Horizonal menu bar */

.flex-horizontal-nav {
    display: flex;
    flex-wrap: nowrap;
    background-color: white;
    justify-content: space-between;
    color: white;
}

.flex-horizontal-nav > div {
    background-color: var(--ssg-blue);
    min-width: 32vw;
    width: 32vw;
    text-align: center;
    line-height: 75px;
    font-size: clamp(1rem, 2.5vw, 3rem);
    user-select: none;
}

.flex-horizontal-nav > div:hover {
    background-color: IndianRed;
}

div .selected-nav {
    background-color: var(--ssg-red);
    color: white;
    display: flex;
    align-items: center; /* vertical */
    justify-content: center; /* horizontal */
}

div .selected-nav:hover {
    background-color: var(--ssg-red);
}

/* Vertical list */

.flex-list-wrapper, .flex-list-wrapper-no-scroll {
    min-height: 5vh;
}

.flex-list-wrapper {
    overflow: auto;
}

.flex-list-wrapper-no-scroll {
    overflow: hidden;
}

.flex-list {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    background-color: white;
    color: white;
    width: 100%;
    justify-content: center;
    row-gap: 2vh;
}

.flex-list-item, .flex-list-static-item {
    display: flex;
    flex-direction: row;
    column-gap: 2vw;
    min-height: 6vh;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 3rem);
    justify-content: space-evenly;
}

.flex-list-item {
    background-color: var(--ssg-blue);
    min-width: 95vw;
    max-width: 95vw;
    margin-right: auto;
    margin-left: auto;
    user-select: none;
    cursor: pointer;
    overflow: hidden;
    margin-top: 2vh;
    margin-bottom: 2vh;
    padding-top: 2vh;
    padding-bottom: 2vh;
}

.flex-list-static-item {
    min-width: 45vw;
    color: var(--ssg-blue);
    align-self: normal;
}

.flex-list-item:hover {
    background-color: IndianRed;
}

.flex-list-content, .flex-list-image, .flex-list-content-button {
    align-self: center;
    /* font-size: clamp(1rem, 2.5vw, 3rem); */
    font-size: 75%;
}

.flex-list-row-image {
    justify-self: center;
    font-size: 75%;
}

.flex-list-content, .flex-list-content-table, .flex-list-content-button {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 1vw;
    padding-left: 1vw;
    padding-right: 1vw;
}

.flex-list-content-button {
    color: white;
    cursor: pointer;
}

.flex-list-content-table {
    font-size: 75%;
    min-width: 15vw;
    max-width: 15vw;
}

.colored-flex-list:nth-child(odd) {
    background-color: lightblue; /* Color for odd-numbered items */
}

.colored-flex-list:nth-child(even) {
    background-color: lightgray; /* Color for even-numbered items */
}

.flex-list-content-emphasis, .flex-list-content-emphasis-table {
    text-wrap: nowrap;
    color: var(--ssg-red);
    font-weight: bold;
}

.flex-list-content-emphasis {
    min-width: 40%;
    max-width: 40%;
}

.flex-list-content-emphasis-table {
    min-width: 15vw;
    max-width: 15vw;
}

div div .selected-nav {
    background-color: var(--ssg-red);
}

div div .selected-nav:hover {
    background-color: var(--ssg-red);
}

.selectable-nav {
    background-color: IndianRed;
}

.selectable-nav:hover {
    background-color: deepskyblue;
}

.selectable-red {
    color: white;
    background-color: var(--ssg-red);
}

.selectable-red:hover {
    color: white;
    background-color: var(--ssg-blue);
}

.selectable-vendor-blue {
    color: white;
    background-color: var(--ssg-vendor-red);
}

.selectable-vendor-blue:hover {
    color: white;
    background-color: var(--ssg-vendor-blue);
}

/* Cards */

.flex-card-layout-wrapper {
    width: 100%;
    overflow: auto;
}

.flex-card-layout {
    display: flex;
    flex-wrap: nowrap;
    background-color: white;
    color: white;
    width: 100%;
    max-height: 100%;
    justify-content: space-between;
    margin-bottom: 2vh;
}

.flex-card-layout > div {
    background-color: var(--ssg-blue);
    min-width: 30vw;
    max-width: 40vw;
    /* max-height: 13vmin; */
    width: 40vw;
    text-align: center;
    /* line-height: 75px; */
    font-size: clamp(1rem, 2.5vw, 3rem);
    margin-right: 1vw;
    margin-left: 1vw;
    user-select: none;
}

.flex-card-layout > div:hover {
    background-color: IndianRed;
}

/* Flex Map */

.flex-map {
    display: flex;
    flex-direction: row;
    column-gap: 1vw;
    justify-content: space-evenly;
    margin-top: 2vh;
}

.map-list {
    display: flex;
    flex-direction: column;
    width: 48vw;
    max-width: 48vw;
    text-align: center;
    color: white;
    font-size: clamp(1rem, 2.5vw, 3rem);
    user-select: none;
    word-wrap: break-word;
}

.map-list-item {
    display: flex;
    flex-direction: row;
    column-gap: 1vw;
    background-color: var(--ssg-blue);
    max-height: 13vmin;
    column-gap: 1vw;
    padding: 10px;
}

.map-wrapper {
    position: relative;
    width: 50%;
    min-height: clamp(280px, 45vh, 520px);}

#map {
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .map-wrapper {
        min-height: clamp(220px, 35vh, 320px);
    }

    .map-legend-help {
        top: 10px;
        right: 10px;
    }
}

.map-legend-help {
    position: absolute;
    top: 60px;
    right: 15px;
    z-index: 1;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 2px solid var(--ssg-blue);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ssg-blue);
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.map-legend-help:hover,
.map-legend-help:focus {
    background: var(--ssg-blue);
    color: #ffffff;
    outline: none;
}

.book-map-legend-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.book-map-legend-item {
    display: flex;
    align-items: center;
    column-gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.book-map-legend-swatch {
    flex-shrink: 0;
    width: 1rem;
    height: 1.25rem;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.book-map-legend-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #444444;
}

/* General Definitions */

.heading-common, .heading, .heading-row {
    display: flex;
    color: var(--ssg-red);
    background-color: white;
    font-size: clamp(1rem, 2.5vw, 3rem);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2vh;
    padding-bottom: 2vh;
}

.heading {
    flex-direction: column;
}

.heading-row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 1vw;
}

.postage-stamp-image {
    height: 70%;
    max-width: 10vw;
    max-height: 10vh;
}

.medium-image {
    max-width: 40vw;
    max-height: 40vh;
    min-width: 40vmin;
}

.favorite-border {
    border-color: var(--ssg-red);
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
    margin-top: 4vh;
    padding-left: 1vw;
    padding-right: 1vw;
    padding-bottom: 2vh;
}

label {
    margin-right: 2vw;
}

.centerFlexColumn {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2vh;
}

.centerFlexRow {
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 2vw;
}

.hugeButton {
    display:flex;
    flex-direction: row;
    align-items: center;
    max-width: 75vmin;
    width: 75vmin;
    height: 10vmin;
    font-size: clamp(1rem, 2.5vw, 3rem);
    align-items: center; /* vertical */
    justify-content: center; /* horizontal */
    text-align: center;
    border-radius: 10px;
}

.hugeImage, .hugeImageGrayBackground {
    max-width: 75vmin;
    max-height: 75vmin;
    width: 75vmin;
    height: 75vmin;
    border: var(--ssg-green) 2px solid;
    border-radius: 10px;
}

.hugeImageGrayBackground {
    background-color: darkgray;
}

.smallImage {
    max-width: 7vw;
    max-height: 7vh;
}

.top-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(135, 206, 250, 0.7); /* lightskyblue */
    color: darkslategray;
    text-align: center;
    padding: 10px 0;
    z-index: 999;
    font-size: clamp(1rem, 2.5vw, 3rem);
    cursor: pointer;
}
