:root {
  --color_text: #6a6a6a;
  --fons_base: rgb(168, 213, 215);
  --fons1: rgb(255, 242, 204);
  --fons2: rgb(255, 255, 255);
  --fons3: rgb(234, 255, 244);
  --fons4: rgb(253, 227, 147);
}

@font-face {
  font-family: Montserrat;
  src: url("fonts/Montserrat-Regular.ttf");
}

@font-face {
  font-family: MontserratBold;
  src: url("fonts/Montserrat-Bold.ttf");
}

@font-face {
  font-family: Antro;
  src: url("fonts/Antro_Vectra.otf");
}

@font-face {
  font-family: OpenSans;
  src: url("fonts/OpenSans.ttf");
}

body {
  font-family: Montserrat;
  background-color: var(--fons_base);
  color: white;
  margin: 0;
}

* {
  box-sizing: border-box;
}

a {
  color: white;
  text-decoration: none;
}

header {
  /* background: linear-gradient(
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0) 100%
  ); */
  position: absolute;
  top: 0px;
  width: 100%;
  /* height: 75px; */
  color: black;
  z-index: 10;
}

img.icon {
  opacity: 0.5;
}

.menu {
  line-height: 1em;
  text-align: center;
  animation: fadeinMenu 3s;
  font-size: 0.6em;
  /* text-shadow: 1px 1px 1px black, -1px 1px 1px black, -1px -1px 1px black, 1px -1px 1px black; */
}

@keyframes fadeinMenu {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.menu ul {
  list-style: none;
  padding-inline-start: 1em;
  padding-inline-end: 1em;
}

.menu ul li {
  display: inline-block;
  padding: 0.1em 1em;
  position: relative;
}

.menu ul li::before {
  content: "";
  position: absolute;
  bottom: 0px;
  border-bottom: 1px solid white;
  transition: width 0.25s;
  width: 0px;
  height: 0px;
}

.menu ul li:hover::before {
  width: calc(100% - 2em);
}

.menu ul li.actiu::before {
  width: calc(100% - 2em);
}

.seccio {
  position: fixed;
  width: 100%;
  top: 0px;
  bottom: 0px;
  z-index: -100;
  background-color: var(--fons_base);
  /* background: linear-gradient(
    -45deg,
    rgb(255, 255, 255) 10%,
    rgb(247, 238, 164) 30%,
    rgb(255, 255, 255) 50%,
    rgb(169, 249, 226) 70%,
    rgb(255, 255, 255) 90%
  );
  background: linear-gradient(270deg, rgb(247,238,164), rgb(169,249,226)); */
  overflow: hidden;
  background-size: 150% 150%;
  animation: Animation 60s ease infinite;
}

@keyframes Animation {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}

#titol_pagina {
  font-family: Montserrat;
  font-size: 2em;
  font-weight: normal;
  text-align: left;
  text-shadow: 1px 1px 3px var(--color_text);
  text-transform: uppercase;
  margin-top: 2rem;
  margin-left: 1.75rem;
  position: relative;
  opacity: 1;
  animation: entrada 2s;
}

@keyframes entrada {
  0% {
    left: -1em;
    opacity: 0;
  }
  100% {
    left: 0px;
    opacity: 1;
  }
}

@keyframes entrada2 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#subtitol_pagina {
  font-family: Montserrat;
  font-size: 1.35em;
  font-weight: normal;
  text-shadow: 1px 1px 3px var(--color_text);
  text-align: left;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 1.75rem;
  position: relative;
  opacity: 1;
  animation: entrada 2s;
}

.subseccio {
  color: var(--color_text);
  background-color: var(--fons2);
  padding: 2em 2em;
  font-size: 0.9em;
  text-align: justify;
  line-height: 1.75em;
  width: 100%;
}

.subseccio:nth-of-type(3n+1) {
  background-color: var(--fons4);
}

.subseccio:nth-of-type(3n+2) {
  background-color: var(--fons1);
}

.subseccio:nth-of-type(3n+3) {
  background-color: var(--fons3);
}

#seccio_contingut .subseccio:nth-of-type(9n+1) {
  background-color: var(--fons4);
}

#seccio_contingut .subseccio:nth-of-type(9n+4) {
  background-color: var(--fons1);
}

#seccio_contingut .subseccio:nth-of-type(9n+7) {
  background-color: var(--fons3);
}

#seccio_contingut.llista .subseccio:nth-of-type(3n+1) {
  background-color: var(--fons4);
}

#seccio_contingut.llista .subseccio:nth-of-type(3n+2) {
  background-color: var(--fons1);
}

#seccio_contingut.llista .subseccio:nth-of-type(3n+3) {
  background-color: var(--fons3);
}

.titol_subseccio {
  background-color: var(--fons2);
  color: var(--color_text);
  width: 100%;
  text-align: center;
  padding: 1em;
}

#seccio_contingut {
  display: flex;
  flex-wrap: wrap;
  /* align-items: flex-start; */
  align-items: stretch;
  /* margin: 0 3em; */
  margin-bottom: 3em;
}

#seccio_contingut a {
  color: var(--color_text);
}

.fotos_subseccio {
  width: 100%;
  display: flex;
}

.fotos_subseccio .foto {
  height: 12em;
  width: 100%;
  background-size: cover;
  background-position: center center;
}

.fons_vista {
  /* width: 100%; */
  position: relative;
}

#coberta {
  position: fixed;
  top: 10em;
  bottom: -400px;
  left: 0;
  right: 0;
  background: linear-gradient(
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 1) 100%
  );
  z-index: -10;
}

#llistaCursos {
	display: flex;
	flex-wrap: wrap;
  justify-content: space-between;
  height: inherit;
  padding: 1em;
  background-color: var(--fons1);
}

.seleccio_curs {
	background-color: var(--fons2);
  color: var(--color_text);
	width: 100%;
	padding: 1em;
	text-align: left;
	margin: 0.25em;
	font-size: 1.25em;
	cursor: pointer;
	display: flex;
	align-items: center;
  border-radius: 0;
}

.seleccio_curs:hover {
	background-color: var(--fons3);
}

.seleccio_curs img {
	width: 32px;
	margin-right: 0.5em;
	opacity: 0.5;
}

.desmarcar {
	background-color: var(--fons4);
  opacity: 1;
}

.seleccio_curs.marcar:hover {
	background-color: var(--fons2);
}

#passwordBox {
	display: table;
	opacity: 0;
	transition: opacity 1s;
	margin-left: 8px;
  margin-top: 2em;
  margin-bottom: 2em;
}

#passwordLock {
  background-color:  var(--fons4);
	color: var(--color_text);
	padding: 6px 12px 6px 16px;
	font-size: 24px;
	font-weight: normal;
	line-height: 1;
	text-align: right;
	display: table-cell;
  border-radius: 0;
}

#passwordError {
	display: none;
	margin-left: 48px;
	line-height: 30px;
}

#password {
  width: 300px;
	border: 2px solid  var(--fons4);
	font-size: 24px;
	padding: 4px;
	text-align: left;
  border-radius: 0;
}

#navegador {
  margin-top: 3em;
  margin-left: 1.75rem;
}

#contenidor {
  max-width: initial;
}

@media (min-width: 600px) {
  .seleccio_curs {
    width: 48%;
  }

  .menu {
    text-align: right;
    font-size: 1em;
  }

  .titol_seccio {
    margin-left: 1.75rem;
    text-align: left;
    animation: entrada 2s;
  }

  .subtitol_seccio {
    margin-left: 1.75rem;
    text-align: left;
    animation: entrada 2s;
  }

  .subseccio {
    padding: 2em 3em;
  }
}

@media (min-width: 850px) {
  .seleccio_curs {
    width: 32%;
  }

    .subseccio {
    padding: 2em 5em;
  }

  .fotos_subseccio .foto {
    height: 18em;
  }
}

@media (min-width: 960px) {
  .fotos_subseccio .foto {
    height: 20em;
  }
}

@media (min-width: 1200px) {
  .fotos_subseccio .foto {
    height: 25em;
  }
}

