/* Všeobecné štýly pre kontajner a rozloženie */
.container {
    position: relative;
    width: 100%;
    max-width: 90%;
    margin: 5px auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sekcia pre fotku */
.photo-section {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    overflow: hidden;
    border: 0px solid #818181;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Obrázok vo fotkovej sekcii */
.monika-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

/* Text vo fotkovej sekcii */
.text-overlay {
    position: absolute;
    top: 20%;
    left: 12%;
    color: rgb(0, 0, 0);
    font-size: 20px;
    line-height: 1.4;
    text-align: left;
    font-family: 'Tahoma', serif;
}

/* Štýly pre tlačidlá */
.buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    justify-items: center;
}

.button {
    width: 100%;
    max-width: 150px;
    text-align: center;
    padding: 10px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 20px;
    font-family: 'Tahoma', serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 0px solid #818181; /* Jemné orámovanie pre nevybraté tlačidlá */
}

/* Farby tlačidiel podľa sekcií */
#uvery {
    background-color: #74a277;
}

#poistenie {
    background-color: #a3b65e;
}

#investovanie {
    background-color: #e9d887;
}

#reality {
    background-color: #c9cfa1;
}

/* Hover efekt pre väčšie zariadenia */
@media (min-width: 769px) {
    .button:hover {
        transform: scale(1.05); /* Jemné priblíženie pri hover */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Jemný tieň */
    }
}

/* Efekt po zvolení tlačidla */
.button:active, .button.selected {
    transform: scale(1.05); /* Zostane priblížené po kliknutí */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Jemný tieň po zvolení */
    background-color: inherit; /* Zachová pôvodnú farbu, aby nedošlo k zmene */
    border: 0px solid #818181; /* Zachovanie pôvodného orámovania */
    font-weight: normal; /* Zachovanie pôvodnej hrúbky textu */
}

/* Skrytý obsah (iframe) */
#uvery-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-out, opacity 0.6s ease-out;
    margin-top: 20px;
    text-align: center;
}

/* Viditeľný obsah */
#uvery-content.visible {
    max-height: 800px; /* Nastav max-height podľa potreby */
    opacity: 1;
}

/* Upravené štýly pre zariadenia medzi 769px a 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
    }

    .photo-section {
        flex: 0 0 60%;
        margin-bottom: 0;
        margin-right: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .text-overlay {
        font-size: 20px;
        top: 65%;
        left: 10%;
        text-align: left;
        font-family: 'Tahoma', serif;
    }

    .buttons {
        flex: 0 0 40%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .button {
        width: 100%;
        max-width: 180px;
        text-align: left;
        padding: 30px;
        color: #ffffff;
        text-decoration: none;
        border-radius: 5px;
        font-size: 20px;
        font-family: 'Tahoma', serif;
        transition: background-color 0.3s ease;
    }
}

/* Upravené štýly pre väčšie zariadenia (nad 1024px) */
@media (min-width: 1025px) {
    .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .photo-section {
        flex: 0 0 65%;
        margin-bottom: 0;
        margin-right: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .monika-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .text-overlay {
        font-size: 20px;
        top: 20%;
        left: 10%;
        text-align: left;
        font-family: 'Tahoma', serif;
        line-height: 1.4;
    }

    .buttons {
        flex: 0 0 35%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .button {
        width: 100%;
        max-width: 300px;
        text-align: left;
        padding: 40px;
        color: #ffffff;
        text-decoration: none;
        border-radius: 5px;
        font-size: 20px;
        font-family: 'Tahoma', serif;
        transition: background-color 0.3s ease;
    }
}

/* Responzívne štýly pre menšie zariadenia */
@media (max-width: 768px) {
    .monika-image {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-items: center;
    }

    .button {
        width: 100%;
        max-width: 140px;
        color: #ffffff;
        font-family: 'Tahoma', serif;
    }

    /* Efekt po zvolení pre mobilné zariadenia */
    .button.selected {
        transform: scale(1.05); /* Priblíženie po výbere */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Jemný tieň po výbere */
        background-color: inherit; /* Zachová pôvodnú farbu */
        border: 0px solid #818181; /* Zachovanie pôvodného orámovania */
        font-weight: normal; /* Zachovanie pôvodnej hrúbky textu */
    }
        /* Skry obsahové sekcie, ktoré nie sú viditeľné */
    .content-section:not(.visible) {
        display: none !important;
    }

    .content-section.visible {
        display: block;
        position: relative;
        max-height: none;
        overflow: visible;
    }
}

#investovanie-content,
#reality-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-out, opacity 0.6s ease-out;
    margin-top: 20px;
    text-align: center;
}

#investovanie-content.visible,
#reality-content.visible {
    max-height: 800px;
    opacity: 1;
}

/* Investovanie sekcia - responzívne zobrazenie */
/* Globálne nastavenie box-sizing */

.investovanie-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px 20px 20px;
    text-align: left;
    overflow-wrap: break-word;
    overflow-y: auto;
}

/* Predvolené správanie – pre väčšie zariadenia */
#investovanie-content {
    padding-bottom: 10px; /* len jemná rezerva pod text */
}

.investovanie-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

.investovanie-box {
    background-color: #f9f9f9;
    border: 0px solid #ccc;
    border-radius: 8px;
    padding: 20px;
}

#investovanie-content h2 {
    color: #74a277; /* tmavomodrá, môžeš si zmeniť podľa chuti */
}

.investovanie-box h4 {
    margin-top: 0;
    font-size: 18px;
    color: #74a277;
}

.investovanie-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

.investovanie-zaver {
    margin-top: 15px;
    font-weight: normal;
    font-size: 17px;
    color: #666;
}

/* Stredné a väčšie zariadenia */
@media (min-width: 768px) {
    .investovanie-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Menšie zariadenia */
@media (max-width: 767px) {
    .investovanie-wrapper {
        padding: 10px 10px 20px 10px;
    }

    .investovanie-box {
        padding: 15px;
    }

    .investovanie-box h4 {
        font-size: 16px;
    }

    .investovanie-box p,
    .investovanie-zaver {
        font-size: 15px;
    }
        #investovanie-content {
            min-height: 100vh;
            overflow-y: auto;
        }

    
}

/* Extra malé zariadenia (napr. iPhone SE) */
@media (max-width: 400px) {
    .investovanie-wrapper {
        padding: 8px;
    }

    .investovanie-box h4 {
        font-size: 15px;
    }

    .investovanie-box p,
    .investovanie-zaver {
        font-size: 14px;
    }
}

.reality-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px 20px 20px;
    text-align: left;
    overflow-wrap: break-word;
    overflow-y: auto;
}

/* Predvolené správanie – pre väčšie zariadenia */
#reality-content {
    padding-bottom: 10px; /* len jemná rezerva pod text */
}

.reality-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

.reality-box {
    background-color: #f9f9f9;
    border: 0px solid #ccc;
    border-radius: 8px;
    padding: 20px;
}

#reality-content h2 {
    color: #74a277; /* tmavomodrá, môžeš si zmeniť podľa chuti */
}

.reality-box h4 {
    margin-top: 0;
    font-size: 18px;
    color: #74a277;
}

.reality-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

.reality-zaver {
    margin-top: 15px;
    font-weight: normal;
    font-size: 17px;
    color: #666;
}

/* Stredné a väčšie zariadenia */
@media (min-width: 768px) {
    .reality-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Menšie zariadenia */
@media (max-width: 767px) {
    .text-overlay {
        font-size: 15px;
        left: 4%;
        top: 70%;
    }
    .reality-wrapper {
        padding: 10px 10px 20px 10px;
    }

    .reality-box {
        padding: 15px;
    }

    .reality-box h4 {
        font-size: 16px;
    }

    .reality-box p,
    .reality-zaver {
        font-size: 15px;
    }
        #reality-content {
            min-height: 100vh;
            overflow-y: auto;
        }
}

/* Extra malé zariadenia (napr. iPhone SE) */
@media (max-width: 400px) {
    .reality-wrapper {
        padding: 8px;
    }

    .reality-box h4 {
        font-size: 15px;
    }

    .reality-box p,
    .reality-zaver {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .content-section {
        position: absolute;
        width: 100%;
        left: 0;
        top: auto;
        opacity: 0;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
    }

    .content-section.visible {
        position: relative;
        opacity: 1;
        pointer-events: auto;
        max-height: none;
        overflow: visible;
    }
}
