/* --------------------------------------------------------------
   Base (light) theme – shown when the user has no dark‑mode
   -------------------------------------------------------------- */
:root {
    --bg-color:      #ffffff;
    --text-color:    #111111;
    --accent-color:  #222222;   /* headings, borders, etc. */

    /* New custom colours for the button */
    --button-bg:          transparent;
    --button-border:      #ff6600;   /* orange border */
    --button-text:        #ff6600;   /* orange text */
    --button-hover-bg:    #ff6600;   /* solid orange on hover */
    --button-hover-text:  #ffffff;  /* white text on hover */
}

/* --------------------------------------------------------------
   Dark theme – automatically applied when the OS/browser
   is set to dark mode (prefers-color-scheme: dark).
   -------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color:      #121212;
        --text-color:    #e0e0e0;
        --accent-color:  #fafafa;

        /* Keep the orange button colours unchanged in dark mode */
        --button-bg:          transparent;
        --button-border:      #ff6600;
        --button-text:        #ff6600;
        --button-hover-bg:    #ff6600;
        --button-hover-text:  #ffffff;
    }
}

/* --------------------------------------------------------------
   Global page styles
   -------------------------------------------------------------- */
html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: system-ui, sans-serif;
    text-align: center;               /* keeps everything centered */
}

/* Heading style – uses accent colour for a subtle contrast */
h1 {
    color: var(--accent-color);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------
   Contact block – simple, easy to edit
   -------------------------------------------------------------- */
.contact {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.contact p {
    margin: 0.3rem 0;
}
.contact .value {
    color: var(--accent-color);
}

/* --------------------------------------------------------------
   Flex container for the images
   -------------------------------------------------------------- */
.img-wrapper {
    display: flex;
    gap: 10px;               /* space between the two images */
    justify-content: center;
    flex-wrap: wrap;         /* allow wrapping on small screens */
}
.img-wrapper img {
    max-width: 100%;
    height: auto;
}
.img-wrapper + .img-wrapper {
    margin-top: 10px;        /* 10 px gap between the two groups */
}

/* --------------------------------------------------------------
   Optional: force a vertical stack on very narrow devices.
   -------------------------------------------------------------- */
@media (max-width: 480px) {
    .img-wrapper {
        flex-direction: column;   /* stack top‑to‑bottom */
        align-items: center;
    }
}

/* --------------------------------------------------------------
   Footer – dark grey line across the full width + centred text
   -------------------------------------------------------------- */
.site-footer {
    margin-top: 20px;
    padding: 0.6rem 0;
    border-top: 1px solid #555555;   /* dark‑grey line */
    font-size: 0.9rem;
    color: var(--text-color);
}

/* --------------------------------------------------------------
   Styled anchor button (orange text, orange border,
   orange fill on hover)
   -------------------------------------------------------------- */
.styled-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    /* top  right/left bottom right/left */
    margin: 0.3rem 0;               /* reduced vertical spacing */
    font-size: 1rem;
    text-decoration: none;
    color: var(--button-text);
    background-color: var(--button-bg);
    border: 2px solid var(--button-border);
    border-radius: 6px;
    transition: background-color 0.25s ease,
                color 0.25s ease;
}

/* ---------- NEW RULE ----------
   Adjust spacing around the “Jó tudni” button
   -------------------------------------------------------------- */
.info-button {
    /* More breathing room *before* the button */
    margin-top: 2rem;        /* increase as needed */

    /* Less space *after* the button */
    margin-bottom: 0.5rem;   /* decrease from the previous 1.5rem */
}

/* Hover state – fully orange background, white text */
.styled-button:hover,
.styled-button:focus {
    background-color: var(--button-hover-bg);
    color: var(--button-hover-text);
}

/* --------------------------------------------------------------
   RESPONSIVE BUTTON – ONLY ON NARROW SCREENS
   -------------------------------------------------------------- */
@media (max-width: 480px) {
    .styled-button {
        max-width: 90%;               /* leave a little side margin */
        box-sizing: border-box;       /* include padding/border in width */
        padding: 0.5rem 0.8rem;       /* slightly smaller tap target */
        margin-left: auto;
        margin-right: auto;           /* centre it */
        display: block;               /* forces it onto its own line */
    }
}

/* OPTIONAL: prevent images from becoming too tiny */
.img-wrapper img {
    min-width: 150px;   /* remove if you want pure fluid scaling */
}