/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

*, *::before, *::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

/*reset end*/

:root {
  --bckgrnd-clr: #98aa9d;
  --primary-clr: #222E2F;
  --secondary-clr: #F2EFE2;
  --labels-bg-clr: #B3C9D6;
  --footer: #222e2f;
  --hover: #83988a;
  --news: #697C70;
  --tag: #8BAEC3;
  --transparent: #00000000;
  --volume: ;
}

/*dark mode*/

.darkmode {
  --bckgrnd-clr: #0e1d21;
  --primary-clr: #dcded5;
  --secondary-clr: #F2EFE2;
  --labels-bg-clr: #677e8a;
  --footer: #122e34;
  --hover: #2a4950;
  --news: #2a4950;
  --tag: #2a4950;
  --transparent:#00000000;
  --volume: ;
}

#theme-switch,
#lang-switch {
  height: 50px;
  width: 50px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#theme-switch svg:last-child{
  display: none;
}
.darkmode #theme-switch svg:first-child{
  display: none;
}
.darkmode #theme-switch svg:last-child{
  display: block;
}

svg {
  fill: var(--secondary-clr);
}

/*end dark mode */

html {
  box-sizing: border-box;
  font-size: clamp(1rem, 1vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  min-height: 100%;
  background-color: var(--bckgrnd-clr);
}

 /* page layout */

.container-landing {
  display: grid;
  grid-template-areas: 
    "header header header"
    ". main ."
    ". btnSec ."
    "footer footer footer";
  justify-items: center;
  row-gap: 4rem;
}

.grid-header {
  grid-area: header;
  width: 100vw;

}

.grid-content {
  grid-area: main;
}

#other-links {
  grid-area: btnSec;
}

#form {
  grid-area: form;
}

.grid-footer {
  grid-area: footer;

  width: 100%;
  height: fit-content;
  padding: 2rem;

  background-color: var(--footer);

  text-align: center;
  color: var(--secondary-clr);
}

nav {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
}

img {
  padding: 5px;
  height: 42px;
  width: auto;
}

.newsBtn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
}

.settings {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 2rem;
}

button {
  background-color: var(--transparent);
  border: var(--transparent);
}

ul.return {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 6rem;
  margin: 0 6rem 0 6rem;
}

[data-title="abstract"] {
  text-align: justify;
}

.cartel-text,
.flex-text {
  display: flex;
  justify-content: stretch;
  align-items: center;
}

.other-buttons,
.other-buttons a:visited {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 2rem;
  text-align: center;
  width: 77ch ;
  color: var(--primary-clr);
  font-size: 1.2rem;
}

.tesis, 
.licencias,
.contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 97px;
  width: 95px;
  padding: 1rem;
}

 /*****************/

 section.grid-video {
  grid-area: video;
}

section.grid-tracks {
  grid-area: tracks;
}

.container-pages {
  display: grid;
  grid-template-areas: 
    "header"
    "main-pages"
    "footer";
  align-items: center;
  row-gap: 2rem;
}

.grid-content-pages {
  grid-area: main-pages;
  display: grid;
  grid-template-columns: 55vw 40vw;
  align-items: center;
  column-gap: 2rem;

  margin-top: 2rem;
  margin-bottom: 2rem;
}

.project-title {
  grid-column: 1 / 3;
}

section.grid-video {
  grid-column: 1 / 2;
}

section.grid-tracks {
  grid-column: 2 / 3;
}

div.voice,
div.ambient,
div.music {
  display: flex;
  align-items: center;
}

.controls {
  display: flex;
  
}

div.controls > * {
  flex-grow: 1;
}

.nameTag {
  display: grid;
  grid-template-columns: 50% 20% 30%;
  align-items: center;
}

.tag,
.dB,
input[type="range"] {
  grid-row: 1 / 3;
}

/* layout end */

main,
.cartel {
  max-inline-size: 77ch;
  line-height: 1.65;
}

a {
  text-decoration: none;
}

#inicio:link,
#inicio:visited,
#inicio:active,
.licencias-pag:link,
.licencias-pag:visited,
.licencias-pag:active {
  color: var(--primary-clr);
}

#inicio:hover,
.licencias-pag:hover {
  color: var(--secondary-clr);
  font-weight: 550;
}

#abstract-title a:link,
#abstract-title a:hover,
#abstract-title a:visited,
#abstract-title a:active {
  color: var(--primary-clr);
}

ul {
  list-style-type: none;
  padding: 0;
}

.newsBtn a:link,
.newsBtn a:visited,
.newsBtn a:active,
.moon-sun:hover,
.globe:hover {
  color: var(--secondary-clr);
  cursor: pointer;
}

.newsBtn a:hover {
  color: var(--primary-clr);
  font-weight: 550;
}

.newsBtn,
.formBtn {
  background-color: var(--news);
}

.newsBtn {
  border-radius: 0 0 2rem 2rem;
}

.other-buttons a:hover {
  color: var(--secondary-clr);
}

.tesis:hover, 
.licencias:hover,
.contacto:hover {
  background-color: var(--hover);
  border-radius: 30%;

  cursor: pointer;
}

.moon-sun:hover,
.globe:hover {
  background-color: var(--hover);
  border-radius: 100%;
}

.return:hover {
  background-color: var(--hover);
  border-radius: 1rem 1rem 1rem 1rem;
}

h1, h2, h3 {
  color: var(--primary-clr);
  padding: 5px 20px 5px 20px;
}

#abstract-text,
#abstract-keywords {
  color: var(--primary-clr);
  margin: 2% 0 2% 0;
  padding: 0 20px 5px 20px;
}

.cartel {
  background-color: var(--labels-bg-clr);
  padding: 2rem;
  width: 100vw;
  margin: 1rem 0 1rem 0;
}

/*pages*/

.video {
    padding: 3px;
    background-color: var(--labels-bg-clr);
    border-radius: 1rem;
    margin: 1rem;
}

.nameTag {
  background-color: var(--tag);
  border-radius: 1rem 0 0 1rem;
  padding: 0.5rem;
  font-size: 1.2rem;
  width: 44vw;
  min-height: 11rem;
  color: var(--primary-clr);
}

/*volume sliders*/
input[type="range"] {
  font-size: 0.5rem;
  writing-mode: vertical-lr;
  direction: rtl;
  cursor: pointer;
}

.slider {
  -webkit-appearance: none;
  width: 0.7rem;
  height: 10rem;
  background: linear-gradient(0deg, rgb(105, 124, 112) 70%, rgb(242, 239, 226) 70%);
  outline: none;
  opacity: 0.8;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
  border-radius: 12px;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.5rem;
  height: 0.8rem;
  background: #4a574f;
  border-radius: 20%;
  box-shadow: 0 4px #303833;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 1.5rem;
  height: 0.8rem;
  background: #4a574f;
  border-radius: 20%;
  box-shadow: 0 4px #303833;
  cursor: pointer;
}

/*volume sliders*/

.voice,
.ambient,
.music {
  margin: 1rem;
}

.controls {
  background-color: var(--labels-bg-clr);
  border-radius: 0 1rem 1rem 0;
  padding: 0.5rem;
  min-height: 11rem;
  width: 66vw;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.voz,
.paisaje,
.musica {
    margin:0.5rem;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    border: none;
    font-size: 1.2rem;
}

.voz:hover,
.paisaje:hover,
.musica:hover {
  cursor: pointer;
}

.voz:focus,
.paisaje:focus,
.musica:focus {
    margin:0.5rem;
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 1.1rem;
    border: none;
    font-size: 1rem;
}

.voz {
background-color: rgb(122, 158, 213);
color:rgb(19, 56, 111);
}

.voz:hover {
outline: 2px solid rgb(122, 158, 213);
}

.paisaje {
background-color: rgb(127, 198, 127);
color: rgb(27, 90, 27);
}

.paisaje:hover {
  outline: 2px solid rgb(127, 198, 127);
}

.musica {
background-color: rgb(222, 166, 62);
color: rgb(132, 87, 3);
}

.musica:hover {
  outline: 2px solid rgb(222, 166, 62);
}

/*pages*/