:root {
  --espresso: #4A2C2A; /* espresso brown (headers, nav, logo outlines) */
  --medium-roast: #724a48; /* medium roast (secondary colors) */
  --latte: #C7A17A; /* latte tan (buttons, accents, highlights) */
  --cream: #F3EDE4; /* cream (backgrounds, cards, panels) */
  --foam: #E8C9A1; /* foam highlight (hover states, subtle UI glow) */
  --deep-roast: #2B1A18; /* deep roast (text, shadows, borders) */
  --light-roast: #782117; /* light roast (errors and error text) */
  --frothy: #cfb6b3; /* frothy espresso (ghosted text) */
}

@font-face {
    font-family: 'SkinnyFlower';
    src: url('/fonts/SkinnyFlower.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("/images/site/bg.jpg");
    background-repeat: repeat;
}

* {
    box-sizing: border-box;
    outline: none;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;    
}

.logo {
  height: 200px;
  display: inline-flex;
}

.title {
    font-family: 'SkinnyFlower', 'Arial Narrow', sans-serif;
    font-size: 120px;
    color: var(--espresso);
    display: flex;
    line-height: 100px;
}

.subtitle {
    font-family: 'SkinnyFlower', 'Arial Narrow', sans-serif;
    font-size: 40px;
    color: var(--espresso);
      text-align: justify;
  text-align-last: justify; /* Forces the single line or last line to stretch */
  width: 100%;
}

.title-header {
  display: flex;
  align-items: center; /* Vertically centers the logo and text */
  gap: 12px;           /* Adds space between the logo and text */
  max-width: max-content;
  margin: 0 auto;
}


#content {
    width: 1024px;
    margin-left: calc((100vw - 1024px) / 2);
}

.search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: white;
    border-radius: 9999px; 
    box-shadow: 1px 12px 19px -6px rgba(43,26,24,0.66);
    padding: 6px;
}

.search-input {
    border: none;
    color: var(--deep-roast);
    padding: 0 14px 0 50px;
    font-size: 30px;
    text-align: center;
    font-weight: 900;
    width: 100%;
    flex: 1;
    background: transparent;
}

::selection {
  color: white;
  background-color: var(--latte);
}

.search-input::placeholder {
    font-weight: 400px;
    color: var(--frothy);
}

.button {
    cursor: pointer;
    border-radius: 10px;
    color: var(--deep-roast);
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.25s, opacity 0.5s;
}

.button:hover {
    background-color: var(--foam);
}

.button.button-disabled {
    opacity: .5;
    pointer-events: none;
}

.button-round {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    border: none;
    background-color: var(--latte);
    padding: 6px;
}

.search-validity {
    display: flex;
    align-items: center;
    background-color: var(--espresso);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px; 
    max-width: max-content;
    box-shadow: 1px 12px 19px -6px rgba(43,26,24,0.66);
    padding: 6px 15px;
    font-size: 20px;
    color: var(--cream);
    transition: background-color .50s, color .50s;
}

.search-validity.valid-choice {
    background-color: var(--latte);
    color: var(--espresso);
}

.search-validity.invalid-choice {
    background-color: var(--light-roast);
    color: var(--cream);
}

.loading-bar {
    margin-top: 30px;
    justify-content: center; 
    gap: 6px;
    display: flex;
    align-items: center;
    width: 100%;
    background-color: none;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--espresso);
    border-bottom-color: var(--latte);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    } 