@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sedan+SC&display=swap');

html{
    scroll-behavior: smooth;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: #481D24;
    font-family: "Merriweather", serif;;
    font-weight: 300;
    color: #F8F2DC;
    display: flex;
    flex-direction: column;
    margin: auto;
    min-height: 100vh;
    line-height: 1.4;
}

@media screen and (max-width: 1024px){
    body{
        margin: 1em;
    }
}

h1{
    font-size: 72px;
    font-weight: 900;
    font-family: "Sedan SC", serif;
}
h2{
    font-size: 48px;
    font-weight: 900;
    font-family: "Sedan SC", serif;
}
h3{
    font-size: 36px;
    font-weight: 900;
    font-family: "Sedan SC", serif;
}
h4{
    font-size: 24px;
    font-weight: 900;
    font-family: "Sedan SC", serif;
}

b{
    font-size: 1em;
}


section{
    margin: 0;
    width: 100%;
    min-height: 100vh;
    scroll-margin-top: 100px;
}

a{
    color: #F8F2DC;
    text-decoration: none;
    font-family: "Merriweather", serif;
    transition: 0.2s;
    text-shadow: 2px 3px 3px black;
}

a:hover{
    text-shadow: none;
    text-decoration: underline;
}

footer{
    margin-top: auto;
}

@media screen and (max-width: 1024px){
    h1{
        font-size: 4em;
    }
    h2{
        font-size: 3em;
    }
    h3{
        font-size: 2em;
    }
    
}

.header-container{
    display: flex;
    width: 100%;
    padding: 1em;
    background-color: #481D24;
    justify-content: space-around;
    border-bottom: 2px solid #F8F2DC;
    z-index: 1000;
    transition: all 0.2s;
}

.header-container h1{
    font-size: 1.25em;
    font-weight: 900;
    text-decoration: none;
    text-align: center;
    padding: 1em;
}
.header-container h1 a{
    color: #F8F2DC;
    text-decoration: none;
}
.header-nav{
    display: flex;
    gap: 1em;
    align-items: center;
    overflow: hidden;
}
.header-nav a{
    font-size: 1em;
    font-weight: 700;
    padding: 1em;
    border-radius: 5px;
    float: left;
    display: block;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}
.header-nav a:hover{
    background-color: #F8F2DC;
    color: #481D24;
    border-radius: 5px;
    text-decoration: none;
}
.header-nav a.active{
    background-color: #F8F2DC;
    color: #481D24;
    border-radius: 5px;
    text-decoration: none;
}

 .header-nav .icon {
    display: none;
  }

@media screen and (max-width: 1024px) {
    .header-nav a:not(:first-child) {display: none;}

    .header-nav a.icon {
      float: right;
      display: block;
    }
  }


@media screen and (max-width: 1024px) {
    .header-container.responsive{
        flex-direction: column;
    }
    .header-nav.responsive {position: relative;}
    .header-nav.responsive {
        flex-direction: column;
        position: relative;
    }
    .header-nav.responsive a.icon {
      position: absolute;
      right: 0;
      top: 0;
    }
    .header-nav.responsive a {
      float: none;
      display: block;
      text-align: left;
    }
  }

.home-container{
    display: flex;
    align-items: center;
    height: 100vh;
    background-image: url(../assets/img/mustkõuts-suursaal-visittorva.webp);
    background-size: cover;
    transition: all 0.5s;
}

.welcome-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10%;
    height: inherit;
    background-color: #481D24;
    clip-path: polygon(100% 0%, 0% 0%, 0% 100%, 90% 100%);
    max-width: 70%;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 1024px){
    .home-container{
        flex-direction: column;
    }
    .welcome-text{
        clip-path: none;
        padding: 5em 2em;
        background-color: #481D24;
        max-width: 100%;
        width: 100%;
    }
    
}
.welcome-text h1{
    margin: 0;
    text-align: center;
    text-shadow: 2px 3px 3px black;
}
.welcome-text h3{
    margin: 0;
    text-align: center;
    color: #F8F2DC;
    text-shadow: 2px 3px 3px black;
}
.welcome-text h4{
    margin: 0;
    text-align: center;
    color: #F8F2DC;
    text-shadow: 2px 3px 3px black;
}
.welcome-text-additional{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0px;
}
.welcome-button{
    display: flex;
    justify-content: center;
    padding: 50px 0px;
}
.welcome-button button{
    background-color: #481D24;
    color: #F8F2DC;
    border: 2px solid #F8F2DC;
    font-size: 1.5em;
    padding: 20px 40px;
    transition: 0.2s;
}
.welcome-button button > a{
    color: #F8F2DC;
    text-decoration: none;
}
.welcome-button button:hover{
    background-color: #F8F2DC;
    transform: translate(0px, -3px);
    cursor: pointer;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}
.welcome-button button:hover > a{
    color: #481D24;
    text-decoration: none;
}




.about-container{
    display: flex;
    justify-content: space-around;
    min-height: 90vh;
    background-color: #F8F2DC;
    color: #481D24;
}

.about-container h1{
    text-align: center;
    padding: 0.5em 0em;
    line-height: 1em ;
    width: 100%;
}

.about-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1em;
    width: 50%;
}
.about-text{ 
    display: flex;
    flex-direction: column;
    text-align: center;
    font-weight: 700;
    width: 100%;
    font-size: 1.5em;
    line-height: 1.5em;
}

.about-images{
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
    align-items: center;
    width: 30%;
}
.about-images img{
    width: 100%;
    border-radius: 5px;
}

@media screen and (max-width: 1024px){
    .about-container{
        flex-direction: column;
        border-radius: 10px;
    }
    .about-container h1{
        text-align: center;
        width: 100%;
    }
    .about-content{
        width: 100%;
    }
    .about-images{
        padding: 1em;
        width: 100%;
    }
    .about-text{
        font-size: 1em;
        width: 100%;
        text-align: center;
    }
}

.menu-container{
    display: flex;
    justify-content: center;
}

.menu-header{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20%;
}

.menu-content{
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 80%;
    padding: 2em;
}

.menu{
    display: flex;
    flex-direction: column;
    background-color: #F8F2DC;
    border-radius: 20px;
    color:#481D24;
    padding: 2.5em;
    width: 30%;
    box-shadow: 0px 0px 5px black;
}

.menu-item{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu h3{
    padding: 20px 0px;
    text-align: center;
}

.menu b{
    padding: 10px 0px;
    text-align: center;
}

@media screen and (max-width: 1024px){
    .menu-container{
        border-radius: 10px;
    }
    .menu-header{
        padding: 2em;
    }
    .menu-content{
        width: 100%;
        flex-direction: column;
    }
    .menu{
        width: 90%;
    }
}


section[id="events"]{
    scroll-padding-top: 100px;
    min-height: 50vh;
    margin-bottom: 2em;
}

.events-container{
    display: flex;
    justify-content: center;
    align-items: center;
}
.events{
    width: 100%;
    background-color: #F8F2DC;
    display: flex;
    justify-content: center;
}
.event{
    display: none;
    opacity: 0;
    justify-content: space-around;
    padding: 5%;    
    min-height: 40vh;
    width: 80%;
    color:#481D24;
    transition: all 0.4s;
}
.event-image{
    display: flex;
    flex: 1;
}
.event img{
    width: 100%;
    border-radius: 5px;
}
.event-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.event-text h2{
    padding-bottom: 0.5em;
}
  
.navigate {
    display: none;
    cursor: pointer;
    position: absolute;
    width: auto;
    padding: 20px;
    color: #481D24;
    text-shadow: none;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.navigate {
    right: 20px;
    border-radius: 3px;
}

.navigate {
    text-decoration: none;
    background-color: #481D24;
    color:#F8F2DC;
}

.active {
    background-color: #717171;
}

@media screen and (max-width: 1024px){
    .events{
        border-radius: 10px;
    }
    .event{
        flex-direction: column;
        gap: 1em;
        justify-content: center;
        align-items: center;
    }
    .event-text{
        width: 100%;
    }
    .event img{
        width: 100%;
    }
}


section[id="gallery"]{
    display: flex;
    justify-content: center;
}
.gallery-container{
    display: flex;
    justify-content: center;
    height: inherit;
    color: #481D24;
    width: 80%;
}
.gallery-image{
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}
.gallery-image:hover{
    transform: scale(1.05);
}

.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
  }
  
  .column {
    flex: 33.3%;
    max-width: 33.3%;
    padding: 0 4px;
  }
  
  .column img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
  }
  
  @media screen and (max-width: 1024px) {
    .column {
      flex: 50%;
      max-width: 50%;
    }
  }
  
  @media screen and (max-width: 768px) {
    .column {
      flex: 100%;
      max-width: 100%;
    }
  }


section[id="partners"]{
    display: flex;
    justify-content: center;
}
.partners-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
}
.partners-container h1{
    padding: 1em;
    text-align: center;
}
.partners{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    width: 100%;
}
.partner{
    width: 40%;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-self: center;
    background-color: #F8F2DC;
    color:#481D24;
    padding: 5%;
}

@media screen and (max-width: 1024px){
    .partners{
        flex-direction: column;
        gap: 1em;
    }
    .partner{
        width: 100%;
    }
}

section[id="location"]{
    display: flex;
    min-height: 60vh;
}

.location-container{
    width: 100%;
    height: 100%;
}

.location{
    height: 60vh;
    border-bottom: 4px solid#481D24;
}

.location iframe{
    width: 100%;
    height: 100%;
}

.contact-container{
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 2em;
    color: #481D24;
    background-color: #F8F2DC;
}

.contact-info{
    display: flex;
    flex-direction: column;
    justify-content: center;  
}
.contact-info a{
    color:#481D24;
    text-shadow: none;
}

.social-info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #481D24;
    gap: 1em;
}
.social-info a{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    text-shadow: none;
    color: #481D24;
}

.footer-bottom{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
}

@media screen and (max-width: 1024px){
    .contact-container{
        flex-direction: column;
    }
    .contact-info{
        padding: 1em;
    }
    .social-info{
        padding: 1em;
    }
    
}

.hidden{
    transform: translateX(-50%);
    opacity: 0;
    transition: all 1s;
}

.show{
    transform: translateX(0%);
    opacity: 1;
    transition: all 1s;
}

.sticky{
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0px 0px 5px grey;
}







.modal {
    display: none;
    position: fixed;
    align-items: center;
    z-index: 1002;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
  }
  
  .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
  }
  
  .modal-content{
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
  }
  
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }
  
  @media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
  }
