*, *::before, *::after {
    box-sizing: border-box;
}

:root{
  --block-width: min(92vw, 360px);
}

body {
    background-color:#E8F0FE;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 24px;
    min-height: 85vh;
    font-family: "Roboto";
    -webkit-font-smoothing: antialiased;
}

img {
    border-radius: 10px;
    max-width: var(--block-width);
    height: auto;
}

img:hover, img:focus {
    transform: scale(1.02);
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 32px;
}

.logo-wrapper img {
    transition: transform 0.25s ease;
}

.logo-wrapper img:hover {
    transform: scale(1.02);
}

a {
    text-decoration: none;
    color: #032962;
    -webkit-tap-highlight-color: rgba(0,0,0,0.08);
}

nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 0;
    margin-bottom: 32px;
    max-width: calc(var(--block-width) * 2 + 25px);
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 0;
    margin: 0;
    width: 100%;
}

nav ul ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

nav ul ul li {
    flex: 1;
}

nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    border: 1.5px solid #032962;
    border-radius: 12px;
    color:#032962;
    background-color: transparent;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
}

nav a span {
    transform-origin: center center;
    display: inline-block;
    transition: transform 0.3s ease;
}

nav a:focus-visible {
    outline: 2px solid #032962;
    outline-offset: 3px;
}

nav a:hover {
    color: #E8F0FE; 
    background-color: #032962;
    border-radius: 12px;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

nav a:hover span, nav a:focus span {
    transform: scale(1.03);
}

footer {
    margin-top: auto;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 100%;
}

footer p {
    color: #032962;
    font-family: "Roboto Serif";
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
}

@media (max-width: 600px) {
  .logo-wrapper {
      flex-direction: column;
      gap: 15px;
  }
  nav {
      max-width: var(--block-width);
  }
}

@media (max-width: 768px) {
    nav a {
        font-size: 18px;
        height: auto;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 16px;
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

html { font-size: clamp(14px, 1.8vw, 18px); }


