@font-face{
  font-family: 'F1Font';
  src: url("fonts/Formula1-Regular-1.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face{
  font-family: 'F1Font';
  src: url("fonts/Formula1-Bold_web.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face{
  font-family: 'F1Font';
  src: url("fonts/Formula1-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

body{
    background-color: #91ccff;
    font-family: 'F1Font';
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: block; /* Changed from flex to block - fixes layout on hobbies/drawings */
    background-attachment: fixed;
    padding-top: 90px;
}

.index-page{
    background-image: url('images/test.png');
}

.hobbies-page{
    background-image: url('images/image2.png');
}

/* NAV - no class, just the element selector */
nav {
    font-size: 20px;
    background-color: #0e8185;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    padding: 0; 
    z-index: 1000;
    height: 70px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;      
    justify-content: center; 
    align-items: center;     
    height: 100%;        
}

nav li {
    height: 100%; 
    display: flex;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 0 25px;    
    display: flex;     
    align-items: center; 
    height: 100%;      
    transition: 0.3s;
}

nav a:hover {
    background-color: #07595c;
    color: white; 
}

nav button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 15px;
    cursor: pointer;
}

.centro{
    position: fixed;
    left: 15px;
    margin: 8px;
}

.intro{
    text-align: center;
    width: 50%;
    margin: 80px auto;
    padding: 20px;
    border-radius: 10px;
    color: black;
    text-shadow: 2.5px 2.5px #0e8185;
}


/* TABLE SCROLL WRAPPER - allows horizontal scroll on mobile */
.table-scroll {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 10px;
}

.aboutme{
  float: right;
}

tr{
    text-align: center;
}

.buttonLink{
  background-color: #07595c;
  border-color: #07595c;
  text-decoration: none;
  color: white;
  padding: 10px;
  border-style: solid;
  border-radius: 10px;
}

.buttonLink:hover{
  background-color: #022c2e;
  border-color: #022c2e;
  transition: 0.3s;
}


/* SEPARATORIA */

  /* Contenedor principal de la tabla */
  .infobox {
    float: right;    
    width: 350px;         
    margin-left: 20px;   
    margin-bottom: 10px;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    font-family: sans-serif;
    font-size: 14px;
  }

  /* Encabezado superior con el nombre */
  .infobox-header {
    background-color: #444444;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 18px;
  }

  .infobox-header-lemon {
    background-color: #ffff00;
    color: black;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 18px;
  }
  
  .infobox-header-lime {
    background-color: #00ff00;
    color: black;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 18px;
  }
  
  .infobox-header-stardust {
    background-color: #00ffff;
    color: black;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 18px;
  }
  
  .infobox-header-flora{
    background-color: #777578;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 18px;  
  }
  
  .infobox-header-lovedeath {
    background-color: #703098;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 18px;
  }
  
  .infobox-header-neroli{
    background-color: #ff5400;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 18px;
  }
  
  .infobox-header-nexity {
    background-color: #ff0000;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 18px;
  }
  
  /* Celda de la imagen */
  .infobox-image {
    text-align: center;
    border-bottom: 1px solid #a2a9b1;
    background-color: white;
  }

  .infobox-image img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Títulos de sección (como "Datos personales") */
  .infobox-section {
    background-color: #b0b0b0;
    text-align: center;
    font-weight: bold;
    padding: 5px;
    border-top: 1px solid #a2a9b1;
    border-bottom: 1px solid #a2a9b1;
  }

  /* Filas de datos */
  .infobox table {
    width: 100%;
    border-collapse: collapse;
  }

  .infobox th {
    background-color: #222222;
    color: white;
    text-align: left;
    padding: 8px;
    width: 35%;
    vertical-align: top;
    border: 1px solid #a2a9b1;
  }
  
  table.lemon th{
    background-color: #ffff00;
    color: black;
  }
    
  table.lime th{
    background-color: #00ff00;
    color: black;
  }
    
  table.stardust th{
    background-color: #00ffff;
    color: black;
  }
    
  table.flora th{
    background-color: #777578;
  }

  table.lovedeath th{
    background-color: #703098;
  }
    
  table.neroli th{
    background-color: #ff5400;
  }
  
  table.nexity th{
    background-color: #ff0000;
  }

  .infobox td {
    padding: 8px;
    vertical-align: top;
    border: 1px solid #a2a9b1;
    line-height: 1.4;
  }

  /* Enlaces de color azul como en la imagen */
  .infobox td a {
    color: #0645ad;
    text-decoration: none;
  }

  /* DRAWINGS GRID */
.drawings-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.drawings-grid img {
    height: 300px;
    width: auto;
    border-radius: 6px;
    object-fit: cover;
}

.story {
    overflow: hidden;
    margin-bottom: 30px;
}

.story .infobox {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.story-text {
    overflow: hidden;
}

/* =============================
   TABLET (max-width: 1024px)
   ============================= */
@media (max-width: 1024px) {
  .intro {
    width: 70%;
  }

  .infobox {
    width: 280px;
  }

  nav {
    font-size: 17px;
  }

  nav a {
    padding: 0 15px;
  }
}

/* =============================
   MOBILE (max-width: 768px)
   ============================= */
@media (max-width: 768px) {
  body {
    padding-top: 110px;
  }

  nav {
    height: auto;
    font-size: 13px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px 0;
    gap: 0;
  }

  nav li {
    height: auto;
  }

  nav a {
    padding: 8px 10px;
    height: auto;
  }

  nav button {
    position: static;
    transform: none;
    margin: 5px auto;
    display: block;
  }

  .intro {
    width: 90%;
    margin: 40px auto;
  }


  .infobox {
    float: none;
    width: 95%;
    margin: 0 auto 20px auto;
  }

  .aboutme {
    float: none;
  }

  .centro {
    position: static;
    margin: 10px;
  }
}

.buttonLink {
  display: block;
  width: fit-content;
  font-size: 13px;
  padding: 8px;
  margin: 0 auto;
  word-break: break-word;
}

.drawings-grid img {
    height: 200px;
}

/* =============================
   SMALL MOBILE (max-width: 480px)
   ============================= */
@media (max-width: 480px) {
  body {
    padding-top: 120px;
  }

  .intro {
    width: 95%;
    margin: 20px auto;
    padding: 12px;
  }

  nav {
    font-size: 12px;
  }

  nav a {
    padding: 6px 8px;
  }

  .infobox {
    font-size: 13px;
  }
  
.buttonLink {
  display: block;
  width: fit-content;
  font-size: 12px;
  padding: 7px;
  margin: 0 auto;
}

.drawings-grid img {
    height: 150px;
    width: 100%;
    object-fit: contain;
}

  .infobox-header,
  .infobox-header-lemon,
  .infobox-header-lime,
  .infobox-header-stardust,
  .infobox-header-flora,
  .infobox-header-lovedeath,
  .infobox-header-neroli,
  .infobox-header-nexity {
    font-size: 15px;
  }
}