/*css reset */
*,html{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
/*main CSS */

body{   
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
    background-color: #7e1f43;
    overflow-x: hidden; 
}
a {
    color: #f2e212;
    text-decoration: none;
}
a:hover{
    color: #e42524;
}
.main{
    height: 69vh;
    width: 70vw;
    
    margin: 0 auto;  
}
header{
    margin: 0;
    height: 26vh;
    width: 100vw;
    background-color: #7e1f43;
    font-size: 3rem;
}
header img{
    margin: 0;
    height: 100%;   
}
nav{
    position: absolute;
    right:10px;
    top: 4vh;
    font-size: 3rem;
}
nav ul{
    list-style: none;
    font-size: 2rem;
}
nav .menu li{
    float: left;
    margin: 0 20px;
    transition: all .3s ease;
    
}
nav .menu li:hover{
    border-bottom: solid 2px #f2e212;
}
nav ul li a{
    text-decoration: none;
    color:#f2e212;   
}
nav .menu-mobile{
    
    position: fixed;
    top: 16vh;
    right: 0px;;
    width: 50%;
    background-color: rgb(126, 31, 67, 0.5);
    font-size: 2rem;
    border-radius: 10px;
    border: 1px yellow solid;
    padding: 15px;
    transform: translateX(100%);
    transition: .4s;
}

nav .menu-mobile li{
    margin: 20px auto;
    background-color: #f2e212;
    border-radius: 5px;
    width: 80%;
    text-align: center;
}

nav .menu-mobile a li{
    color:#7e1f43;
    
}
nav #hamburger {
    color: #f2e212;
    visibility: hidden;
    position: absolute;
    top: 20px;
    right: 5%;
}
.box{
    
    float: left;
    box-sizing: border-box;
    width: 50%;
    height: 30vh;
    padding: 10px;
    background-color: #f2e212;
    /*transition: all .5s;*/
    display:flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-align: center;
    color: #7e1f43;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    font-weight: 600;
    box-shadow: 0 0 0 10px #7e1f43 inset;
    
}
.clicked{
    box-shadow: 0 0 0 5px #7e1f43 inset;
    position:fixed;
    width: 70%;
    z-index: 2;
    
    margin: 0 auto;
    height: 62vh;
    
}

.upright .inbox{
    
    background-color: rgba(255, 255, 255, 0.5);
}
.downleft .inbox{
    
    background-color: rgba(255, 255, 255, 0.5);
}
.inbox{
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% - 25px);
    height: calc(100% - 25px);
    font-style: italic;  
}
.bold{
    font-weight:bold;   
}
.underline{
    text-decoration: underline;
}
.more{
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 600;
    border: solid 4px #7e1f43;
    padding: 7px;
    color: #7e1f43;  
}
.more:hover{
    color:#e42524;
    border-color:#e42524;
}
.smalltext{
    font-size: 1rem;
}
.bigtext{
    font-size: 3rem;   
}
.italic{
    font-style: italic;
}
p{
    margin: 0 auto;
    width: 80%;    
}
#icons{
    font-style:normal;
    font-size: 2rem;
}
#icons >a{
    text-decoration: none;
    font-style: normal;
}
.address{
    width: 90%;
    display: grid;
    grid-template-columns: 30% 30% 40%;
    gap: 2%;
    margin: 0 auto;
}

.img-dojazd{
    width: 70%;
}
.main-icon{
    padding-top: 0;
    width: 45%;
       
}

.box .boxtext{
    display: none;
}
.box .clicked .inbox{
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
}
.box .clicked .main-icon{
    display: none;
}
@media (min-width: 851px){
    .box:hover .boxtext{
        display: inline;
        margin: 10%;
    }
    .box:hover .main-icon{
        display:none;
    }
    .box:hover .inbox{
        background-color: rgba(255, 255, 255, 0.8);
       
    }
    .box:hover .clicked .inbox{
        font-size: 1.2rem;
    }
}
.boxtext a {
    font-size: 2rem;
    color:black;
}
.boxtext a:hover{
    color: #e42524;
}

.content{
    font-size:1.1rem;
    line-height: 2.5rem;
    text-align: left;
    color:#f2e212;
    padding-top: 5vh;
    width: 79%;
    margin: 0;
    min-height: 59vh;
}
.gallery{
    width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 24% 24% 24% 24%;
    gap: 1%;

}
.img-gallery{
    
    width: 100%;
}
.active{
    display: block;
    position: fixed;
    top: 5%;
    height: 85vh;
    max-width: 85vw;
    width: auto;
    
}
.footer-desktop{
    
    bottom:0;
    width: 100vw;
    height: 10vh;
    display:flex;
    
    align-items:flex-end;
    justify-content: left;
    flex-wrap: wrap;
    background-color: #f2e212 ;
    padding:  0 5%;
    list-style: none;
    font-size: 1.2rem;
    line-height: 3rem;
    color: #7e1f43;   
}
.footer-desktop a {
    color:#e42524;
    text-decoration: underline;
}
.footer-mobile{
    display: none;
    visibility: hidden;
}
.home{
    position: fixed;
    bottom: 0;
}

/*responsywność*/
@media (max-height: 720px){
    .more{
        
        font-size: 0.8rem;
        border: solid 3px #7e1f43;
        padding: 3px;
    }
    .box:hover .boxtext {
        font-size: .8rem;
    }
    .main-icon{
        
        width: 25%;
    }
}
@media (max-width: 850px){
    .main{
        width: 100vw;
        height: 72vh;
        
    }
    header{
        height: 28vh;
        text-align: left;

    }
    header img{
        height: 100%;
    }
    .box{
        box-shadow: 0 0 0 10px #7e1f43 inset;
        

    }
    .inbox{
        
        font-size: .8rem;
    }
    .clicked{
        top: 29vh;
        
        width: 100%;
        height: 60vh;       
    }
   
          
    .clicked .inbox{
        background-color: rgba(255, 255, 255, 0.5);
        font-size: 1.5rem;
    }
    
    .active{
        position: fixed;
        top: 25%;
        width: 100vw;
        height: auto;

    }
    
    .boxtext{
        display: none;
    }
    .clicked .boxtext{
        display: inline;
        margin: 10%; 
    }
    .main-icon{
        padding-top: 5%;
        width: 70%;
    }
    .clicked .main-icon{
        display: none;
    }
    .content{
        
        display: block;
        float: none;
        width: 90vw;
        min-height: 59vh;
        box-shadow: none;
        line-height: 1.5;
    }
    iframe{
        width:100%;
        border:0;
    }
    .footer-desktop{
        display: none;
        visibility: hidden;
    }
    .footer-mobile{
        
        height: 8vh;
        width: 100vw;
        background-color: #f2e212;
        color: #7e1f43;
        display: block;
        bottom: 0;    
        visibility:visible; 
        display:flex;
        align-items:flex-end;
        justify-content: left;
        flex-wrap: wrap;
        font-size: 0.8rem;
        line-height: 3rem; 
        padding-left: 10px;  
    }
    .home{
        position: fixed;
    }
    .footer-mobile a {
        color:#e42524;
        text-decoration: underline;
        
    }
    #icons a{
        font-size: 1.5rem;
    }
    
    nav .menu{
        visibility: hidden;    
    }
    nav #hamburger {
        visibility:visible;
    }
    nav #hamburger:hover{
        color: #e42524;
    }  
    .visible{
        transform: translateX(0) !important;
    }
    

    .address{
        width: 80%;
        display: grid;
        grid-template-columns: 100%;
        
    }
    
}
@media (min-width: 851px)and (max-width: 1185px){
    nav{
        position: absolute;
        right:0;
        top: 1vh;
        font-size: 1.3rem;
    }
    header img {
        position:relative;
        top:2vh;
        height: 90%;
        
    }
    .box:hover .boxtext {
        font-size: .9rem;
    }
    .more{
        font-style: italic;
        font-size: 1rem;
        border: solid 3px #7e1f43;
        padding: 5px;
    } 
}

