*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    font: inherit;
}

html {
    font-family: "Inter", sans-serif;
}

/*AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA*/
.background, .footer-background {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.background {
    align-items: center;
}

.footer-background {
    align-items: center;
}

.black-theme {
    background-color: black;
    color: white;
}

.gradient {
    background: radial-gradient(ellipse at left 75% top 55%, rgb(36, 36, 36) 0%, black 80%);
}

.white-theme {
    background-color: white;
    color: black;
}

h1,
h2 {
    font-weight: bold;
    font-size: min(5.8vw, 97.44px);
    text-transform: uppercase;
    margin-bottom: 0.3em;
}

p {
    margin: 1em 0em;
    font-size: min(1.3vw, 21.84px);
}

.btn-white {
    font-weight: bold;
    font-size: min(1.3vw, 21.84px);
    margin: 1em 0em;
    background-color: white;
    padding: 1em 1.3em;
    border: none;
    border-radius: 5em;
    cursor: pointer;
    border: 2px solid white;
    transition: background-color 0.15s, color 0.15s;
}

.btn-black {
    font-weight: bold;
    font-size: min(1.3vw, 21.84px);
    margin: 1em 0em;
    color: white;
    background-color: black;
    padding: 1em 1.3em;
    border: none;
    border-radius: 5em;
    cursor: pointer;
}

.btn-white:hover{
    background-color: rgba(0, 0, 0, 0.0);
    color: white;
}

section, footer{
    padding: 4em;
    max-width: 1600px;
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.logo {
    width: min(13vw, 218.4px);
    margin-bottom: 2em;
}

.karta {
    width: min(50vw, 840px);
}

/*Carousel mrdka*/

#benefits {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

#benefits h2 {
    transform: translateX(min(12vw, 201.6px));
}

.carousel-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    gap: min(3vw, 50.4px);
}

/*sipky vyprcane*/
.carousel-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: min(1.5vw, 25.2px);
}

.carousel-button {
    background: none;
    border: none;
    cursor: pointer;
}

.carousel-button img{
    width: min(3.5vw, 58.8px);
}

/*karticky pojebane*/
.carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    width: auto;
    overflow-x: scroll;
    display: flex;
    gap: min(1.5vw, 25.2px);
    }

.carousel-slide {
    flex: 0 0 min(25vw, 420px);
    height: min(25vw, 420px);
    border: 2px solid black;
    border-radius: 2em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: min(2vw, 35px);
    cursor: pointer;
}

.carousel-slide i{
    align-self: flex-end;
    font-size: min(4.5vw, 75.6px);
    margin-bottom: min(2.5vw, 42px);
}

.carousel-slide h3{
    font-size: min(2vw, 35px);
    font-weight: 700;
}


/*Část CSS sloužící čistě jako grid pro stránku s kroky*/
.steps-container {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: 15% 40% 10% 7.5% 7.5%;
}

.steps-icon-container {
    grid-area: 1 / 1 / 5 / 2;
}

.first-step {
    grid-area: 1 / 2;
}

.second-step {
    grid-area: 2 / 2;
}

.third-step {
    grid-area: 3 / 2;
}

.big-appstore-button-container {
    grid-area: 1 / 4;
}

.big-google_play-button-container {
    grid-area: 2 / 4;
}

.steps-icon-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.steps-icon{
    width: min(12vw, 201.6px);
}

.steps-icon-mobile{
    display: none;
}

.step {
    padding: min(1.5vw, 25.2px) min(1vw, 16.8px) min(1vw, 16.8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

}

.step h3{
    font-weight: bold;
    font-size: min(1.5vw, 25.2px);
}

.big-appstore-button-container, .big-google_play-button-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/*Bude třeba upravit pro správnou responsivitu*/
.big-appstore-button, .big-google_play-button {
    width: min(25vw, 420px);
    cursor: pointer;
}

#consultant {
    display: flex;
    flex-direction: row;
    gap: 5em;
    margin: 0.3em 0em 0em;
    padding-top: 6em;
    padding-right: 8em;
}

#consultant h2{
    padding: 0; 
}

#consultant p{
    width: 75%;
}

.milan1 {
    width: min(535px, 31.845vw);
}

.milan2 {
    display: none;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: min(11.5vw, 193.2px);
}

.footer-content p{
    font-size: min(1.1vw, 18.48px);
}

.footer-heading {
    font-weight: bold;
    font-size: min(1.3vw, 21.84px);
    text-transform: uppercase;
    margin-bottom: 1em;
}

.info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: min(1.2vw, 20px);
}

.info img {
    margin-bottom: 2.5em;
}

.info .adress {
    margin: 0.2em 0em;
}

.aplikace {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.aplikace img {
    width: min(9.524vw, 160px);
    margin-bottom: 1em;
    cursor: pointer;
}

.icon-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1em;
}

.icon-row img{
    cursor: pointer;
    width: min(2.976vw, 50px);
}

.copyright {
    font-size: min(0.9vw, 15px);
    font-weight: bold;
}
/*POPUP*/
/* Popup Container */
.popup-container {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup Window */
.popup-window {
    background: white;
    border-radius: 2em;
    padding: 5em;
    max-width: 600px;
    text-align: center;
    position: relative;
    color: black;
}

.popup-window p{
    font-size: min(1.3vw, 21.84px);
}

.popup-window img{
    margin-top: 2em;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 10px;
    right: 35px;
    background: none;
    border: none;
    font-size: 3.5vw;
    cursor: pointer;
    color: grey;
}

.popup-close:hover {
    color: black;
}

/*SUCCESS POPUP*/
.popup-window ul{
    text-align: left;
}

.popup-window li {
    font-size: min(1.3vw, 21.84px);
}

@media (max-width: 720px){

    #hero {
        display: flex;
        flex-direction: column;
    }

    .logo {
        width: 20vw;
    }

    h1, h2 {
        font-size: 10vw;
    }
 
    p {
        font-size: 4vw;
    }

    section {
        padding: 2em;
    }
    .hero-container {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
    }

    .btn-white {
        font-size: 4vw;
        margin: 0.5em 0em;
        width: fit-content;
        padding: 0.7em 1em;
    }

    .karta {
        width: 100%;
    }

    /*Zde misto na carrousel*/
    /*----------------*/
    #benefits h2{
        transform: none;
    }

    .carousel-nav {
        display: none;
    }

    .carousel-slide{
        flex-basis: 75vw;
        height: auto;
        padding: 4em 2em 2em;
    }

    .carousel-slide i{
        font-size: 20vw;
        margin-bottom: 20vw;
    }

    .carousel-slide h3{
        font-size: 5vw;
    }

    .steps-container {
    grid-template-rows: repeat(5, 1fr);
    grid-template-columns: repeat(3, 1fr);
    }

    .steps-icon-container {
        grid-area: 1 / 1 / 4 / 4;
    }
    
    .first-step {
        grid-area: 1 / 2 / 2 / 4;
    }
    
    .second-step {
        grid-area: 2 / 2 / 3 / 4;
    }
    
    .third-step {
        grid-area: 3 / 2 / 4 / 4;
    }
    
    .big-appstore-button-container {
        grid-area: 4 / 1 / 5 / 4;
    }
    
    .big-google_play-button-container {
        grid-area: 5 / 1 / 6 / 4;
    }

    .steps-icon-container {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    
    .steps-icon{
        display: none;
    }

    .steps-icon-mobile{
        transform: translateX(-7vw);
        display: block;
        width: 40vw;
    }

    .steps-container {
        margin-top: 3.5em;
    }

    .step {
        padding: 0em;
    }

    .step h3{
        font-size: 4vw;
    }

    .big-appstore-button-container, .big-google_play-button-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .big-google_play-button-container{
        align-self: flex-start;
    }

    .big-appstore-button, .big-google_play-button {
        width: 80vw;
    }

    #consultant {
        padding: 2em;
    }
    
    .consultant-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #consultant p {
        width: 100%;
    }

    .milan1 {
        display: none;
    }

    .milan2 {
        display: block;
        width: 100%;
        padding-block: 2em;
    }

    footer {
        padding: 2em;
    }

    .footer-background{
        align-items: flex-start;
    }

    .footer-content {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 1em;
    }

    .footer-content div{
        margin-bottom: 1.5em;
    }

    .info{
        margin: 0;
    }

    .adress{
        margin: 0;
    }

    .info img{
        width: 80%;
        margin-bottom: 5em;
    }

    .footer-content p{
        font-size: 4vw;
    }

    .footer-heading{
        font-size: 4.3vw;
    }

    .aplikace img{
        width: 40vw;
    }

    .icon-row img{
        width: 15vw;
    }

    .copyright{
        font-size: 4vw;
    }

    /*MOBILE POPUP*/
    .popup-window {

        padding: 2em;
        max-width: 400px;
        text-align: center;
        position: relative;
        color: black;
    }

    .popup-window ul{
        width: 80%;
        padding: 1em;
    }

    .popup-window p, .popup-window li{
        font-size: 4vw
    }

    .popup-window li{
        margin-bottom: 0.4em;
    }

    .popup-window img{
        margin-top: 2em;
    }
    
    .popup-window .btn-black{
        font-size: 4vw;
    }

    /* Close Button */
    .popup-close {
        position: absolute;
        top: 10px;
        right: 35px;
        background: none;
        border: none;
        font-size: 10vw;
        cursor: pointer;
        color: grey;
    }
}