
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #ffffff;
}

.home-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #000;
    text-decoration: underline;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-weight: normal;
    margin: 0 0 20px 0;
}

p {
    margin-bottom: 1rem;
}


header {
    background-color: #f9f9f9;
    padding-top: 7rem;
    text-align: center;
}

.image-container {
  position: relative;
  display: inline-block;
  width: 20%;
}

.image-container img {
  display: block;
  width: 100%;
}

.image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/assets/images/portrait.png);
  background-size: cover;
  opacity: 0;
  transition: opacity 1.0s ease-in-out;
}

.image-container:hover::before {
  opacity: 0.6;
}

.home-container{
    flex: 1 0 auto;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 10px;
    padding: 0 0 1rem 0;
}

/* Main styles */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
    background-color: #ffffff;
}

main.blog-post p {
    text-align: justify;
}

main.blog-post a {
    color: #0000b0;
    text-decoration: none;
}

main.blog-post a:hover {
    color: #0000e0;
    text-decoration: underline;
}

main.chat form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

main.chat form textarea {
    flex: 1;
    resize: none;
}

main.chat button {
    cursor: pointer;
    background: #ccc;
    border: 2px solid #999;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    flex-shrink: 0;
    background-image: none;
}

main.chat sup a {
    display: inline-block;
    text-decoration: none;
    font-size: 0.75em;
    background-color: #f0f0f0;
    height: .75rem;
    width: .75rem;
    margin: .2rem .2rem;
    border: none;
    border-radius: 2px;    
    transition: all 0.2s ease;
    text-align: center;
    line-height: .75rem;
    letter-spacing: 0.5px;
}

main.chat sup a:hover {
    color: #f0f0f0;
    background-color: #5f5f5f;
}

#chat-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#usr-message {
    scroll-margin-top: 20px;
    scroll-margin-bottom: 20px;
}

.htmx-indicator {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 200ms ease-in, max-height 200ms ease-in;
}

.htmx-request .htmx-indicator {
    opacity: 1;
    max-height: 50px;
}

.htmx-request.htmx-indicator {
    opacity: 1;
    max-height: 50px;
}

section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

ul li {
    margin-bottom: 10px;
}

ul li:last-child {
    margin-bottom: 0;
}

.emoji {
  display: inline-flex;
  justify-content: center;
  width: 2em; /* Adjust the width as needed */
  height: 1em; /* Adjust the height as needed */
  font-size: 1em;
}

/* Footer styles */
footer {
    background-color: #f9f9f9;
    padding: 2rem 0 7rem 0;
    text-align: center;
}

.home-footer {
    padding-bottom: 7rem;
    flex-shrink: 0;
}

.more-space {
    margin-bottom: 30px;
}

.social-media {
    margin-bottom: 1rem;
}

.social-media a {
    display: inline-block;
    margin-right: 10px;
}

.social-media a i {
    font-size: 24px;
    color: #333;
}


input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

/* Focus state for inputs */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}


input::placeholder,
textarea::placeholder {
    color: #999;
    opacity: 1;
}

@media (pointer: coarse) and (hover: none) {

    header {
        background-color: #f9f9f9;
        padding: 20px;
        padding-top: 7rem;
        text-align: center;
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        margin: 10px;
        font-size: 2rem;
    }

    /* header div img {
        display: block;
        margin: 0 auto;
        max-width: 50%;
        margin-bottom: 30px;
    } */

    .image-container {
      position: relative;
      display: inline-block;
      width: 50%;
    }

    .image-container img {
      display: block;
      width: 100%;
    }

    footer, .home-footer {
        background-color: #f9f9f9;
        padding: 2rem 20rem;
        text-align: center;
        flex: 1;
    }
}
