/* =========================
   BASE
   ========================= */
* { box-sizing: border-box; }

body {
    background: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    color: #0f172a;
}


/* Links */
a {
    text-decoration: none;
    color: #2563eb;
}

/* =========================
   HEADER (Logo + Flags)
   ========================= */
/* Topbar */

/* Topbar */
.app-topbar{
  display:flex;
  justify-content:center;
  margin-top:20px;
}

/* Brand Container */
.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
}

/* Logo */
.brand-logo{
  width:78px;
  height:78px;
  border-radius:22px;

  display:grid;
  place-items:center;

  background:linear-gradient(135deg,#6ee7ff,#a78bfa,#34d399);
  background-size:200% 200%;

  animation:gradientMove 10s ease infinite;

  box-shadow:0 12px 40px rgba(0,0,0,.25);
}

/* Logo SVG */
.brand-logo svg{
  width:40px;
  height:40px;
}

/* Text Block */
.brand-text{
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* Titel */
.brandTitle{
  font-size:40px;
  font-weight:900;
  color:#111827;
  line-height:1;
}

/* Untertitel */
.brandSub{
  font-size:18px;
  font-weight:600;
  color:#4b5563;
  margin-top:4px;
}


.logo img {
    width: 170px;
    margin: 20px auto 10px;
    display: block;
}



.flags {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

/* Standard Flagge */
.flags img {
    width: 36px;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: 
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
    opacity: 0.75;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Hover Effekt */
.flags a:hover img {
    transform: scale(1.18);
    opacity: 1;
    box-shadow: 0 6px 14px rgba(37,99,235,0.45);
}

/* ✅ AKTIVE SPRACHE */
.flags a.active img {
    transform: scale(1.35);
    opacity: 1;
    box-shadow: 0 8px 18px rgba(37,99,235,0.55);
    border: 2px solid #2563eb;
}

/* =========================
   BOXES (Login/Register/Dashboard Container)
   ========================= */
.login-box {
    width: 92%;
    max-width: 420px;
    margin: 24px auto;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.10);
}

.dashboard-box {
    width: 92%;
    max-width: 420px;
    margin: 0 auto 30px;
    padding: 0 0 20px;
}

/* =========================
   INPUTS / BUTTONS
   ========================= */
input {
    width: 90%;
    padding: 14px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Standard Button */
.btn {
    background: #2563eb;
    color: white;
    padding: 14px;
    width: 90%;
    margin-top: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 17px;
}

.btn:active { transform: scale(0.99); }

/* =========================
   EUROMILLIONS MENU GRID
   ========================= */
.menu-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
}

.menu-item{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  color: #0f172a;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-icon{
  font-size: 22px;
  width: 44px;
  height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #f4f7ff;
  border-radius: 12px;
}

.menu-title{
  font-weight: 700;
  font-size: 16px;
}

.menu-sub{
  grid-column: 2 / 3;
  font-size: 13px;
  color: #475569;
  margin-top: 2px;
}

.menu-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.14);
}

/* Flags groesser im Euromillions-Menue */
.flags-large img{
  width: 40px;
  height: 26px;
}

/* aktive Flagge hervorheben */
.flag-link.active img{
  transform: scale(1.15);
  box-shadow: 0 10px 26px rgba(37,99,235,0.25);
  outline: 2px solid rgba(37,99,235,0.35);
}



/* =========================
   DASHBOARD CARDS
   ========================= */
.user-card {
    background: #f4f7ff;
    border-radius: 14px;
    padding: 14px;
    margin: 16px auto 18px;
    width: 100%;
}

.user-email {
    font-weight: 700;
    font-size: 16px;
}

.user-meta {
    font-size: 14px;
    color: #475569;
    margin-top: 4px;
}

.section-title {
    margin: 18px 0 10px;
    font-size: 18px;
    text-align: center;
}

/* Abo Card */
.abo-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin: 0 auto 18px;
    width: 100%;
}

/* =========================
   GAME SELECTION (Buttons with Images)
   ========================= */
.game-selection {
    margin: 8px auto 10px;
    width: 100%;
}

.game-selection form {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Button ohne Hintergrund */
.game-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0;
    box-shadow: none !important;
    cursor: pointer;
}

/* Nur das Bild sichtbar */
.game-btn img {
    width: 160px;         /* <<< HIER steuert man die Groesse */
    height: 92px;         /* <<< HIER steuert man die Hoehe */
    display: block;
    object-fit: cover;    /* fuellt die Flaeche, keine Raender */
    border-radius: 18px;
    background: transparent !important;
    box-shadow: 0 10px 26px rgba(0,0,0,0.18); /* Schatten nur am Bild */
}

/* Hover/Tap Effekt */
@media (hover: hover) {
    .game-btn:hover img {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 14px 30px rgba(0,0,0,0.22);
    }
}
.game-btn:active img {
    transform: scale(0.98);
}

/* Hinweistext */
.hint {
    margin-top: 10px;
    color: #475569;
    font-size: 14px;
}

/* =========================
   LOGOUT
   ========================= */
.logout-btn {
    background: #0f172a;
    color: white;
    text-align: center;
    display: block;
    width: 100%;        /* passt exakt in dashboard-box */
    max-width: 420px;
    margin: 18px auto 0;
    border-radius: 14px;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 480px) {
    .logo img {
        width: 190px;
        margin-top: 16px;
    }

    .flags img {
        width: 34px;
    }

    .flags a.active img {
        transform: scale(1.3);
    }

    .login-box {
        margin-top: 18px;
        padding: 20px;
    }

    input {
        font-size: 15px;
        padding: 12px;
    }

    .btn {
        font-size: 16px;
        padding: 12px;
    }

    /* Spielbilder etwas kleiner auf Mobile */
    .game-btn img {
        width: 150px;
        height: 88px;
    }
}

/* =========================
   TABLET / DESKTOP
   ========================= */

   @media (min-width: 768px) {
    .logo img { width: 240px; }

    .game-btn img {
        width: 180px;
        height: 100px;
    }
}

@media (max-width:600px)
{

.brand-logo{
  width:64px;
  height:64px;
}

.brandTitle{
  font-size:32px;
}

.brandSub{
  font-size:16px;
}

}

