:root {
    /* sizes derived from your spec */
    --app-width: 50vw;         /* keep width responsive */
    --app-height: 200px;       /* FIXED height (no longer changes with viewport height) */
    --gap: calc(var(--app-height) * 0.2);  /* ~20% of the app height */
    --bg-dark: #2b2b2b;    /* page background */
    --bg-light: #e6e6e6;   /* app-div background */
    --text-dark: #111;
    --img-size: 150px;  
}



/* page background covering entire window */
html, body {
    height: 100%;
    margin: 0;
    color: var(--text-dark);

}

body {
  min-height: 100svh;            /* dynamic viewport unit to behave well on mobile */
  display: grid;
  grid-template-rows: auto 1fr;  /* header takes its height, main fills the rest */
  overflow-x: hidden;
  background: var(--bg-dark);         /* keep your dark background here */
}

/* stack and center the three app-divs vertically & horizontally */
.wrap {
  min-height: 0;                 /* cancels old min-height:100vh */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;       /* vertical centering */
  gap: var(--gap);          /* your existing spacing */
  overflow-y: auto;
}

/* make the entire block clickable via an anchor */
.app-link {
    display: block;
    width: var(--app-width);
    min-width: 450px;    
    height: var(--app-height);
    flex-shrink: 0;   
    text-decoration: none;    /* remove underline */
    color: inherit;
    border-radius: 60px;
    overflow: hidden;         /* keep children clipped to rounded corners */
    background: var(--bg-light);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    transition: transform .12s ease, box-shadow .12s ease;
}
.app-link:focus-visible {
    outline: 3px solid #9ac1ff;
    outline-offset: 2px;
}
.app-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,.3);
}

/* layout inside each app-div: image left, text right */
.app-div {
    display: grid;
    grid-template-columns: var(--img-size) 1fr;
    align-items: center;
    height: 100%;
    padding: 0 20px 0 25px;
    gap: 20px;
}

.app-div img {
  width: var(--img-size);
  height: var(--img-size);
  min-width: var(--img-size);
  min-height: var(--img-size);
  max-width: none;                   /* beats global img { max-width:100% } resets */
  object-fit: cover;
  display: block;
  /* If you happen to place these in a flex container someday: */
  flex: 0 0 auto;
}

.app-div .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}

.title {
    font-family: "noto-sans", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: xx-large;
    margin: 0;
    margin: 0;
    padding: 0;
    border: 0;                
    color: #000;
}

.subtitle {
  font-family: "noto-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  margin: 0 0 0 0;
  color: #000;
  opacity: 0.95;
}

/* small screens: ensure minimum usability */
@media (max-width: 480px) {
    :root {
    --app-width: 90vw;   /* give more width on tiny devices */
    }
    .app-div { grid-template-columns: var(--img-size) 1fr; }
    .app-div img { width: var(--img-size); height: var(--img-size); }
}


/* Lightweight header styling that won't clash with your existing CSS */
.site-header {
    font-family: "noto-sans", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: xx-large;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
max-width: 1200px;
margin: 0 auto;
padding: 12px 24px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.brand {
margin: 0;
/*font-size: clamp(16px, 2.2vw, 22px);*/
color: #fff;
/*letter-spacing: 0.3px;*/
}

.lang-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;                 /* space around links */
}

.lang-nav a {
  color: #fff;
  text-decoration: none;    /* base */
  font-weight: 600;
  padding: 2px 0;           /* gives the underline a little breathing room */
}

.lang-nav a:hover,
.lang-nav a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* separator */
.lang-nav a + a {
  border-left: 4px solid rgba(255,255,255,0.8);
  padding-left: 10px;       /* space after the vertical line */
  margin-left: 2px;         /* tiny gap before the line */
}


@media (max-width: 480px) {
.site-header .container {
    padding: 10px 14px;
}
}
