:root,
:root[data-theme="light"] {
  --background-image: url("../img/BG_L.jpg");
  --arrow-image: url("../svg/down-light.svg");
  --text-color: #170F08;
  --text-highlight-color: #52311F;
  --container-border: rgba(23, 15, 8, 0.5);
  --container-fill: #FFF4EF;
  --container-text: rgba(23, 15, 8, 0.7);
  --container-highlighted-border: #170F08;
  --container-highlighted-fill: #FFF4EF;
  --container-highlighted-text: #170F08;
  --highlight-container-border: rgba(42, 26, 17, 0.7);
  --highlight-container-fill: rgba(150, 98, 70, 0.7);
  --highlight-container-text: #FFF4EF;
  --highlight-container-highlighted-border: #2A1A11;
  --highlight-container-highlighted-fill: #966246;
  --highlight-container-highlighted-text: #FFF4EF;

  scrollbar-width: thin;
    scrollbar-color: var(--highlight-container-highlighted-fill) transparent;
    overflow-y: auto;
}

:root[data-theme="dark"] {
  --background-image: url("../img/BG_D.jpg");
  --arrow-image: url("../svg/down-dark.svg");
  --text-color: rgba(255, 244, 239, 1);
  --text-highlight-color: #966246;
  --container-border: rgba(255, 244, 239, 0.5);
  --container-fill: #170F08;
  --container-text: rgba(255, 244, 239, 0.75);
  --container-highlighted-border: rgba(255, 244, 239, 0.9);
  --container-highlighted-fill: #170F08;
  --container-highlighted-text: rgba(255, 244, 239, 0.9);
  --highlight-container-border: rgba(255, 244, 239, 0.5);
  --highlight-container-fill: rgba(82, 49, 31, 0.5);
  --highlight-container-text: rgba(255, 244, 239, 0.75);
  --highlight-container-highlighted-border: rgba(255, 244, 239, 0.9);
  --highlight-container-highlighted-fill: #52311F;
  --highlight-container-highlighted-text: rgba(255, 244, 239, 0.9);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background-image: url("../img/BG_D.jpg");
    --arrow-image: url("../svg/down-dark.svg");
    --text-color: rgba(255, 244, 239, 1);
    --text-highlight-color: #966246;
    --container-border: rgba(255, 244, 239, 0.5);
    --container-fill: #170F08;
    --container-text: rgba(255, 244, 239, 0.75);
    --container-highlighted-border: rgba(255, 244, 239, 0.9);
    --container-highlighted-fill: #170F08;
    --container-highlighted-text: rgba(255, 244, 239, 0.9);
    --highlight-container-border: rgba(255, 244, 239, 0.5);
    --highlight-container-fill: rgba(82, 49, 31, 0.5);
    --highlight-container-text: rgba(255, 244, 239, 0.75);
    --highlight-container-highlighted-border: rgba(255, 244, 239, 0.9);
    --highlight-container-highlighted-fill: #52311F;
    --highlight-container-highlighted-text: rgba(255, 244, 239, 0.9);
  }
}

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    outline: none;
    box-sizing: border-box;
}

input:focus, select:focus, button:focus {
    outline: none;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: var(--container-fill);
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);

    overflow-x: hidden;
}

h1 {
    color: var(--text-color);
    text-align: center;
    font-size: 3rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

h1 b {
    color: var(--text-highlight-color);
    font-weight: 800;
}

h2 {
    text-align: center;
    font-weight: 400;
    font-size: 2rem;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 100%;
    height: 100vh;
}

.page.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.page-header {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    margin: 0 5vw;
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: 10vh;
}

.page-header h1 {
    font-size: 2.5rem;
}

.page-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.loader {
    border: 4px solid transparent;
    border-top: 4px solid var(--text-highlight-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s cubic-bezier(0.3, 0, 0.2, 1) infinite;
    margin: 2rem auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-fav-message {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    border: 2px dashed var(--container-border);
    border-radius: 20px;
    background-color: transparent;
    color: var(--container-text);
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
    transition: all 0.2s ease;
    font-style: italic;
}
