/* Global setting*/
:root{
  --headboard: url('./img/cabecera.png');
  --background-image: url('./img/bgbonus.png');
  --shadow-for-text: #1f1d2053 3px 4px 0;
  --border-image: url('./img/border_title.png');
  --border-image-Cyan: url('./img/border_title_Cyan.png');
  --border-image-Red: url('./img/border_title_Red.png');
  --border-properties: #742b21 5px ridge;
  --box-text: #174555;
  --box-text-dark: #0c2128;
  --box-text-cyan: rgb(32, 94, 85);
  --footer-image: url('./img/parteinferior.png');
  --shadow-img: drop-shadow(12px 9px 0 rgba(0, 0, 0, 0.359));
  /*--box-text-red: #84221d;*/
  /*--box-border-line: rgb(29, 29, 29) 3px;*/
  /* exclusive */
  --tab-border-size: 0;
  --box-border-style: solid solid solid solid;
  --border-image-inactive: url('./img/border_title_inactive.png');
  --tabs-height: 23px;
  --tabs-width: 77px;/*93px;111px;*/
}

body{
  background-image: var(--background-image);
  background-repeat: repeat;
  background-size: 9%;
  color: white;
  font-size: 18px;
}

html, body{
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 449;
  font-style: normal;
}

.layout {
  width: 1fr;
  margin: -8px;
  min-height: 100dvh;

  display: grid;
  grid:
    "header header header" auto
    "nav nav nav" auto
    "changelog changelog changelog" 3.8fr
    "footer footer footer" auto
    / 1fr 1px 1fr ;
  gap: 0;
}

.header { grid-area: header; }
.nav { grid-area: nav; }
.changelog { grid-area: changelog; }
.footer { grid-area: footer; }

/*Headboard*/

.header{
  background: #E6482E;
  color: aliceblue;
  text-align: center;
  padding: 10px;
  margin: 0;
  box-sizing: border-box;
}

img{
  filter: var(--shadow-img);
}

.heading{
  background-image: var(--headboard);
  background-repeat: repeat-x;
  height: 53px;
  /*margin-top: -8px;*/
  color: aliceblue;
  filter: var(--shadow-img);
}

nav{
  position: sticky;
  top: -105px;
  z-index: 500;
}

/* main content */
/* Nav */

nav > .menu{
  background: #E6482E;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: var(--shadow-for-text);
  word-spacing: 50px;
  font-size: 20px;
  line-height: 45px;
  color: white;
  border: 2px solid #E6482E;
}

.menu > #select{
  color: rgb(174, 174, 174);
  text-decoration: underline;
}

.clickc{
  cursor: pointer;
  text-decoration: none;
  color: white;
}

.clickc:hover{
  cursor: pointer;
  text-decoration: underline;
  color: rgb(174, 174, 174);
}

.clickc:active{
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.896));
}

/* Tabs */

.tab-content{
  display: none;
}

.tab:target .tab-content, .tab:last-of-type .tab-content{
  display: block;
}

.tab:target ~ .tab:last-of-type .tab-content{
  display: none;
}

h2, p {
  margin: 0;
  padding: 7px;
  text-shadow: black 0 0 5px;
} 
a {
  color: inherit;
  text-decoration: none;
} 
.changelog * {
  box-sizing: border-box;
}

.tab-container {
  position: relative;
  padding-top: var(--tabs-height); /* en esta zona colocaremos las pestañas */
} 
#tab1>a { --tabs-position: 0; }
#tab2>a { --tabs-position: 1; }
#tab3>a { --tabs-position: 2; }
#tab4>a { --tabs-position: 3; }
#tab5>a { --tabs-position: 4; }
#tab6>a { --tabs-position: 5; }
#tab7>a { --tabs-position: 6; }
#tab8>a { --tabs-position: 7; }
#tab9>a { --tabs-position: 8; }
.tab>a {
  text-align: center;
  text-shadow: black 0 0 5px;
  position: absolute;
  width: calc(var(--tabs-width));
  height: calc(var(--tabs-height) + var(--tab-border-size)); 
  top: 23px;
  font-size: 14px;
  margin-left: 40px;
  left: calc(var(--tabs-width) * var(--tabs-position)); /* posición de cada pestaña */
}

/* Tabs content properties */

.changelog { 
  padding: 10px;
  color: white;
}
.tab-content {
  background-color: var(--box-text); 
  padding: 29px 20px 25px 20px;
  top: 17px;
  left: 5%;
  width: 75vw;
  margin: 0 3px 0 3px;
  border: var(--border-properties);
  border-radius: 10px;
  position: relative;
  z-index: 99;
  filter: var(--shadow-img);
}
.tab>a {
  /*background-color: var(--box-text-dark);*/
  background-image: var(--border-image-inactive); 
  padding: 3px 5px;
  color: #626262;
  border: var(--border-properties);
  border-radius: 10px;
  z-index: 150;
}
.tab:target>a, .tab:last-of-type>a {
  /*background-color: var(--box-text);*/
  background-image: var(--border-image);
  color: white; 
  z-index: 200;
}
.tab:target ~ .tab:last-of-type>a {
  background-image: var(--border-image-inactive);
  /*background-color: var(--box-text-dark);*/ 
  color: #626262;
  z-index: 100; 
}

/*.tab-content > .tab-s-content{
  background-color: var(--box-text-dark);
  border: solid 3px #0c1820;
  padding: 0 8px 10px 8px;
}*/

.tab-content > aside{
  background-color: var(--box-text-dark);
  border: solid 3px #0c1820;
  padding-left: 0.8rem;
  margin-left: 0.8rem;
  float: right;
  width: 38%;
}

/* footer */

.footer{
  color: white;
  position: absolute;
  bottom: 0;
  align-self: self-end;
}

/*.footer > p{
  text-align: center;
  text-shadow: var(--shadow-for-text);
  font-size: 13px;
  background-image: var(--border-image);
  border: var(--border-properties);
  filter: var(--shadow-img);
}*/

.footer > .end{
  background-image: var(--footer-image);
  background-repeat: repeat-x;
  height: 70px;
  width: 100vw;
  filter: var(--shadow-img);
}

/* resolution config */
/* tablet mode */
@media screen and (min-width: 768px){

  :root{
    --tabs-width: 111px;
  }
  
  body{
    background-size: 5%;
  }

  nav{
    top: -60px;
  }

  #tab1>a { --tabs-position: 0; }
  #tab2>a { --tabs-position: 1; }
  #tab3>a { --tabs-position: 2; }
  #tab4>a { --tabs-position: 3; }
  #tab5>a { --tabs-position: 4; }
  #tab6>a { --tabs-position: 5; }
  #tab7>a { --tabs-position: 6; }
  #tab8>a { --tabs-position: 7; }
  #tab9>a { --tabs-position: 8; }
  .tab>a {
    margin-left: 80px;
  }

  #tab2>a{
    margin-left: 100px;
  }

  #tab3>a{
    margin-left: 120px;
  }

  .tab-content{
    /*margin: 0 30px 0 30px;*/
    left: 62px;
  }

  /*.footer > p{
    font-size: 18px;
    width: 380px; english 
    width: 410px;
  }*/
}

/* Destop Mode */

@media screen and (min-width: 1024px){
  
  body{
    background-size: 4%;
    font-size: 20px;
  }

  nav > .menu{
    font-size: 23px;
  }

  .tab-content{
    /*margin: 0 135px 0 145px;*/
    left: 85px;
  }

  #tab1>a { --tabs-position: 0; }
  #tab2>a { --tabs-position: 1; }
  #tab3>a { --tabs-position: 2; }
  #tab4>a { --tabs-position: 3; }
  #tab5>a { --tabs-position: 4; }
  #tab6>a { --tabs-position: 5; }
  #tab7>a { --tabs-position: 6; }
  #tab8>a { --tabs-position: 7; }
  #tab9>a { --tabs-position: 8; }
  .tab>a {
    margin-left: 125px;
  }

  #tab2>a{
    margin-left: 145px;
  }

  #tab3>a{
    margin-left: 165px;
  }
}

/* WideScreen */

@media screen and (min-width: 1440px){

  .tab-content{
    /*margin: 0 225px 0 245px;*/
    left: 247px;
    width: 66vw;
  }

  #tab1>a { --tabs-position: 0; }
  #tab2>a { --tabs-position: 1; }
  #tab3>a { --tabs-position: 2; }
  #tab4>a { --tabs-position: 3; }
  #tab5>a { --tabs-position: 4; }
  #tab6>a { --tabs-position: 5; }
  #tab7>a { --tabs-position: 6; }
  #tab8>a { --tabs-position: 7; }
  #tab9>a { --tabs-position: 8; }
  .tab>a {
    margin-left: 265px;
  }

  #tab2>a{
    margin-left: 285px;
  }

  #tab3>a{
    margin-left: 305px;
  }  
}

@media screen and (min-width: 2560px){

  .tab-content{
    /*margin: 0 785px 0 805px;*/
    left: 807px;
    width: 37vw;
  }

  #tab1>a { --tabs-position: 0; }
  #tab2>a { --tabs-position: 1; }
  #tab3>a { --tabs-position: 2; }
  #tab4>a { --tabs-position: 3; }
  #tab5>a { --tabs-position: 4; }
  #tab6>a { --tabs-position: 5; }
  #tab7>a { --tabs-position: 6; }
  #tab8>a { --tabs-position: 7; }
  #tab9>a { --tabs-position: 8; }
  .tab>a {
    margin-left: 825px;
  }

  #tab2>a{
    margin-left: 845px;
  }

  #tab3>a{
    margin-left: 865px;
  }  
}