@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --main-color: #FFFAF0; 
  --card-background: #f4e9e6;
  --text-color: #2e2e2e;
  --accent-color-1: #cebfd1;
  --accent-color-2: #fee7a3;
  --button: #88a1a6;
  --button-hover: #88a1a6;
  --font-simple: 'Playfair Display';
  --font-fancy: 'Bodoni Moda';
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  color: var(--text-color);
  font-family: var(--font-simple);
  line-height: 1.6;
}


body {
  background-color: var(--main-color);
  scrollbar-gutter: stable;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

footer{
  text-align:center;
  padding:40px 20px;
  font-size:14px;
  color:#6b6b6b !important;
}

/* Layout */

.gallery {
  position: relative;
  margin-top: 2rem;
  margin: 2rem 24px;
}

@media (max-width: 800px) {
  .gallery {
    display: block;
  }
}

/* Cards */

.grid-item {
  overflow: hidden;
  position: absolute;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: scale(1.03);
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3.5 / 4;
  background-color: var(--accent-color-2);
}


/* Modal */
/* background */
#myModal {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  background-color: rgba(0, 0, 0, 0.79);
  align-items: center;
  justify-content: center;
  padding: 16px;
}


/* content */

.modal-content{
  display: flex;
  height: fit-content;
  width: fit-content;
  justify-content: center;
  align-items: center;
  position: relative;
}


#modalImage {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  display: block;
  top: 0;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: whitesmoke !important;
  font-size: 35px;
  font-weight: bold;
  z-index: 1;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


@media (max-width:800px) {
  .close {
    top: 4rem;
    right: 20px;
    font-size: 40px;
  }
}



/*Transitions */

.modal-content {
  animation: zoom 0.6s;
}

@keyframes zoom {
  from {transform: scale(0);} 
  to {transform: scale(1);}
}


/* Top nav desktop */

header {
  top: 0;
  font-family: var(--font-fancy);
}


li {
    list-style: none;
    text-transform: uppercase;
}

nav a {
    color: var(--accent-color-2) !important;
    text-decoration: none;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.navbar {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    margin-right: 24px;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    font-family: serif;
}

.nav-branding {
  font-family: var(--font-simple);
  font-size: 2rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

#info-nav-branding {
  color: var(--text-color) !important;
  text-shadow: none;
  font-weight: 600;
}

.dark-link {
  color: var(--text-color) !important;
  text-decoration: none;
  text-shadow: none;
  font-weight: 600;
}

.dark-link:hover {
  color: var(--accent-color-2) !important;
}


.nav-link {
    transition: 0.7s ease;
}

.nav-link:hover {
    color: #f9f047 !important;
    font-size: 1.2rem;
}
.dark-link:hover {
    color: var(--accent-color-2) !important;
    font-size: 1.2rem;
}

/* Mobile */
.hamburger {
    cursor: pointer;
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--accent-color-2);
    border-radius: 20px;
}

.darkbar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
    border-radius: 20px;
}

 @media(max-width:800px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(-45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(45deg);
    }
    
    .nav-menu{
        position: absolute;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--text-color);
        width: 100vw;
        text-align: center;
        transition: 0.3s ease-in-out;
        z-index: 1;
    }

    .dark-menu {
        background-color: var(--accent-color-2);
        transition: 0.7s ease-in-out;
    }

    .nav-item {
        padding: 16px 0;
        width: 100%;
        height: 100%;
    }

    .nav-link {
      width: 100%;
      height: 100%;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link:hover {
      color: var(--accent-color-1) !important;
      transition: 0.3s ease-in-out;
    }
 }

/* landing page */

          
.main-body {
  background-image: linear-gradient(rgba(0, 0, 0, 0.735), rgba(0, 0, 0, 0.5)), url("assets/full_2018/IKI_RYTOJAUS-pop-pastel-42x62.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: 70%;
  height: 100vh;
  width: 100vw;
}

.hero-container{
  padding-left: 20%;
  padding-top: 7%;
  height: fit-content;
  scroll-behavior: smooth;
}


/*Filter*/

.filter-container{
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.filter{
  margin: auto 10px;
  border: solid var(--accent-color-1) 1px;
  padding: 2px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
}

#apply{
  min-width: 4rem;
  background-color: var(--accent-color-2);
  cursor: pointer;
}
#apply:hover{
  background-color: var(--button);
}


/* From Uiverse.io by alexmaracinaru */ 
.cta {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-fancy);
  color: var(--accent-color-2)!important;
  font-weight: 500;
}

.cta span {
  padding-bottom: 7px;
  letter-spacing: 4px;
  font-size: 14px;
  padding-right: 15px;
  text-transform: uppercase;
}

.cta svg {
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.cta:hover svg {
  transform: translateX(0);
}

.cta:active svg {
  transform: scale(0.9);
}

.hover-underline-animation {
  position: relative;
  color: var(--accent-color-1) !important;
  padding-bottom: 20px;
}

.hover-underline-animation:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  color: var(--accent-color-2) !important;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.cta:hover .hover-underline-animation:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}


#hero-h1{
  width: 40%;
  font-size: 2.5rem;
  color: var(--accent-color-1)!important;
  text-shadow: 2px 2px 8px rgba(77, 70, 56, 0.8);
  padding-bottom: 24px;
  font-family: var(--font-simple);
  line-height: 1.4;
  font-weight: 700;
}

/* Info page */


#info-body{
  background-color: var(--main-color);
}

#painting{
  max-height: 85vh;
  max-width: 60vw;
  margin: 0 2vw;
}

.info-container {
  display: flex;    
  flex-direction: column;     
  align-self: center;
  align-items: center;
}

@media (max-width: 800px) {
  .flex-container{
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  #painting{
  max-width: 95vw;
  margin: 10% auto;
  }

  .info-container {   
  margin-top: 10%;
}
}

#title {
  margin-bottom: 20px;
  font-family: var(--font-simple);
  text-transform: uppercase;
}
#description {
  margin-bottom: 6px;
  font-size: 1.2rem;
}
#year {
  margin-bottom: 20px;
}

.button {
  width: 9em;
  height: 3em;
  border-radius: 30em;
  font-size: 15px;
  font-family: inherit;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 6px 6px 12px #c5c5c5,
              -6px -6px 12px #ffffff;
}

.button::before {
 content: '';
 width: 0;
 height: 3em;
 border-radius: 30em;
 position: absolute;
 top: 0;
 left: 0;
 background-image: linear-gradient(to right, var(--accent-color-2) 0%, #f9f047 100%);
 transition: .5s ease;
 display: block;
 z-index: -1;
}

.button:hover::before {
 width: 9em;
}

.flex-container{
  display: flex;
  justify-content: space-evenly;
}


.hidden {
  display: none;
}

.block {
  display: flex;
}

/* About section */

#about-header{
  padding:40px 20px;
  text-align:center;
  margin:0 auto;
  max-width: 960px;

}
#about-h1{
  font-family: var(--font-simple);
  font-size:38px;
  margin:0 0 10px;
}

#about-main{
  margin:0 auto;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:60px;
  max-width: 960px;
}

#cta-box{
  display: flex;
  margin: 0 auto;
  justify-content: space-between;
  width: 80%;
}

.about-cta {
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
}

.row{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items:center;
}

.row.reverse{
  flex-direction:row-reverse;
}

.text{
  flex:1;
  min-width:280px;
}

.text h2{
  font-family:var(--font-simple);
  font-size:28px;
  margin-bottom:16px;
}

.text p{
  margin-bottom:16px; 
  font-size:16px;
}
.text blockquote{
  font-size:20px;
  font-style:italic;
  padding-left:20px;
  border-left:4px solid var(--accent-color-2);
  margin:24px 0;
  color:var(--text-color) !important;
}

.image{
  flex:1;
  min-width:280px;
  display:flex;
  justify-content:center;
}

.image img{
  width:100%;
  max-width:480px;
  border-radius: 18px;
  box-shadow:0 8px 30px rgba(17,18,20,0.06);
}

@media(max-width:900px){
  .row, .row.reverse{
    flex-direction:column;
  }
  .image img{
    max-width:100%;
  }
}

.line-break{
  width: 50%;
  border: solid var(--accent-color-2) 1px;
  margin: 0 auto;
  border-radius: 18px;
}

/* Contact form */

#contactH2 {
  text-align: center;
  margin: 1.5rem;
}

#contactForm {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  margin: 0 auto;
  align-items: center;
}

.label {
  margin: 0.5em;
  border-radius: 18px;

}

.input{
  text-align: center;
  border-radius: 18px;
  border: solid var(--accent-color-2) 2px;
}

#message{
  width: 30%;
}

#sendBtn{
margin-top: 1rem;

}
