body {
    font-family: "Josefin Sans", sans-serif;
    line-height: 1.3;
}

img  {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

strong {
    font-weight: 700;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 8px;
}

.header div {
    display: flex;
    align-items: end;
    column-gap: 8px;
}

header img {
    width: 32px;
}

.hamburger {
    border: none;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background: none;
    color: #3d405b;
    cursor: pointer;
}

.hamburger::before {
    content: "\2630";
    font-size: 2rem;
}

.hamburger.show::before {
    content: "\00d7";
}

.navigation {
    display: none;
    grid-column: 1 / -1;
}

.navigation.show {
    display: flex;
}

.navigation ul {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.navigation li.current {
    background-color: #eee;
}

.navigation a {
    display: block;
    border-bottom: 1px solid #ddd;
    padding: 1.1rem 10px;
    color: #3d405b;
}

.navigation a:hover {
    background-color: #e07a5f;
}

.navigation button {
    display: none;
    border: none;
    padding: 10px;
    background: none;
}

main {
    margin: 0 auto;
    padding: 16px;
    max-width: 1000px;
}

/* Home */

.hero {
    position: relative;
    border-radius: 16px;
    height: 567px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
}

.hero div {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(0 0 0 / .2);
}

.hero h2 {
    font-size: 5rem;
    color: #fff;
}

.hero a {
    border-radius: 16px;
    padding: 12px;
    color: #fff;
    background-color: #5c3d3f;
    box-shadow: 0 0 40px #000;
    white-space: nowrap;
}

.home {
    display: grid;
    gap: 16px;
}

.home h2 {
    padding-top: 16px;
    font-size: 2rem;
}

.home-card {
    border-radius: 8px;
    background-color: #eee;
    overflow: hidden;
}

.home-card h3 {
    padding: 8px;
    color: #fff;
    background-color: #3d405b;
}

#container-events {
    display: grid;
    gap: 8px;
}

@media (min-width: 480px) {
    #container-events {
        font-size: 1.3rem;
    }
}

#container-weather {
    display: flex;
    justify-content: center;
    align-items: start;
    text-transform: capitalize;
}

#container-events,
#container-weather div,
#container-forecast {
    padding: 16px;
}

#container-weather div span,
#container-forecast span {
    font-weight: 700;
}

#container-forecast {
    font-size: 1.50rem;
}

#businesses {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
}

.business {
    display: grid;
    border-radius: 16px;
    color: #3d405b;
    background-color: #eee;
}

.business h2,
.business span {
    text-align: center;
}

.business h2 {
    padding-top: 8px;
    font-size: 1.4rem;
}

.business > span {
    border-bottom: 1px solid #000;
}

.business-container {
    display: flex;
    flex-direction: column;
    align-self: center;
    gap: 8px;
    padding: 12px;
}

.business-container a {
    color: #3d405b;
    overflow-wrap: anywhere;
    text-decoration: underline;
}

.business-container span {
    font-style: italic;
}

/* Directory */

.menu {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}

.menu button {
    border-radius: 4px;
    border: 1px solid #005383;
    padding: 4px;
    background: none;
    cursor: pointer;
}

.menu button:hover {
    background-color: #cbf3f0;
}

.menu svg {
    width: 32px;
    height: 32px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 0 16px 0 rgb(0 0 0 / .2);
}

.card a {
    color: #014a65;
    overflow-wrap: anywhere;
}

.list .card {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: none;
}

.list .card:nth-child(odd) {
    background-color: #edfbfa;
}

@media (min-width: 700px) {
    .list .card {
        flex-wrap: nowrap;
        justify-content: space-between;
        text-align: left;
    }
}

.list .card img {
    display: none;
}

/* Join */

.main-join {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.main-join section {
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
}

h2 {
    font-size: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    display: flex;
    flex-direction: column;
}

fieldset label {
    flex-direction: row;
    align-items: baseline;
    column-gap: 8px;
    padding: 12px 0;
}

input,
textarea {
    padding: 11px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

input[type="submit"] {
    cursor: pointer;
}

.levels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.levels div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border-start-end-radius: 32px;
    border-end-start-radius: 32px;
    padding: 20px;
    background-color: #eee;
    animation: fade 1s;
}

@keyframes fade {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.levels button {
    cursor: pointer;
}

#membership-details {
    line-height: 2;
}

#membership-details button {
    position: absolute;
    right: 16px;
    cursor: pointer;
}

#membership-details h3 {
    font-size: 1.5rem;
}

#membership-details ul {
    list-style: inside;
}

/* Thank you */
.thankyou-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-block: 52px;
}

.info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    align-items: center;
    gap: 4px 20px;
    overflow-wrap: anywhere;
}

footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    text-align: center;
}

footer div:first-child p:first-child {
    font-weight: 700;
}

.social-media {
    display: flex;
    justify-content: center;
    column-gap: 32px;
}

.social-media img {
    width: 42px;
}