* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
}

nav {
    background-color: white;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#left-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

#right-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

:root {
    --section-spacing: 4rem;
    --content-padding: 4rem;
}

section {
    margin-bottom: var(--section-spacing);
    padding: 0 var(--section-padding);
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem var(--content-padding);
    margin-top: 4rem;
    gap: 2rem;
}

#page-title {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 1.5rem;
    text-align: left;
    padding: 1rem var(--content-padding);
    margin-top: 4rem;
    border-bottom: 1px solid lightgrey;
}

.subtitle {
    display: flex;
    justify-content: flex-start;
    padding: 0 var(--content-padding);
    margin-top: 0;
}


#index {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.itinerary-item {
    display: flex;
    flex-direction: column;
}

.itinerary-item a {
    text-decoration: none;
    display: block;
    position: relative;
}

.img-placeholder {
    width: 20rem;
    height: 20rem;
    border-radius: 5px;
    position: relative;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.itinerary-info {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    border-radius: 0 0 5px 5px;
    font-size: 0.9rem;
}

.user-actions {
    margin-left: auto;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

main.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 2rem var(--content-padding);
    margin-top: 4rem;
    gap: 2rem;
}

main.page-content.form-page {
    align-items: flex-start;
}

main.page-content>form {
    width: 50%;
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.image-container {
    display: flex;
    flex-direction: column;
}

.homepage-img {
    object-fit: cover;
}

.homepage-img.vertical {
    width: 35rem;
    height: 55rem;
}

.homepage-img.horizontal {
    margin-top: 5rem;
    width: 45rem;
    height: 30rem;
}

.hero-image {
    width: 12rem;
    height: 20rem;
}

.text-column,
.image-column {
    flex: 1;
}

.text-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-column img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
}

#itinerary-content {
    padding: 1.5rem 3rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    border: 1px solid lightgrey;
    outline: none;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

h1 {
    font-family: "Newsreader", serif;
    font-weight: 400;
    font-size: 3rem;
    margin: 0;
    padding: 0;
}


h2 {
    font-family: "Newsreader", serif;
    font-size: 2rem;
    margin: 0;
    padding: 0;

}

p {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

p.image-caption {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 0.5rem;
    padding: 0;
}

a {
    color: black;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #4c949a;
    text-decoration: none;
}

a.home-link {
    color: #4c949a;
    text-decoration: none;
    font-size: 2.5rem;
    font-family: "Newsreader", serif;
    font-weight: 600;
    font-style: italic;
}

a.home-link:hover {
    color: #c1d7d5;
}

a.page-link {
    color: #4c949a;
    text-decoration: none;
}

a.nav-button {
    padding: 0.5rem 1rem;
    background-color: black;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 400;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

a.nav-button:hover {
    color: white;
    background-color: #4c949a;
}

a.page-button,
button.page-button,
input.page-button {
    padding: 0.5rem 1rem;
    background-color: black;
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    border: none;
    font-weight: 400;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

a.page-button:hover,
button.page-button:hover,
input.page-button:hover {
    color: white;
    background-color: #4c949a;
}


a.homepage-button {
    padding: 0.5rem 1rem;
    background-color: #4c949a;
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    border: none;
    font-weight: 400;
    font-size: 1rem;
    transition: background-color 0.3s ease;

}

a.homepage-button:hover {
    color: white;
    background-color: #4c949a;
}

a.control-button,
button.control-button,
input.control-button {
    padding: 0.5rem 1rem;
    background-color: white;
    color: black;
    text-decoration: none;
    border: 1px solid lightgrey;
    border-radius: 9999px;
    font-weight: 400;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

a.control-button:hover,
button.control-button:hover,
input.control-button:hover {
    color: lightgrey;
}

.flash {
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.flash-success {
    color: #4c949a;
}

.flash-error {
    color: #b00020;
}

.flash-warning {
    color: #b36b00;
}

.profile-pic {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.comment {
    color: #5f5668;
    font-style: italic;
    margin-top: 1rem;
    padding-bottom: 1rem;
}

.comment-info,
.likes-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comments-pic,
.likes-pic {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
}

