* {
    box-sizing: border-box;
  }

html {
    font-size: 20px; /* This sets the base font size */
}

@media (max-width: 600px) {
    html {
        font-size: 14px; /* Adjust the base font size for small screens */
    }
}

.logo-svg {
    width: 200px;
    height: 200px;
}

@media (min-width: 768px) {
    .logo-svg {
        width: 300px; /* Adjust as necessary */
        height: 300px; /* Adjust as necessary */
    }
}


body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-position: top center; 
    background-repeat: repeat-y;
    background-size: cover;
}

@media(min-width: 901px) {
    body, html {
        background-image: url('../images/background-desktop.jpg');
        background-attachment: fixed;
    }
}

@media(max-width: 900px) {
    body, html {
        background-image: url('../images/background-mobile.jpg');
    }
}

header {
    width: 100%;
    background-color: rgba(254, 246, 228, 0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px 20px 20px;
    position: relative;  /* Added to allow absolute positioning within the header */
}

.rhs-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns items to the end of the container */
}

.logo-top-text {
    font-family: 'Roboto';
    font-weight: 200;
    font-size: 18px;
    letter-spacing: -0.02em;
    margin: 0;
}

.logo-bottom-text {
    font-family: 'Roboto';
    font-weight: 200;
    font-size: 18px;
    letter-spacing: 0.08em;
    margin: 0;
}

p {
    line-height: 5;
}

.rhs-text p {
    font-family: 'Roboto';
    font-weight: 200;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    text-align: right;
    margin: 0;
}

@media(min-width: 758px) {
    .dropdown-menu {
        position: absolute; /* Absolute positioning to place it relative to the header */
        bottom: 0; /* Aligning it to the bottom of the header */
        max-width: none;
        display: flex;
        background-color: transparent;
        flex-direction: row;
        align-items: center;
        overflow: visible;
    }
    .hamburger-menu {
        display: none;
    }
}

@media(max-width: 767px) {
    .dropdown-menu {
        position: absolute;
        top: 100%; /* Positions the dropdown menu just below the header */
        right: 0; /* Aligns the dropdown menu to the right side */
        background-color: rgba(254, 246, 228, 0.9);
        display: flex;
        flex-direction: column; /* Arranges items vertically */
        align-items: flex-start; /* Aligns items to the start (left) */
        transform-origin: right top; /* Defines the origin point for the transform */
        transform: scaleX(0); /* Sets the initial state of the menu to be collapsed */
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); /* Adds a drop shadow */
    }
    .hamburger-menu {
        position: absolute;
        bottom: 20px;
        right: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
    }
    
    .hamburger-menu .bar {
        width: 100%;
        height: 2px;
        background-color: #442817;
    }
    /* Menu opening keyframes */
    /* ===================== */


    @keyframes rotateIn { /* Top bar */
        0% {
            transform: translateY(0px) rotate(0deg);
        }
        50% {
            transform: translateY(8px) rotate(0deg);
        }
        100% {
            transform: translateY(8px) rotate(-45deg);
        }
    }

    @keyframes rotateInReverse { /* Bottom bar */
        0% {
            transform: translateY(0px) rotate(0deg);
        }
        50% {
            transform: translateY(-8px) rotate(0deg);
        }
        100% {
            transform: translateY(-8px) rotate(45deg);
        }
    }

    @keyframes fadeOut { /* Middle bar */
        0% {
            opacity: 1;
        }
        50% {
            opacity: 0;
        }
        100% {
            opacity: 0;
        }
    }

    @keyframes dropdownIn { /* Dropdown menu */
        0% {
            transform: scaleX(0);
        }
        100% {
            transform: scaleX(1);
        }
    }

    /* Menu closing keyframes */
    /* ===================== */

    @keyframes rotateOut {
        0% {
            transform: translateY(8px) rotate(-45deg);
        }
        50% {
            transform: translateY(8px) rotate(0deg);
        }
        100% {
            transform: translateY(0px) rotate(0deg);
        }
    }

    @keyframes rotateOutReverse {
        0% {
            transform: translateY(-8px) rotate(45deg);
        }
        50% {
            transform: translateY(-8px) rotate(0deg);
        }
        100% {
            transform: translateY(0px) rotate(0deg);
        }
    }
    @keyframes fadeIn {
        0% {
            opacity: 0;
        }
        50% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    @keyframes dropdownOut {
        0% {
            transform: scaleX(1);
        }
        100% {
            transform: scaleX(0);
        }
    }

    .hamburger-menu.active .bar:first-child {
        animation: rotateIn 0.66s forwards;
    }

    .hamburger-menu.active .bar:last-child {
        animation: rotateInReverse 0.66s forwards;
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .dropdown-menu.active {
        animation: dropdownIn 0.66s forwards;
    }

    .hamburger-menu.inactive .bar:first-child {
        animation: rotateOut 0.66s forwards;
    }

    .hamburger-menu.inactive .bar:last-child {
        animation: rotateOutReverse 0.66s forwards;
    }

    .hamburger-menu.inactive .bar:nth-child(2) {
        animation: fadeIn 0.66s forwards;
        opacity: 0;
    }

    .dropdown-menu.inactive {
        animation: dropdownOut 0.66s forwards;
    }
}


.dropdown-menu a {
    padding: 10px 20px;
    color: black;
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
    font-size: 1.3rem;
    letter-spacing: -0.02em;   
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background-color: #e0b57d;
    color: white;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.column {
    box-sizing: border-box;
    position: relative;
    flex: 1;
}

.column-header {
    grid-column: 1 / 3;
}

.content-container {
    background-color: rgba(254, 246, 228, 0.85);
    padding: 5%;
    margin: 16%;
}

.column-container {
    display: flex;
    grid-gap: 10%;
}


@media(min-width: 900px) {
    .column-container {
        flex-direction: row;
    }   
}

@media(max-width: 901px) {
    .column-container {
        flex-direction: column;
    }
}


@media(min-width: 900px) {
    .single-column {
        max-width: 35%;
    }   
}

@media(max-width: 901px) {
    .single-column {
        max-width: 80%;
    }
}

.single-column-container {
    grid-template-columns: auto;
    margin: 10% auto 10% auto;
}

h2 {
    font-family: 'Roboto';
    font-weight: 300;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 2rem 0;
}   

p {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    text-align: 'left';
    line-height: 1.5;
    margin: 0 0 2rem 0;
}

li {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    text-align: 'left';
    line-height: 1.4;
    margin: 10px 0;
}

img {
    display: block;
    margin: 10px auto;
    max-width: 100%; /* This will ensure the image does not exceed the width of its container */
    max-height: 100%; /* This will ensure the image does not exceed the height of its container */
}


.poem {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
}

.poem span {
    display: block;
    text-align: right;
}

.learn-more-container {
    grid-column: span 2;
    background-color: rgba(254, 246, 228, 0.85);
    margin: 0% 10% 10% 10%; /* Adjust as needed */
    padding: 5%;
}

.learn-more-container h2 {
    font-family: 'Roboto';
    font-weight: 300;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    margin: 5%;
}


.therapy-boxes {
    display: flex;
}

@media(min-width: 758px) {
    .therapy-boxes {
        flex-direction: row;
    }   
}

@media(max-width: 757px) {
    .therapy-boxes {
        flex-direction: column;
    }
}

.therapy-box {
    position: relative;
    background-color: rgb(254, 246, 228);
    padding: 10px;
    margin: 1%;
    box-shadow: 0 4px 2px rgba(0, 0, 0, 0.5);
}

.therapy-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 2px rgba(0, 0, 0, 0.25);
}

.therapy-box p {
    font-family: 'Roboto';
    font-weight: 300;
    font-size: 1.3rem;
    text-align: center;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0; /* Added some margin at the bottom to separate it from the image */
}

.therapy-box img {
    width: 100%; /* This will ensure the image takes the full width of its container */
    height: auto; /* This will maintain the aspect ratio of the image */
    display: block; /* This will remove any white space below the image */
    margin: 0 auto; /* This will center the image horizontally */
}

footer {
    background-color: rgba(254, 246, 228, 0.85);
    padding: 20px;
    text-align: center;
  }
  
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-section {
    margin: 10px 0;
  }
  
  .footer-section h4 {
    font-family: 'Roboto';
    font-weight: 300;
    font-size: 1rem;
  }
  
  .footer-section p, .footer-section a {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
  }
  
  .footer-section a img {
    width: 24px; /* Adjust size as necessary */
    height: auto;
    margin: 0 10px;
  }

.contact-form {
    width: 60vw;
    max-width: 500px;
    padding: 0%;
}

.contact-form label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    background-color:  #e0b57d;
    font-family: 'Roboto', 'sans-serif';
    font-size: 1.4rem;
    font-weight: 200;
    border-radius: 4px;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline-color: #E77C11;
    outline-style: solid; /* Defines the style of the outline, it can be dotted, dashed, solid, etc. */
    outline-width: 3px; /* Defines the width of the outline */
}

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

button {
    padding: 15px;
    margin-top: 50px;
    width: 100%;
    border: none;
    border-radius: 3px;
    background-color: #472A1A;
    font-family: 'Roboto', 'sans-serif';
    color: white;
    font-size: 1.7rem; 
    cursor: pointer;
}
.contact-form button:hover {
    background-color: #E77C11;
}
