@import url('https://fonts.googleapis.com/css2?family=Mozilla+Text:wght@200..700&display=swap');

:root {
  --bg: url("/images/bg.png");
  --header-bg: rgba(0, 0, 0, 0.5);

  --text-color: white;
  
  --color1: #02010A;
  --color2: #04052E;
  --color3: #140152;
  --color4: #22007C;
}

/* https://coolors.co/palette/02010a-04052e-140152-22007c */

html, body {
  margin: 0;
  min-height: 100vh;
  font-family: "Mozilla Text", Verdana, sans-serif;
  color: var(--text-color);

  display: flex;
  flex-direction: column;

  background: linear-gradient(rgba(0,0,0, 0), var(--color1)), var(--bg) center/cover no-repeat fixed;
  background-blend-mode: darken;
}

/* === Estructura principal === */
main {
  width: 60%;
  margin: 0 auto;
  align-items: center;
  flex: 1 0 auto;
  padding-top:5vh;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 5vh;
  margin-bottom:5vh;

  background-color: var(--header-bg);
  border-bottom-left-radius: 35px;
  border-bottom-right-radius: 35px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
header a {
  margin: 0 16px;
  padding:3px;
}

footer {
  display: flex;

  margin-top: 2vh;

  background-color: var(--color1);
  color: white;
  text-align: left;
  border-color: var(--color2);
  border-top: solid 1px;
}
footer div {
  margin: 1vh auto;
  font-size: 0.8em;
}

/* === Enlaces === */
a {
  border-radius: 3px;
  padding:1px;
  color: skyblue;
  text-decoration: underline;
  cursor: pointer;
  
  transition: 
    background-color 0.3s ease, 
    border-color 0.3s ease, 
    color 0.3s ease, 
    text-decoration 0.3s ease;
}
a:hover {
  color: white;
  background-color: var(--color3);
  border-color: var(--color4);
  border-radius: 3px;
  text-decoration: none;
}

@media (max-width: 600px) {
  main {
    width: 95%;
  }
  footer {
    display:block;
    text-align: center;
  }
}

/* === Bloques === */
.block {
  margin: 1vh auto;
  padding: 1%;

  background-color: rgba(0,0,0,0.3);
  border-radius: 8px;
  height: auto;

  backdrop-filter: blur(5px);

  transition: all 0.3s ease;
}
.block:hover {
  box-shadow: 0 1vh 2vh rgba(0,0,0,0.2);
  transform: scale(1.01);
  backdrop-filter: blur(10px);
}

.warning {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  padding:1%;

  border-radius: 12px;
  height: auto;
  
  background-color:red;
  border-style:solid;
  border-color:darkred;
}
