@font-face {
  font-family: 'Covenant';
  src: URL('Halo Covenant.ttf') format('truetype');
}

body {
  font-family: 'Covenant';
  margin: 0;
  opacity: 0;
  transition: opacity 2s;
  -webkit-transition: opacity 2s;
  /* Safari */
}

html {
  background-color: #5D2973;
  text-align: center;
  overflow: hidden;
}

main {
  width: 100%;
  height: 100%;
}

.texture {
  overflow: hidden;
  color: #582259;
}

#main-content {
  width: 100%;
  height: 70%;
  position: absolute;
  /*Can also be `fixed`*/
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  /*Solves a problem in which the content is being cut when the div is smaller than its' wrapper:*/
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
}

.blink_me {
  font-size: 1.5em;
  color: #582259;
  animation: blinker 0.5s linear infinite;
  transition: transform 2s;
  /* bring your own prefixes */
  /*transform: translate(-50%, -50%);*/
}

.blink_me:hover {
  transform-style: flat;
  transform: rotateX(45deg) rotateY(45deg) translate3d(-10.7rem, 0, 10rem)
}

.logo {
  margin-top: 50px;
  width: 150px;
  height: 105px;
  animation: blinker 3 linear infinite;
  transition: transform 2s;
}

.logo-home {
  position: absolute;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  animation: blinker 3s linear infinite;
  transition: transform 0.7s;
}

.logo-home:hover {
  cursor: pointer;
  transform: rotateX(45deg) rotateY(45deg);
}

.logo:hover {
  cursor: pointer;
  transform: rotateX(45deg) rotateY(45deg);
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* HEXAGON */

.row{
  display: inline-flex;
  margin-left: -50px;
  margin-top: -32px;
  overflow: hidden;
}
.row:nth-child(even){
  margin-left: 1px;
}
.hexagon{
  position: relative;
  height: 110px;
  width: 97px;
  background: #5D2973;
  margin: 5px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  /* transition: 2s; */
}
.hexagon:before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02);
}
.hexagon:hover{
  transition: 0s;
  background: #ffffff;
}

/* TEXTE DEFILE */

.container {
  overflow: hidden;
  display: flex;
  /* Fonctionne avec toutes les tailles */
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* pour rotate on enlève le translate et on rajoute le rotate */
  /* transform:  rotate(90deg); */
}

.container-hex {
  position: relative;
			overflow: hidden;
			height: 100vh;
			animation: animate 4s linear infinite;
}

.txt {
  white-space: nowrap;
  font-size: 20px;
  animation: scrollTxt 15s linear infinite;
}

.t1 {
   color: white; 
}

.t2 {
  color: #582259; 
}

/* .t2 {
   color: blue; 
} */

@keyframes scrollTxt {
  0%{
    transform: translate(-100%, 0);
  }
  100% {
    transform: translate(0%, 0);
  }
}

/* MENU FULLSCREEN */

.overlay1 .overlay2 {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(43, 28, 64);
  background-color: rgba(43, 28, 64, 1);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay1 a .overlay2 a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #ffffff;
  display: block;
  transition: 0.3s;
}

.overlay1 a:hover,
.overlay1 a:focus,
.overlay2 a:hover,
.overlay2 a:focus {
  color: #4A2ABF;
}

.overlay1 .overlay2 .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

#menuSpan {
  background-image: url('src/img/covenant.png');
  background-repeat: no-repeat;
  color: #ffffff;
  font-size: 30px;
  position: fixed;
  display: inline-block;
  top: 40px;
  right: 55px;
  transition: 0.5s;
  cursor: pointer;
}

#menuSpan:hover {
  transform-style: flat;
  transform: rotateX(45deg) rotateY(45deg);
}

@media screen and (max-height: 450px) {
  .overlay1 a .overlay2 a {
    font-size: 20px
  }

  .overlay1 .overlay2 .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}