body {
    color: #333;
    background-color: #e4f9e4;
    height: auto;
    margin: 0px;
    padding-bottom: 80px;
}

header {
    background-color: #228b22ff;
    color: white;
    padding: 1em 0;
    text-align: center;
}

.gear-container {
    position: absolute;
    width: 200px;
    height: 200px;
    margin: auto;
    top: 5vh;
    left: -5vh;
    transform: translateY(-50%);
}

@media (max-width: 600px) {
    .gear-container {
        width: 160px;
        height: 160px;
    }
}

.gear {
    position: absolute;
    width: 85%;
    height: 85%;
    fill: #ffffff;
    stroke: #ffffff;
}

.gear-2 {
    width: 65%;
    top: 45%;
    left: 15%;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 10s linear infinite;
}

.reverse {
    animation-direction: reverse;
}

.header-logo {
    display: block;
    margin: 0 auto;
    width: 150px;
    height: auto;
    border-radius: 50%;
}

nav {
    background-color: #1f641f;
    text-align: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-flex;
    margin: 0;
    padding-bottom: 0;
}

nav ul li a {
    padding: 13px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #1f641f;
    background-color: #e4f9e4;
}

#pages li a:hover {
    color: #e4f9e4;
    background-color: #228b22ff;
}

h1 {
    line-height: 2em;
}

h2 {
    border-bottom: 2px solid #228b22ff;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

h3 {
    line-height: 2em;
}

ul.language-skills,
#data_management_text_container_div ul,
#smart-lifestyle-monitor-section ul {
    list-style-type: disc;
    padding-left: 1.5em;
}

ul li {
    padding-bottom: 1em;
    line-height: 23px;
}

#about ul li {
    padding-bottom: 0;
}

.about-content {
    display: flex;
    align-items: flex-start;
}

.about-photo {
    max-width: 150px;
    margin-right: 1em;
    border-radius: 50%;
    flex-shrink: 0;
}

#contact {
    padding-bottom: 70px;
}

#contact form label {
    display: block;
    padding: 10px 0px;
}

#contact form input[type="text"],
#contact form input[type="email"],
#contact form textarea {
    width: 97%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact form input[type="submit"] {
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
}

#contact form input[type="submit"] {
    background: #228b22ff;
}

.h-captcha {
    margin: 15px 0;
}

footer {
    background-color: #228b22ff;
    color: white;
    text-align: center;
    padding: 0.5em 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000000;
}

.gallery {
    display: flex;
    overflow-x: scroll;
    white-space: nowrap;
    padding: 1em 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 1em;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

#contact img {
    margin-bottom: 25px;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

#result {
    margin-top: 10px;
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

#loading img {
    width: 400px;
}

/* Alkalmazás minden <section>-re */
section {
    background-color: #ffffff;
    border-left: 5px solid #3a913f;
    padding: 30px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
}

/* Címsorok színezése */
section h2,
section h3 {
    color: #2a7a33;
}

/* Listák */
section ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

section ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

section pre {
    font-family: monospace;
    overflow-x: auto;
    background: #f9f9f9;
    padding: 1em;
    border-left: 4px solid #3a913f;
    border-radius: 4px;
}

/* Garmin App doboz stílus – egyszerű, letisztult */
.garmin-app {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 30px 0;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    min-height: 200px;
    position: relative;
    justify-content: space-between;
}

.app-content {
    flex: 1;
    padding-right: 20px;
}

.app-image-wrapper {
    position: relative;
    right: 0;
    bottom: 0;
    align-self: flex-end; /* ez viszi le a kép boxot az alsó sarokba */
}

.app-image-wrapper img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

#uploadForm {
    margin-top: 1em;
}

#uploadForm input[type="file"] {
    display: block;
    margin-bottom: 1em;
}

#uploadForm button {
    background-color: #1976d2;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    max-width: 250px;
}

#uploadForm button:hover {
    background-color: #125aa0;
}

/* === FIXES AND ENHANCEMENTS === */

/* Általános szövegméret, olvashatóság */
body {
    font-size: 16px;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

/* Címsorok */
h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.6em;
}
h3 {
    font-size: 1.3em;
}
h4 {
    font-size: 1.1em;
}

/* Alap listák – szekciókon belül */
section ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

ul li {
    font-size: 1em;
    padding-bottom: 0.5em;
    line-height: 1.5;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #f3e3e3;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

table thead {
    background-color: #007b3a;
    color: #fff;
}

table th,
table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table th {
    font-weight: bold;
}

tr:last-child td {
    border-bottom: none;
}

@media only screen and (max-width: 768px) {
    /* Minden section belső paddingje legyen kényelmes mobilon */
    section {
        padding: 20px 15px;
        margin: 30px 10px;
    }

    /* Címsorok kisebb méretben */
    section h2 {
        font-size: 1.4em;
    }

    section h3 {
        font-size: 1.2em;
    }

    /* Jobban olvasható listák és szöveg */
    section p,
    section ul,
    section li {
        font-size: 1em;
        line-height: 1.6;
    }

    /* Gomb teljes szélességben */
    button,
    input[type="submit"] {
        width: 100%;
        font-size: 1em;
    }

    /* Ikonok vagy emoji mellett legyen némi távolság */
    h2,
    h3 {
        display: flex;
        align-items: center;
        gap: 0.5em;
    }

    .garmin-app {
        flex-direction: column;
        padding: 15px;
        align-items: center;
    }

    .app-content {
        padding-right: 0;
    }

    .app-image-wrapper {
        position: static;
        align-self: normal;
    }

    .app-image-wrapper img {
        width: 50%;
        max-width: 300px;
        height: auto;
    }
}

/* === Subscriber Login special styles (kék aloldal) === */
.subscriber-login-section {
    background-color: #fff !important;
    border-left: 5px solid #2366b5 !important;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(60, 90, 150, 0.08);
}

.subscriber-login-container {
    max-width: 370px;
    min-width: 220px;
    width: 100%;
    box-sizing: border-box;
    margin: 60px auto 30px auto;
    padding: 34px 26px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(60, 90, 150, 0.12), 0 1.5px 3px rgba(60, 90, 150, 0.06);
}
.subscriber-login-container h2 {
    text-align: center;
    color: #2366b5;
    font-weight: 600;
}
.subscriber-login-container label {
    display: block;
    margin-top: 18px;
    font-size: 1.07em;
}
.subscriber-login-container input[type="text"],
.subscriber-login-container input[type="email"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 12px;
    border: 1.5px solid #aad1fb;
    border-radius: 8px;
    font-size: 1.08em;
    background: #fafdff;
    outline: none;
    transition: border 0.2s;
}
.subscriber-login-container input[type="text"]:focus,
.subscriber-login-container input[type="email"]:focus {
    border-color: #2366b5;
    background: #f3faff;
}
.subscriber-login-btn {
    width: 100%;
    box-sizing: border-box;
    margin-top: 28px;
    padding: 12px;
    background: linear-gradient(90deg, #489be9 50%, #2366b5 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    font-size: 1.12em;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(36, 78, 170, 0.09);
    transition: background 0.19s;
}
.subscriber-login-btn:hover {
    background: linear-gradient(90deg, #2366b5 60%, #489be9 100%);
}
.subscriber-login-container .error-msg {
    color: #e53935;
    margin: 20px 0 0 0;
    font-size: 1.05em;
    text-align: center;
    background: #fff6f6;
    border-radius: 8px;
    padding: 7px;
    border: 1px solid #ffd1d1;
}
.subscriber-login-container .remember-me-row {
    display: flex;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 1em;
}
.subscriber-login-container .remember-me-row input[type="checkbox"] {
    margin-right: 9px;
    width: 19px;
    height: 19px;
    accent-color: #2366b5; /* Modern böngészőben kék */
    cursor: pointer;
}
.subscriber-login-container .remember-me-row label {
    margin: 0;
    font-size: 1em;
    font-weight: 500;
    user-select: none;
    cursor: pointer;
}

.data-overview-section {
    background: #fafdff;
    border-left: 5px solid #2366b5;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(60, 90, 150, 0.07);
    max-width: 1200px;
    padding: 30px;
}
.data-overview-section h2,
.data-overview-section h3 {
    color: #2366b5;
    margin-bottom: 1.2em;
}
.data-overview-container {
    max-width: 1200px;
    margin: 0 auto;
}
.data-overview-section table {
    margin-bottom: 18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1.5px 7px rgba(35, 102, 181, 0.04);
}
.data-overview-section th {
    background: #2366b5;
    color: #fff;
}
.data-overview-section td,
.data-overview-section th {
    font-size: 1em;
}
