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

body {
  
  background: #111217;
  color: #940404;
  font-family: 'Domine', serif;
  font-weight: 700;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 5rem;
  padding-left: 150px;
}

header p:nth-child(3) {
  color: white;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
  font-family: 'Domine', serif;
  color: white;
}


main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4rem;
  margin-top: 600px;
}



/*
.mark {
  width: 250px;
  height: auto;
  margin-top: -500px;
  animation: colorshift 4s infinite;
  
}
*/

.mark {
  filter: drop-shadow(0 0 20px #ff0000);
  width: 200px;
  height: auto;
  margin-top: -600px;
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 10px #ff0000); }
  50% { filter: drop-shadow(0 0 30px #ff0000); }
}

.mark {
  animation: glow 3s infinite;
}


@keyframes colorshift {
  0% { filter: invert(0); }
  /*50% { filter: invert(1); }*/
  50% { filter: invert(1) sepia(1) saturate(5) hue-rotate(340deg); }
  100% { filter: invert(0); }
}

.links {
  display: flex;
  gap: 5.5rem;
  font-family: 'Domine', serif;
}

.links a {
  color: inherit;
  text-decoration: none;
  /*border-bottom: 1px solid;*/
  font-weight: bold;
  transition: color 0.3s;
}

.links a:hover {
  /*opacity: 0.7;*/
  animation: colorshift 4s infinite;
}

.stripe {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 60px;
  background-image: url('/checker.svg');
  background-repeat: repeat;
  background-size: 60px 60px;
  z-index: 100;
  background: 
    linear-gradient(45deg, #000 25%, transparent 25%),
    linear-gradient(-45deg, #000 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #000 75%),
    linear-gradient(-45deg, transparent 75%, #000 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
  background-color: #fff;
  animation: flip 4s infinite;
}

.stripe-left { left: 0; }

.stripe-right { 
    right: 0;
}

@keyframes flip {
  0%, 49% { filter: invert(0); }
  50%, 100% { filter: invert(1); }
}

.now {
  text-align: center;
  margin: 2rem 0;
  font-weight: bolder;
}

.now a {
  color: inherit;
}

footer {
  text-align: center;
  padding: 0rem;
  font-size: 0.85rem;
  opacity: 0.6;
}


.links img {
  width: 32px;
  height: 32px;
  transition: opacity 0.3s;
}

.links a:hover img {
  opacity: 0.6;
}



.easter-egg {
  margin-top: 100vh;   /* 2 screens down */
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.easter-egg img {
  width: 100px;
}


@media (max-width: 768px) {
  header {
    padding: 2rem;
    padding-left: 4rem;
    
  }
  

  h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .mark {
    display: block;
    margin: 0 auto;
    width: 150px;
    align-self: center;
    
  }
  
  main {
    margin-top: 50px;
    gap: 2rem;
  }
  
  .stripe {
    width: 30px;
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  }

  .now {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .links {
    gap: 4rem;
  }

  
}


.stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  padding: 2rem;
  font-family: 'Domine', serif;
  color: white;
  font-weight: bold;
}

.stats div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.stats span {
  color: #00ff88;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 768px) {
  .stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .stats {
    flex-direction: row;
    gap: 0.5rem;
    font-size: 0.6rem;
    padding: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    
  }
  
  .status-indicator {
    width: 8px;
    height: 8px;
  }
}


.metrics {
  display: flex;
  gap: 3rem;
  justify-content: center;
  padding: 2rem;
  font-family: 'Domine', serif;
  color: white;
  font-weight: bold;
}

.metrics div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.metrics span {
  color: #00ff88;
}

@media (max-width: 768px) {
  .metrics {
    flex-direction: row;
    gap: 1.0rem;
    font-size: 0.6rem;
    padding: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
    
    white-space: nowrap;
  }
}



.breakdown {
  padding: 2rem;
  text-align: center;
  color: white;
  font-family: 'Domine', serif;
}

.breakdown h3 {
  margin-bottom: 1rem;
  font-weight: bold;
}

#breakdown-list {
  display: flex;
  gap: 2rem;
  justify-content: center;
  font-weight: bold;
  white-space: nowrap;
}

#breakdown-list div {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

@media (max-width: 768px) {
  #breakdown-list {
    gap: 0.5rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
    
  }
}


.turbine-svg {
  width: 100px;
  animation: spin 3s linear infinite;
  filter: drop-shadow(0 0 15px #00ff88);
}

.turbine-id {
  color: white;
  margin-top: 0.5rem;
  font-weight: bold;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .breakdown h3 {
    
    white-space: nowrap;
  }
  
}

.grafana-panel {
  width: 800px;
  height: 400px;
  border: 0;
  display: block;
  margin: 2rem auto;
}




@media (max-width: 768px) {
  .grafana-panel {
    width: 75%;
    height: 300px;
  }
}
