@font-face {
  font-family: 'Jellee';
  src: url('/jellee.otf') format('opentype');
}

@font-face {
  font-family: 'Comfortaa';
  src: url('/comfortaa-variable.ttf') format('truetype');
}

:root {
  --primary-color: 118, 66, 138;
  --secondary-color: 215, 123, 186;
  --secondary-color-hover: 193, 110, 167;
  --background-color: 255, 253, 237;
  --foreground-color: 0, 0, 0;
}

body {
    font-family: 'Comfortaa';
    background-color: rgb(var(--background-color));
    color: rgb(var(--foreground-color));
    padding: 20px;
    margin: 0;
}

h1 {
  font-family: 'Jellee';
    color: rgb(var(--primary-color));
    font-size: 2.5em;
    margin-bottom: 10px;
}

h2 {
    color: rgb(var(--secondary-color));
    font-size: 2em;
    margin-bottom: 10px;
}

p {
    text-align: justify;
    line-height: 1.6;
}

li {
  margin: 10px 0;
}


nav { margin-bottom: 20px; color: rgb(var(--foreground-color)); }

.nav-menu {
  background: rgba(var(--secondary-color), 0.12);
  color: rgb(var(--foreground-color));
  border-radius: 8px;
  padding: 4px;
}

.nav-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  user-select: none;
  background: rgba(var(--secondary-color), 0.35);
  color: rgb(var(--primary-color));
}

.nav-summary::-webkit-details-marker { display: none; }

.nav-summary::after {
  content: "▾";
  margin-left: 12px;
  transition: transform 0.18s ease;
}

.nav-menu[open] .nav-summary::after { transform: rotate(180deg); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
}

.nav-links a {
  color: rgb(var(--primary-color))
  background-color: rgba(var(--secondary-color), 0.35);
  padding: 10px 12px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
  flex: 1 1 auto;
}

.nav-links a:hover { background-color: rgba(var(--primary-color), 0.4); }


.nav-links a:link { color: rgb(var(--primary-color)) }
.nav-links a:visited { color: rgb(var(--primary-color)) }

@media (orientation: landscape) {
  .nav-menu[open] { }
  .nav-links { display: flex !important; }
}

@media (orientation: portrait) {
  .nav-links a { flex: 1 1 100%; }
}

img {
  border-radius: 6px;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

input:invalid {
  box-shadow: 0 0 3px 1px red;
}

input:focus:invalid {
  box-shadow: none;
}

.submit-button {
    background-color: rgba(var(--secondary-color), 0.35);
    color: rbg(var(--primary-color));
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: rgba(var(--primary-color), 0.4);
}
