body {
    background-color: #F0FAFF;
}

/* Sticky header with links
 */
.page-header {
    justify-content: center;
    position: sticky;
    top: 0;
    gap: 30px;
    display: flex;
    padding: 20px 0 20px 0;
    z-index: 1;
    background-color: #F0FAFF;
}

@media only screen and (max-width: 600px) {
    .page-header {
        gap: 10px;
    }
}

.header-nav-point {
    display: inline-flex;
    padding: 5px;
    border-top: 2px solid #497D73;
    border-bottom: 2px solid #497D73;
    color: black;
    text-decoration: none;
}

.header-nav-point.selected, .header-nav-point:hover {
    background-color: #E3FCF8;
    border-color: #414141;
}

.header-nav-point:hover {
    text-decoration: dotted;
}

/* It's a 6x6 image, it looks terrible otherwise */
img[src="resources/failed.png"] {
    image-rendering: pixelated;
}

.text {
    text-align: center;
    color: #325D54;
}

/* Used in index and blog */
/* block-preview is applied to the <a> the preview is wrapped in, not a div */
.blog-preview {
    color: #325D54;
    background-color: #0001;
    position: relative;
    display: flex;
    justify-content: center;
    margin-inline: auto;
    min-width: 40vw;
    width: 600px;
    height: 200px; 
    border: 2px solid lightgray;
    margin-bottom: 20px;
}

.blog-preview > .lralign > img {
    object-fit: cover;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 200px;
    height: 200px;
}
.blog-preview > .lralign > .right-side {
    position: absolute;
    top: 2px;
    left: 220px;
}
/* if a <img> is present, the div is no longer first child */
.blog-preview > .lralign > div:nth-child(1) {
    left: 20px;
}

.desktop-only {
    display: block;
}

@media only screen and (max-width: 620px) {
    .desktop-only {
        display: none;
    }
    .blog-preview > .lralign > div:nth-child(2) {
        left: 20px;
    }
    .blog-preview {
        overflow: scroll;
        height: unset;
        width: 90vw;
        min-height: 200px;
        min-width: 90vw;
    }
}

.labelinput > label {
    display: block;
    text-align: left;
}

.labelinput > input {
    margin-bottom: 20px;
}

.labelinput {
    display: inline-block;
    text-align: center;
}

/* generic dropdown with buttons */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
}

.dropbtn > img {
    display: inline;
    width: 1ch;
    height: 1ch;
    padding: 0 5px 0 3px;
    transform: scale(1.5);
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content button {
    color: black;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.dropdown-content button:hover {
    background-color: #f1f1f1;
}

.header-nav-point.dropdown > .dropbtn {
    border: none;
    background-color: inherit;
    font: inherit;
    img {
        margin-left: 8px;
    }
}

.header-nav-point > div.dropdown-content {
    background-color: #F0FAFF;
    border: 2px solid lightgray;
    padding: 2px 4px;
    line-height: 2.9ch;
    * {
        color: #00E;
        cursor: pointer;
        text-decoration: underline;
    }
}