/* nejsme vcerejsi, pouzivame moderni box model */
*, :after, :before { 
    box-sizing: border-box;
}


body {
    margin-top: 10px;
    margin: 0;
    padding: 0;
    background-color: #feece2;
    animation: fadein 0.5s ease;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

@keyframes fadein {
    from {opacity: 0;}
    to {opacity: 1;}
}

.wrap {
    margin: 5px auto;
}

.frame {
    margin: 20px;
    padding: 10px;
    background-color: white;
    border-radius: 20px;
    border: 2px solid #E2E2E2;
    -webkit-box-shadow: 8px 8px 20px 0px rgba(186,186,186,0.7);
    -moz-box-shadow: 8px 8px 20px 0px rgba(186,186,186,0.7);
    box-shadow: 8px 8px 20px 0px rgba(186,186,186,0.7);
}

.desktop {
    display: none;
}

.inside {
    margin: 0px 8px;
}

.foto-dvojice {
    display: flex;
    gap: 10px;
}

.foto-dvojice img {
    width: 50%;
    border-radius: 10px;
    object-fit: cover;
}

/* menu telefon */

#navbar {
    width: 100%;
    height: 70px;
    background-color: white;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0%);
}

.logo {
    position: relative;
    width: 100%;
    height: 70px;
}

#logo {
    position: absolute;
    width: 120px;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#navbar .menu {
    display: none;
    width: 100%;
    height: 30px;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
}

#navbar ul {
    padding: 0px;
    margin: 0px;
    height: 30px;
    width: 100%;
    left: 50%;
    transform: translate(-50%, 0%);
    position: absolute;
    z-index: 2;
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    line-height: 27px;
}

#navbar li {
    letter-spacing: 1px;
}

#navbar li a {
    font-family: 'Playfair Display', serif;
    font-size: 0.6pc;
    color: #404040;
    text-decoration: none;
    padding: 10px 10px;
    font-weight: 100;
}

#navbar .aktivni {
    font-weight: 700;
    color: #5a5a5a;
}

/* hamburger */

.hamburger {
    display: block;
    position: absolute;
    top: 35px;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #5a5a5a;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#navbar.open {
    height: auto;
}

#navbar.open .menu {
    display: block;
    height: auto;
}

#navbar.open ul {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    height: auto;
    line-height: 1;
    padding: 10px 0;
    width: 100%;
    left: auto;
}

#navbar.open li a {
    padding: 12px 10px;
    display: block;
    font-size: 0.85pc;
}

/* uvod */

.hlavni {
    margin-top: 10px;
    margin-right: auto;
    margin-bottom: 8px;
    margin-left: auto;
    height: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.rada {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    position: relative;
}

.dvojice {
    width: 90%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.jeden {
    margin: 10px;
}

#napisnam h2 {
    margin-top: 0px;
    margin-bottom: 0px;
    color: #bca396;
    font-size: 15px;
    letter-spacing: 01px;
    font-weight: 900;
}

#napisnam p {
    font-family: 'Nunito Sans', sans-serif;
    margin: 10px 0px;
    font-size: 0.8pc;
    color: #555555;
    font-weight: 100;
}

#socky a {
    position: relative;
    text-decoration: none;
    color: #555555;
    padding: 6px 20px;
}

#socky a img {
    position: absolute;
    left: 0px;
    top: 7px;
    opacity: 0.8;
    height: 15px;
}

/* jak se zmerit mobile */

.hl-nadpis {
    margin-top: 15px;
    margin-bottom: 8px;
    text-align: center;
    width: 50%;
    position: relative;
    left: 50%;
    transform: translate(-50%, -10%);
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.2pc;
    letter-spacing: 3px;
    line-height: 30px;
    color: #555555;
}

.photo-mobile {
    height: 60vw;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.photo-mobile img {
    width: 110%;
    position: absolute;
    left: 0px;
    opacity: 0.75;
}

.photo-desktop {
    height: 60vw;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.photo-desktop img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
}

/* patička */

.footer {
    position: relative;
    width: 100%;
    height: 100px;
    margin-top: 10px;
}

#pat-logo {
    position: absolute;
    width: 30vw;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.75;
}

.paticka {
    text-align: center;
}

.paticka p {
    margin: 0px;
    white-space: pre;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.5pc;
    letter-spacing: 1px;
    color: #555555;
}

/* smartphone maly */
@media screen and (min-width:300px) and (max-width:480px) {
    .jeden {
        width: 115px;
    }

    #napisnam p {
        font-size: 10px;
        font-weight: 400;
    }
}


/* smartphone velky */
@media screen and (min-width:481px) and (max-width:659px) {

    .frame {
        margin: 20px;
        padding: 10px;
    }    

    /* menu telefon */

    #navbar {
        height: 84px;
    }

    .hamburger {
        top: 42px;
    }

    .logo {
        height: 84px;
    }

    #logo {
        width: 144px;
    }

    #navbar .menu {
        height: 36px;
    }

    #navbar ul {
        width: 90%;
        height: 36px;
        line-height: 34px;
    }

    #navbar li a {
        font-size: 0.81pc;
    }

    #navbar li a img {
        opacity: 0.8;
        height: 15px;
        transform: translate(0,2px);
    }

    /* uvod */

    .hlavni-pic h1 {
        font-size: 1.4pc;
        letter-spacing: 5px;
    }

    .hl-nadpis {
        margin-top: 18px;
        font-size: 1.3pc;
        letter-spacing: 5px;
        line-height: 35px;
    }

    .rada {
        width: 100%;
    }
    
    .dvojice {
        width: 100%;
    }
    
    .jeden {
        width: 155px;
        margin: 10px;
    }

    /* patička */

    .footer {
        height: 200px;
    }

    .paticka p {
        font-size: 0.75pc;
        letter-spacing: 1px;
    }
}

/* tablet */
@media screen and (min-width:659px) and (max-width:849px) {

    .mobile {
        display: none;
    }

    .desktop {
        display: block;
    }

    .wrap {
        margin: 0 auto;
        min-width: 659px;
        max-width: 1100px;
    }

    .frame {
        margin: 20px;
        padding: 15px;
        border-radius: 40px;
    }

    .inside {
        margin: 0px 8px;
    }

    /* menu telefon */

    .hamburger {
        display: none;
    }

    #navbar .menu {
        display: block;
    }

    #navbar {
        height: 150px;
    }

    .logo {
        height: 105px;
    }

    #logo {
        width: 180px;
    }

    #navbar .menu {
        height: 36px;
    }

    #navbar ul {
        width: 81%;
        height: 36px;
        line-height: 34px;
    }
    
    #navbar li a {
        font-size: 1.1pc;
        padding: 0px 10px;
        display: inline-block;
        text-align: center;
        letter-spacing: 2px;
        font-weight: 400;
        color: #5a5a5a;
    }

    #navbar li a:hover {
        font-weight: 700;
        color: #5a5a5a;
    }

    #navbar li a::before {
        content: attr(title);
        font-weight: 700;
        overflow: hidden;
        visibility: hidden;
        display: block;
        height: 0;
    }
    
    #navbar li a img {
        height: 22px;
        transform: translate(0, 4px);
        filter: invert(1);
    }

    #navbar li a img:hover {
        filter: invert(0);
    }

    /* uvod */

    .hlavni-pic {
        margin-top: 20px;
        border-radius: 20px;
        width: 100%;
    }
    
    .hl-nadpis {
        font-size: 1.7pc;
        margin-top: 20px;
        line-height: 40px;
    }

    .rada {
        width: 100%;
    }
    
    .dvojice {
        width: 50%;
    }
    
    .jeden {
        margin: 10px;
    }

    .photo-desktop {
        height: 60vw;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        margin-bottom: 8px;
    }
    
    .photo-desktop img {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        object-fit: cover;
        object-position: center;
        opacity: 0.85;
    }

    /* patička */

    .footer {
        height: 40vw;
    }

    .paticka p {
        font-size: 0.85pc;
        letter-spacing: 2px;
        text-decoration: none;
    }
}

/* tablet, desktop */
@media screen and (min-width:850px) and (max-width:999px) {

    .mobile {
        display: none;
    }

    .desktop {
        display: block;
    }

    .wrap {
        margin: 0 auto;
        min-width: 659px;
        max-width: 1100px;
    }

    .frame {
        margin: 20px;
        padding: 15px;
        border-radius: 40px;
    }

    .inside {
        margin: 0px 8px;
    }

    /* menu telefon */

    .hamburger {
        display: none;
    }

    #navbar .menu {
        display: block;
    }

    #navbar {
        height: 150px;
    }

    .logo {
        height: 105px;
    }

    #logo {
        width: 180px;
    }

    #navbar .menu {
        height: 36px;
    }

    #navbar ul {
        width: 81%;
        height: 36px;
        line-height: 34px;
    }
    
    #navbar li a {
        font-size: 1.1pc;
        padding: 0px 10px;
        display: inline-block;
        text-align: center;
        letter-spacing: 2px;
        font-weight: 400;
        color: #5a5a5a;
    }

    #navbar li a:hover {
        font-weight: 700;
        color: #5a5a5a;
    }
    
    #navbar li a::before {
        content: attr(title);
        font-weight: 700;
        overflow: hidden;
        visibility: hidden;
        display: block;
        height: 0;
    }

    /* uvod */

    .hlavni-pic {
        margin-top: 20px;
        border-radius: 20px;
        width: 100%;
    }

    .rada {
        width: 90%;
    }
    
    .dvojice {
        width: 50%;
    }
    
    .jeden {
        margin: 10px;
    }
    
    #napisnam h2 {
        font-size: 1.1pc;
    }

    #napisnam p {
        margin: 15px 0px 0px 0px;
        font-size: 1pc;
    }

    #socky a {
        padding: 6px 28px;
    }
    
    #socky a img {
        top: 7px;
        height: 20px;
    }

    .hl-nadpis {
        font-size: 1.7pc;
        margin-top: 20px;
        line-height: 40px;
    }

    .photo-desktop {
        height: 60vw;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        margin-bottom: 8px;
    }
    
    .photo-desktop img {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        object-fit: cover;
        object-position: center;
        opacity: 0.85;
    }

    /* patička */

    .footer {
        height: 40vw;
    }

    .paticka p {
        font-size: 0.85pc;
        letter-spacing: 2px;
        text-decoration: none;
    }
}

/* jen desktop */
@media screen and (min-width:1000px) {

    .mobile {
        display: none;
    }

    .desktop {
        display: block;
    }

    .wrap {
        margin: 0 auto;
        min-width: 1000px;
        max-width: 1000px;
    }

    .frame {
        margin: 40px;
        padding: 15px;
        border-radius: 40px;
    }
    
    .inside {
        margin: 0px 8px;
    }
    
    /* menu */

    .hamburger {
        display: none;
    }

    #navbar .menu {
        display: block;
    }

    #navbar {
        height: 150px;
    }

    .logo {
        height: 105px;
    }

    #logo {
        width: 180px;
    }

    #navbar .menu {
        height: 40px;
    }
    
    #navbar ul {
        width: 74%;
        height: 40px;
        line-height: 40px;
    }
    
    #navbar li a {
        font-size: 1.1pc;
        padding: 0px 10px;
        display: inline-block;
        text-align: center;
        letter-spacing: 2px;
        font-weight: 400;
        color: #5a5a5a;
    }

    #navbar li a:hover {
        font-weight: 700;
        color: #5a5a5a;
    }

    #navbar li a::before {
        content: attr(title);
        font-weight: 700;
        overflow: hidden;
        visibility: hidden;
        display: block;
        height: 0;
    }

    /* uvod */

    .hlavni-pic {
        margin-top: 20px;
        border-radius: 20px;
        width: 100%;
    }
    
    .rada {
        width: 90%;
    }

    .dvojice {
        width: 50%;
    }

    #napisnam h2 {
        font-size: 1.1pc;
    }

    #napisnam p {
        margin: 15px 0px 0px 0px;
        font-size: 1pc;
    }

    #socky a {
        padding: 6px 28px;
    }
    
    #socky a img {
        top: 7px;
        height: 20px;
    }
    
    .hl-nadpis {
        margin-top: 20px;
        margin-bottom: 10px;
        font-size: 1.7pc;
        letter-spacing: 5px;
        line-height: 40px;
    }

    .photo-desktop {
        height: 600px;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        margin-bottom: 8px;
    }
    
    .photo-desktop img {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        object-fit: cover;
        object-position: center;
        opacity: 0.85;
    }

    /* patička */

    .footer {
        height: 40vw;
    }

    #pat-logo {
        width: 250px;
    }

    .paticka p {
        font-size: 0.85pc;
        letter-spacing: 2px;
        text-decoration: none;
    }
}