@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: #582259;
  box-shadow: inset 0 0 0 1000px rgba(93,41,115,.8);
  text-align: center;
  overflow: hidden;
  background-image: url('src/img/elite.jpg');
  min-height: 100%;
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center center;
}

main {
  width: 100%;
  height: 100%;
}

p {
  color: #ffffff;
}

.texture {
  overflow: hidden;
  color: #582259;
}

#main-content {
  width: 100%;
  height: 70%;
  position: fixed;
  /*Can also be `fixed`*/
  left: 0;
  right: 0;
  top: 100px;
  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;
  margin-top: 50px;
  color: white;
  /* animation: blinker 0.5s linear infinite; */
  transition: transform 1s;
  /* bring your own prefixes */
  /*transform: translate(-50%, -50%);*/
}

.blink_me:hover {
  transform-style: flat;
  transform: rotateY(45deg) rotateX(45deg);
}

.logo {
  margin-top: 4vh;
  width: 150px;
  height: 105px;
  animation: blinker 3s linear infinite;
  transition: transform 2s;
}

.logo:hover {
  cursor: pointer;
}

.lame {
  margin-top: 20vh;
}

.flash {
  animation: blinker 2s linear infinite;
  transition: transform 2s;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* TEXTE DEFILE VERTICAL */

.container {
  overflow: hidden;
  display: flex;
  /* Fonctionne avec toutes les tailles */
  width: 100%;
  position: absolute;
  top: 50%;
  /* transform: translateX(-50%); */
  /* pour rotate on enlève le translate et on rajoute le rotate */
  transform:  rotate(45deg);
}

.container:hover {
  transform-style: flat;
  transform: rotateY(45deg) rotateX(90deg);
  color: #ffffff;
}

.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: #4A2ABF; 
}

/* .t2 {
   color: blue; 
} */

@keyframes scrollTxt {
  0%{
    transform: translate(-100%, 0);
  }
  100% {
    transform: translate(0%, 0);
  }
}

/* TEXT CIRCLE */

svg {
  fill: #4A2ABF;
  height: auto;
  max-width: 66vmin;
  transform-origin: center;
  transition: transform 3s;
  width: 66%;
}

svg:hover {
  transform: rotateY(360deg) rotateX(0deg);
  fill: white;
}


/* MENU FULLSCREEN */

.overlay {
  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;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #ffffff;
  display: block;
  transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
  color: #4A2ABF;
}

.overlay .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;
  z-index: 1000000;
}

#menuSpan:hover {
  transform-style: flat;
  transform: rotateX(45deg) rotateY(45deg);
}

@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px
  }

  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}