:root {

    --background:        #fafafa;
    --footer-background: #f1f1f1;
    --footer-text:       #666666;
    --tesco-blue:        #00539f;
    --tesco-red:         #ed1c24;

    --header-height: 3.5rem;

    --font-family: "TESCO Modern", Verdana, Geneva, Tahoma, sans-serif;
}

body {
    /* padding-top: 1em; */
    padding-top: var(--header-height);
}

.spacer {
    height: 3em;
}

.darker {
    background-color: var(--footer-background);
}

/* main {
    background: var(--background);
    background-size: cover;
    padding: 0;
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
} */

/* Blur */
.blur.active {
    filter: blur(10px);
    -webkit-filter: blur(10px);
    -moz-filter: blur(10px);
    -o-filter: blur(10px);
    -ms-filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

/*****************/
/* SESSION MODAL */
/*****************/
.session-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.session-modal__content {
    background: var(--background);
    padding: 24px 32px;
    border-radius: 8px;
    font-size: 24px;
    font-family: var(--font-family);
    color: var(--tesco-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.session-modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}

/* The navigation bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* width: 100%; */
    z-index: 9;

    min-height: var(--header-height);

    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    /* overflow: hidden; */
    background-color: var(--tesco-blue);
    
}

/* Links/buttons inside the navbar */
.navbar a, .navbar .btn {
    line-height: 1;
    /* float: right; */
    float: none;
    display: block;
    background-color: var(--tesco-blue);
    color: white;
    text-align: center;
    align-items: center;
    /* padding: 14px 16px; */
    padding: 8px 14px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875em;
    font-family: "TESCO Modern", Verdana, Geneva, Tahoma, sans-serif;
}
  
/* Change background on mouse-over */
.navbar a:hover, .navbar .btn:hover {
    background: white;
    color: var(--tesco-red);
}

/* Footer */
.footer {
    overflow: hidden;
    position: fixed;
    bottom: 0;
    background-color: var(--footer-background);
    width: 100%;
    height: 2em;
    z-index: 9;
}

.footer a, .footer button {
    float: left;
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: var(--footer-text);
    font-size: 0.75em;
    font-family: "TESCO Modern", Verdana, Geneva, Tahoma, sans-serif;
    padding: 0.75em;
    border: none;
}

.footer a:hover, .footer button:hover {
    color: black;
}

/* Content */
.article-row-0 {
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 30px 35px;
    color: black;
    height: 30vh;
}

.article-row-1 {
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 30px 35px;
    color: black;
    height: 30vh;
}

.article-row-0 > .article-content {
    width: 66%;
}

.article-row-1 > .article-content {
    width: 66%;
}

.article-row-0 > .image-content {
    width: 34%;
}

.article-row-1 > .image-content {
    width: 34%;
}


.image-content {
    /* max-width: 100%;
    height: auto; */
    max-width: 100%;
    overflow: hidden;
    margin-top: 1rem;
}

.image-content img{
    max-width: 100%;
    height: auto;
    display: block;
    /* object-fit: contain; */
  }

.article-content {
    font-family: Garamond;
    margin: 25px;
    text-align: center;
}

.article-content h1 {
    color: #00539f;
}

/* The popup form - hidden by default */
.form-popup {
    display: none;
    position: fixed;
  	left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border: 1px solid var(--footer-background);
    border-radius: 25px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 10;
    font-family: "TESCO Modern", Verdana, Geneva, Tahoma, sans-serif;
}

.login-container {
    width: 90vw;
    max-width: 600px;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 25px;
}

.login-container h1 {
    color: #00539f;
    font-size: 2.5em;
}

.center {
    text-align: center;
}

/* Jelszó mező + szem ikon egy sorban */
.password-container {
    display: flex;
    align-items: center;       /* függőleges közép */
    gap: 8px;
}

/* Input töltse ki a rendelkezésre álló helyet */
.password-container input {
    flex: 1 1 auto;
    min-width: 0;              /* KRITIKUS mobilon */
}

/* Szem ikon fix méret, nem törik */
.toggle-password {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;            /* ne zsugorodjon */
    cursor: pointer;
}

/* ÁSZF popup */
.aszf {
    max-height: 90vh !important;
  	overflow-y:scroll;
    background-color: white;
}

/* .form {
    width: 50%;
    margin: auto;
    font-family: "TESCO Modern", Verdana, Geneva, Tahoma, sans-serif;
} */

/* REGISZTRÁCIÓ – MOBILBARÁT SZÉLESSÉG */

/* Külső wrapper */
.form {
    width: 90vw;          /* mobilon ~5–5% margó */
    max-width: 600px;     /* desktop korlát */
    margin: 0 auto;
    font-family: "TESCO Modern", Verdana, Geneva, Tahoma, sans-serif;
}

/* Belső form */
.form-container {
    width: 100%;
    box-sizing: border-box;
    max-width: 500px;
    padding: 10px;
    background-color: var(--footer-background);
    border-radius: 25px;
}

.form h1, .form-popup h1 {
    color: #00539f;
}
  
/* Full-width input fields */
.form-container input[type=text], .form-container input[type=password], .form-container input[type=date],
.login-container input[type=text], .login-container input[type=password] {
    width: 95%;
    padding: 2.5%;
    margin: 5px 0 10px 0;
    border: none;
    background: white;
}

.form-container select {
    padding: 2.5%;
    margin: 5px 0 10px 0;
    border: none;
    background: white;
}
  
/* When the inputs get focus, do something */
.form-container input[type=text]:focus, .form-container input[type=password]:focus, 
.login-container input[type=text]:focus, .login-container input[type=password]:focus {
    /* background-color: #ddd; */
    outline: none;
}
  
/* Set a style for the submit/login button */
.form-container .btn, .login-container .btn {
    background-color: var(--tesco-blue);
    color: white;
    padding: 16px 20px;
    border: none;
    border-radius: 1.5rem;
    font-size: 1em;
    font-family: "TESCO Modern", Verdana, Geneva, Tahoma, sans-serif;
    cursor: pointer;
    width: 100%;
    margin-bottom:10px;
    opacity: 0.8;
}
  
/* Add a red background color to the cancel button */
.form-container .cancel, .login-container .cancel {
    background-color: var(--tesco-red);
}
  
/* Add some hover effects to buttons */
.form-container .login-container .btn:hover {
    opacity: 1;
}

.form-container a, .login-container a {
    color: var(--tesco-blue);
    text-decoration: none;
    font-weight: bold;
    font-family: "TESCO Modern", Verdana, Geneva, Tahoma, sans-serif;
}

.form-container label, .login-container label {
    width: 95%;
    padding: 2.5%;
    font-weight: bold;
}

.form-container input, .login-container input {
    height: 1em;
}

.form-container input[type="date"] {
    height: 1em;
}

.password-container {
    position: relative;
}

.password-container input[type="password"],
.password-container input[type="text"] {
    width: 85%;
}

.password-container .toggle-password {
    align-items: center;
    display: inline-flex;
    cursor: pointer;
}

.red {
    color: var(--tesco-red);
}

/* .field-error {
    color: var(--tesco-red);
    position: relative;
    justify-self: left;
    margin-bottom: 20px;
    font-size: 0.8vw;
} */
.field-error {
    color: var(--tesco-red);
    font-size: 0.875rem;
    font-weight: bold;
    margin-top: 2px;
    margin-bottom: 5px;
    display: block;
}

.inputBox a {
    color: var(--tesco-blue);
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    font-family: "TESCO Modern", Verdana, Geneva, Tahoma, sans-serif;
}

.hidden {
    display: none;
}

.info-container {
    position: fixed;
    min-width: 500px;
  	left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border: 1px solid var(--footer-background);
    border-radius: 25px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 10;
    background-color: #f6f6f6;
    font-family: "TESCO Modern", Verdana, Geneva, Tahoma, sans-serif;
}

.info-container .btn {
    background-color: var(--tesco-blue);
    color: white;
    padding: 16px 20px;
    border: none;
    border-radius: 1.5rem;
    font-size: 1em;
    font-family: "TESCO Modern", Verdana, Geneva, Tahoma, sans-serif;
    cursor: pointer;
    width: 100%;
    margin-bottom:10px;
    opacity: 0.8;
}

.info-container .btn:hover {
    opacity: 1;
}

.info-container .text {
    padding: 30px;
    text-align: center;
    font-family: "TESCO Modern", Verdana, Geneva, Tahoma, sans-serif;
}

@media only screen and (max-width: 992px) {

    .article-row-0, .article-row-1 {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        width: auto;
    }
    .article-row-0 > .article-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: 2.5vw;
        margin-bottom: 2.5vw;
    }
    .article-row-0 > .image-content {
        width: 100%;
        margin-top: 2.5vw;
        margin-bottom: 2.5vw;
    }
    .article-row-1 > .article-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: 2.5vw;
        margin-bottom: 2.5vw;
    }
    .article-row-1 > .image-content {
        width: 100%;
        margin-top: 2.5vw;
        margin-bottom: 2.5vw;
    }
    .aszf-form-popup {
        width: 90%;
    }
}
