/* This file contains all the css for the index.html file */


/* Cube go brrrr */

.cube-container{
  position: relative;
  display: flex;
  margin: 40px auto;
  perspective: 1000px;
  justify-content: center;
  align-items: center;
}

.cube {
  display: flex;
  position: relative;
  height: 200px;
  width: 200px;
  transform-style: preserve-3d;
  animation: rotateCube 10s infinite linear;
  justify-content: center;
  align-items: center;
}

.cube:hover {
  animation-play-state: paused;
}

.face {
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: #2e53fc;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  
  /* From https://css.glass -> Works once there is a fluid */
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(0, 0, 0, 1);
}

.face:hover {
  width: 150px;
  height: 150px;
  transition: 0.3s;
}

.cube .front {
  transform: translateZ(100px);
}
.cube .back {
  transform: rotateY(180deg) translateZ(100px);
}
.cube .left {
  transform: rotateY(-90deg) translateZ(100px);
}
.cube .right {
  transform: rotateY(90deg) translateZ(100px);
}
.cube .top {
  transform: rotateX(90deg) translateZ(100px);
}
.cube .bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg);
  }
  25% {
    transform: rotateX(90deg) rotateY(90deg);
  }
  50% {
    transform: rotateX(180deg) rotateY(180deg);
  }
  75% {
    transform: rotateX(270deg) rotateY(270deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* Thanks again random stack user! Decide if this is to be kept */
/*
Source - https://stackoverflow.com/q/27781634
Posted by user4420272, modified by community. See post 'Timeline' for change history
Retrieved 2025-12-13, License - CC BY-SA 4.0
*/

.section {
  position: relative;
}

#earth {
    position: absolute;
    bottom: 10px;
    right: 75px;
    
    width: 135px; /*original/2 * 0.9 for everything*/
    height: 135px;
    background: url(https://web.archive.org/web/20150807125159if_/http://www.noirextreme.com/digital/Earth-Color4096.jpg);
    border-radius: 50%;
    background-size: 274.5px;
    /*box-shadow: inset 8px 36px 80px 36px rgb(0, 0, 0),
    inset -6px 0 12px 4px rgba(255, 255, 255, 0.3);*/
    animation-name: rotate;
    animation-duration: 864000s; /* 24 hours -> TODO: base on users clock */
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    -webkit-animation-name: rotate;
    -webkit-animation-duration: 864000s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
}

@keyframes rotate { /* This function has to be augmented to start at the current time zone s*/
    from { background-position: 0px 0px; }
    to { background-position: 274.5px 0px; }
}
@-webkit-keyframes rotate {
    from { background-position: 0px 0px; }
    to { background-position: 274.5px 0px; }
}