/* CORE STYLES */
:root {
  --primary-color: rgba(129, 62, 161, 0.25);
  --overlay-color: rgba(126, 71, 153 , 0.56);
  --menu-speed: 0.74s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: fairplex-narrow, serif;
    line-height: 1.4;
    background-color: #FAF9F6;
    height: 100vh;
    position: relative;  
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 8vh;
    background-color: rgba(129, 62, 161, 0.72);
}

nav ul{
    display: flex;
    width: 40%;
    justify-content: space-around;
    letter-spacing: 3px;
    font-weight: bold;
    font-family: fairplex-narrow, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    float: right;
}

.links, li{
    list-style: none;
}

a:link {
    text-decoration: none;
    color:white;
}

a:visited {
    color: white;
}

a:hover {
  opacity: 0.5;
}


.logo{
    color:#FAF9F6;
    font-family: fairplex-narrow, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    float: left;
}
.container {
  max-width: 960px;
  margin: auto;
  overflow: hidden;
  padding: 0 3rem;
}

/* MENU STYLES */
.menu-wrap {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1;
}

.menu-wrap .toggler {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  cursor: pointer;
  width: 50px;
  height: 50px;
  opacity: 0;
}

.menu-wrap .hamburger {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 60px;
  height: 60px;
  padding: 1rem;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger Line */
.menu-wrap .hamburger > div {
  position: relative;
  flex: none;
  width: 100%;
  height: 2px;
  background:#FAF9F6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

/* Hamburger Lines - Top & Bottom */
.menu-wrap .hamburger > div::before,
.menu-wrap .hamburger > div::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: -10px;
  width: 100%;
  height: 2px;
  background: inherit;
}

/* Moves Line Down */
.menu-wrap .hamburger > div::after {
  top: 10px;
}

/* Toggler Animation */
.menu-wrap .toggler:checked + .hamburger > div {
  transform: rotate(135deg);
}

/* Turns Lines Into X */
.menu-wrap .toggler:checked + .hamburger > div:before,
.menu-wrap .toggler:checked + .hamburger > div:after {
  top: 0;
  transform: rotate(90deg);
}

/* Rotate On Hover When Checked */
.menu-wrap .toggler:checked:hover + .hamburger > div {
  transform: rotate(225deg);
}

/* Show Menu */
.menu-wrap .toggler:checked ~ .menu {
  visibility: visible;
}

.menu-wrap .toggler:checked ~ .menu > div {
  transform: scale(1);
  transition-duration: var(--menu-speed);
}

.menu-wrap .toggler:checked ~ .menu > div > div {
  opacity: 1;
  transition:  opacity 0.4s ease 0.4s;
}

.menu-wrap .menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-wrap .menu > div {
  background: var(--overlay-color);
  border-radius: 50%;
  width: 200vw;
  height: 200vw;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: all 0.5s ease;
}

.menu-wrap .menu > div > div {
  text-align: center;
  max-width: 90vw;
  max-height: 100vh;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.menu-wrap .menu > div > div > ul > li {
  list-style: none;
  color: #FAF9F6;
  font-size: 1.5rem;
  padding: 1rem;
  font-size: 30px;  
    
}

.menu-wrap .menu > div > div > ul > li > a {
  color: inherit;
  text-decoration: none;
  transition: color 0.4s ease;
}

/*gallery*/

h1{
  text-align: center;
}
.container-all{
  width: fit-content;
  margin: 20px auto;
  height: auto;
}
.gallery{
  width: calc(33% - 6px);
  overflow:hidden;
  height: fit-content;
  margin:3px;
  padding: 0;
  display:block;
  position:relative;
  float:right;
}
img{
  width: 100%;
  transition-duration: .3s;
  max-width: 100%;
  display:block;
  overflow:hidden;
  cursor:pointer;
}
.title{
  position:absolute;
  display:block;
  cursor:pointer;
  top: 35%;
  display: none;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 1.6em;
  text-shadow: 1px 5px 10px black;
  transition-duration: .3s;
}
.text{
  position:absolute;
  top: 70%;
  cursor:pointer;
  max-width: 80%;
  text-align:center;
  left: 50%;
  text-shadow: 1px 5px 10px black;
  font-size: 1em;
  display:none;
  margin-right: -50%;
  transition-duration: .3s;
  transform: translate(-50%, -50%) 
}
.gallery:hover img{
  transform: scale(1.2);
  transition-duration: .3s;
  filter: grayscale(50%);
  opacity: .7;
}
.gallery:hover span{
  color:white;
  display: block;
  transition-duration: .3s;
}

 .name {
    font-family:'Signika Negative', sans-serif;
    text-align: center;
    font-size: 35px;
    padding-top: 15px;
}

footer { 
  padding: 2rem 0;
  text-align: center;
  font-family:'Signika Negative', sans-serif;
  bottom: 0;
  width: 100%;
  margin-top: 0%; 
  position: fixed;  
}


/*small screens*/
@media screen and (max-width:860px){
    .links{
        display:none;
    }
    .gallery {
        width: calc(55% - 7.px);
    }
}

/*big screens*/   
@media screen and (min-width:861px){
    .links{
        width: 55%;
    }
    .menu-wrap{
        display:none;
    }
    
}