:root {
  /* Modo Claro (Default) */
  --body-bg-color: #000000; /* El morado que tenías antes */
  --top-header-bg:url("../media/media_picture/m_picture_sol.webp");
  --body-bg-image:url("../media/media_video/Gif_LaPresa.gif");
  --body-con-image:url("../media/media_picture/m_picture_sol.webp");
  --container-bg: #000000;
  --text-color: #e0e0e0;
  --header-bg: #0C1113;
  --titles-color: #ffffff;
  --link-hover: #ffe800;
  --img-brightness: 100%;
}
/* ----------------------------------------------------------------------------- */
/* Colores para Modo Oscuro --------------------------------------------------- */
[data-theme="dark"] {
  --top-header-bg:url("../media/media_picture/m_picture_cats.webp");
  --body-bg-color: #000000;
  --body-bg-image:url("../media/media_video/Gif_ReflejoNocturno.gif");
  --body-con-image:url("../media/media_picture/m_picture_cats.webp");
  --container-bg: #1a1a1a;
  --text-color: #e0e0e0;
  --header-bg: #111111;
  --titles-color: #ffffff;
  --link-hover: #520a7b;
}
/* ------------------------------------------------------------------------ */
/*BODY*/
body {
  background-color: var(--body-bg-color);
  background-image: var(--body-bg-image);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 1.0);
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}
/* ---------------------------------------------------------------- */

/*CONTAINER--------------------------------------------------------*/
#container {
  margin: 3em auto;
  width: 90%;
  max-width: 700px;
  background-color: var(--container-bg);
  background-image: var(--body-con-image);
  background-position: center;
  background-size: 700px 700px;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-color); 
  outline-color: #a9a9a9;
  outline-style: ridge;
  outline-width: 4px;
  outline-offset: 0;
  transition: background-color 0.3s;
}
/* ---------------------------------- */
/*TITULOS*/
h1, h2, h3, h4, h5 {
  font-family: Tahoma, Geneva, sans-serif;
  color: var(--titles-color);
  
}
/* ---------------------------------- */

/* HEADER ----------------------------- */
#header {
  background-color: var(--header-bg);
  padding: 0 5%;
  border-color: #a9a9a9;
  border-style: ridge;
  border-width: 0 0 4px 0;
}
/* ---------------------------------- */

img {
    width: 100%;          
    max-width: 600px;     
    height: auto;
    display: block;
    margin: 1.5em auto;   
    
    filter: brightness(var(--img-brightness));
    outline-color: #a9a9a9;
    outline-style: ridge;
    outline-width: 5px;
    outline-offset: 0;
}

/*afected by dark mode*/
/*-----------------*/
/*-----------------*/
/*-----------------*/

a:hover { 
  background-color: var(--link-hover);
}


/*-----------------------------------CONTENT WRAPPER---------------------------------------------------------------------*/
/*-----------------------------------MAKES SURE ALL THE CONTENT IS CENTERED----------------------------------------------*/
#content {
    padding: 10px 5% 20px 5%;
    width: auto;
    text-align: left;    
}

.content-wrapper {
    width: 90%;           
    max-width: 600px;     
    margin: 0 auto;       
    text-align: left;     
}


.content-wrapper h1, 
.content-wrapper h2, 
.content-wrapper h3, 
.content-wrapper p {
    text-align: left !important;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    width: 100%;
}
/*---------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------*/



/*--------------------------------------HEADER------------------------------------------------------------------------*/
/*--------------------------------------HAS LINKS TO THE OHTER BIG BRANCES-------------------------------------------*/
#header ul {
  list-style-type: none;
  padding: 0.5em 0;
  margin: 0;

  display: flex;           
  align-items: center;       
  justify-content: flex-start; 
}

#header li {
  font-size: 1.2em;
  display: inline-block;
  margin-right: 1.5em;
  margin-bottom: 0.2em;
  margin-top: 0.2em;
}

#header li a {
  color: white;
  text-decoration: none;
  background-color: inherit;
}

/*Not afected by dark mode per se but has to do with header*/
#header li:last-child {
  margin-left: auto; 
  margin-right: 0;   
}
/*---------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------*/

/*-----------------------------------------DARK MODE DETAILS----------------------------------------*/
/*---------------------------------------------------------------------------------------------------*/
#dark-mode-toggle {
    background: transparent; 
    border: none;             
    color: white;             
    cursor: pointer;          
    
    font-family: inherit;     
    font-size: 1.0em;         
    
    padding: 0;               
    display: inline-block;
    margin-right: 1.5em;
    margin-bottom: 0.2em;
    margin-top: 0.2em;
}

#dark-mode-toggle:hover {
    text-decoration: underline;
    background-color: var(--link-hover); 
}

/*---------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------*/

/*---------------------------------TOP HEADER------------------------------------------------*/
/*---------------------------------THIS HAS A FUNNY TITLE--------------------------------------*/
#top-header {
  background-color: #1a1a1a; 
  background-image: var(--top-header-bg);
  background-size: 700px 700px;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: .9em;
  padding: 25px 5%;
  border-bottom: 2px solid #444;
}

.top-bar-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center; 
  align-items: center;
  max-width: 700px;  /*SHOUDL REPLACE WITH A VARIABLE*/
  margin: 0 auto;
}

/*---------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------*/


/*-------------------------------PROJEC ITEMS-------------------------------------------------------------------*/
/*-------------------------------TO USE IN THE GALLERY BRANC--------------------------------------------------*/
.project-year {
    margin-bottom: 40px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.project-item {
    background: var(--header-bg);
    padding: 10px;
    border: 1px solid #a9a9a9;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;


    outline-color: #a9a9a9;
    outline-style: ridge;
    outline-width: 4px;
    outline-offset: 0;
}

.project-year h2 {
    border-bottom: 2px ridge #a9a9a9; 
    padding-bottom: 8px;              
    margin-bottom: 20px;             
    display: block;                 
    width: 100%;                     
}

.project-link {
    text-decoration: none; 
    color: inherit;        
    display: block;        
}

.project-item:hover {
    transform: scale(1.05); 
    border-color: var(--link-hover) !important; 
    transition: all 0.2s ease;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 150px;
    object-fit: cover; 
    display: block;

    outline-color: #a9a9a9;
    outline-style: ridge;
    outline-width: 4px;
    outline-offset: 0;
}

.project-item .caption {
    font-size: 0.8em;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    color: white;
}
.project-item:active {
    transform: scale(0.98); 
}
/*---------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------*/


/*------------------------------LINKED TITLE---------------------------------------------------*/
/*------------------------------FOR USE IN PROJECT PAGES---------------------------------------------------*/

.linked-title {
    border-bottom: 2px ridge #a9a9a9; 
    padding-bottom: 10px;             
    margin-bottom: 20px;            
    text-align: left;
}

.linked-title a {
    text-decoration: none;           
    color: var(--titles-color);      
    display: inline-block;           
    transition: color 0.3s ease;
}

.linked-title a:hover {
    color: var(--link-hover);        
    background-color: transparent;  
}
/*---------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------*/


#footer {
  font-size: 0.8em;
  padding: 0 5% 10px 5%;
}

#generalinfo{
	color:blue;
}
.moreinfo {
	color: green;
	background-color: yellow;
}