:root {
  --base-grid: 0.3vw;
  --colour-white: #ffffff;
  --colour-black: #1a1a1a;
}

*, :after, :before {
    box-sizing: border-box;
    text-transform: uppercase;
}

html {
  margin: 0;
  padding: 0;
  background-color: rgb(24,24,24);
  background-position: 100%;
}

body {
  font-family: Josefin Sans, sans-serif;
    margin: 0;
  padding: 0;
  
}

section{
  position: absolute;
  top:0%;
  left:0%;
  width: 100%;
  height:100vH;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
section h2 {
position: relative;

}
.cloud{
  filter: drop-shadow(-10px -10px white) blur(2px);
}
.layer{
  height:105%;
  width: 105%;
  left:-3%;
  user-select: none;
  pointer-events: none;
  position: absolute;
  object-fit: cover;
  }
.links {
  --link-size: calc(var(--base-grid)*40);
  color: var(--colour-black);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  z-index:4;
}

.links__list {
  position: relative;
  list-style: none;
}

.links__item {
  position: absolute;
  background-size: cover;
  top: 0;
  left: 0;
  border-radius: 50%;
  margin-top: calc(var(--link-size)/-2);
  margin-left: calc(var(--link-size)/-2);
  --angle: calc(360deg/var(--item-total));
  --rotation: calc(36deg + var(--angle)*var(--item-count));
  transform: rotate(var(--rotation)) translate(calc(18vh + var(--base-grid) * 5 )) rotate(calc(var(--rotation)*-1));
  opacity: 1;
  transition: .1s ease-in-out;
  backdrop-filter: blur(5px);
}
.links__item :hover{
  opacity: 1;
  transition: .1s ease-in-out;
  border:none;
  box-shadow: none;
  background-size: cover;
}

.links__link {
  opacity: 0;
  animation: on-load .2s ease-in-out forwards;
  animation-delay: calc(var(--item-count)*150ms);
  transition: all .2s, border .1s ease-in-out;
  transition-delay: .1s;
  height: 25vh;
  width: 25vh;
  border-radius: 50%;
  position: relative;
  /*background-image: linear-gradient(270deg,rgba(0,0,0,.1) 1px,transparent 0),
                    linear-gradient(rgba(0,0,0,.1) 1px,transparent 0),
                    linear-gradient(270deg,rgba(255,255,255,.1) 1px,transparent 0),
                    linear-gradient(white 1px,transparent 0),
                    linear-gradient(270deg,rgba(255,255,255,.1) 1px,transparent 0),
                    linear-gradient(rgba(255,255,255,.1) 1px,transparent 0);
  
  background-size: 100% 100%,120% 120%,50% 50%,60% 60%,25% 25%,30% 30%; */
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 3.6vmin;
  box-shadow: 0 0px 0px 2px white inset;
  background-clip: border-box;
}

.links__icon {
  width: calc(var(--base-grid)*8);
  height: calc(var(--base-grid)*8);
  transition: all .2s ease-in-out;
  fill: var(--colour-white);
}

.links__text {
  position: absolute;
  width: 100%;
  left: 0;
  text-align: center;
  height: calc(var(--base-grid)*2);
  font-size: calc(var(--base-grid)*2);
  display: none;
  bottom: calc(var(--base-grid)*8.5);
  opacity: 1;
  animation: text .15s ease-in-out forwards;  
}

.links__link:after {
  content: "";
  background-size: cover;
  width: var(--link-size);
  height: var(--link-size);
  display: block;
  border-radius:50%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  box-shadow: none;
  transition: all .3s cubic-bezier(.53,-.67,.73,.74);
  transform: none;
  
}

.links__link:hover {
  transition: all .2s ease-in-out;
  transform: translateY(calc(var(--base-grid)*-1));
  font-size:0;
  border:none;
  box-shadow: 0 0px 40px 0px rgba(192,192,192,.5) inset
}

.links__link:hover .links__text {
  display: block;
}

.links__link:hover:after {
  transition: all .3s cubic-bezier(.37,.74,.15,1.65);
  transform: scale(1.05);
  opacity: 1;

  
  background-position: center;
  background-size: 50%;
  background-repeat: no-repeat;
}

.row {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
}

/* Create four equal columns that sits next to each other */
.column {
  -ms-flex: 100%; /* IE10 */
  flex: 100%;
  max-width: 100%;
}

.column img {
  vertical-align: middle;
  width: 100%;
}

/*  Menu Elements IDs  */

#contact{
  transition: all .1s ease-in-out;
  background-image:url("ressources/icon_contact.png");
  background-size:0%;
  background-repeat: no-repeat;
  background-position: center;
}
#contact:hover{
  background-size:60%;
  transition: all .15s ease-in-out;
}

#illu{
  transition: all .1s ease-in-out;
  background-position: center;
  background-size: 0%;
  
}
#illu:hover{
  background-image:url("ressources/gallerylogo.png");
  background-size: 80%;
  background-position: center;
  transition: all .15s ease-in-out;
  background-repeat: no-repeat;
}

#exp{
  transition: all .1s ease-in-out;
  background-position: center;
  background-size: 0%;
}
#exp:hover{
  background-image:url("ressources/flaskLogo.png");
  background-size: 60%;
  background-position: top;
  transition: all .15s ease-in-out;
  background-position: center;
  background-repeat: no-repeat;
}
#demos{
  transition: all .1s ease-in-out;
  background-position: center;
  background-size: 0%;
}
#demos:hover{
  background-image:url("ressources/gearlogo.png");
  background-size: 60%;
  background-position: top;
  transition: all .15s ease-in-out;
  background-position: center;
  background-repeat: no-repeat;
}




/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    -ms-flex: 50%;
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    -ms-flex: 100%;
    flex: 100%;
    max-width: 100%;
  }
}
@keyframes on-load {
  0% {
    opacity: 0;
    transform: scale(.3);
  }
  70% {
    opacity: .7;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes text {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(calc(var(--base-grid)*5));
  }
}