:root {
  --primary-color: #18546D;
  --container-padding: 24px;
  --container-width: calc(100% - var(--container-padding) * 2);
  --slider-nav-height: 500px;
}
html { box-sizing: border-box; }
*, *::before, *::after {
    box-sizing: inherit;
    position: relative;
}
body {
  background: linear-gradient(rgba(28, 92, 22, 0.37), rgba(28, 92, 22, 0.37)),
    #071311 repeat url("https://www.toptal.com/designers/subtlepatterns/patterns/oriental-tiles.png");
  font: 20px "Voces", sans-serif;
  color: #aaaaaa;
  height: 2500px;
}

h1 {
  font-size: 2rem;
  font-family: "Calistoga", serif;
  margin-bottom: .8em;
  color: var(--primary-color);
}

h1>span {
  display: inline-block;
  background: #bbbbbb;
  padding: .2em;
}

hr {
  width: 64px;
  color: #bbb;
  margin-bottom: .8em;
}
.navigation ul{
  padding-left:0;
  margin:0 auto;
}
.navigation ul p {
  padding-bottom: 3px;
  color: #18546D;
  display: none;
  margin:0 auto;
}

.navigation {
  color: #bbbbbb;
  border: 1px solid #333;
  box-shadow: 2px 2px 2px 2px rgba(20, 20, 20, .2);
  height: 100px;
  padding: 8px 8px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.navigation nav {
  background-color: rgba(0, 0, 0, 0.2);
  margin-right: 24px;
  border: 1px solid #18546D;
  border-radius: 3px;
  padding: 8px;
}

.navigation nav:hover {
  border-color: transparent;
}

.navigation nav span {
  display: none;
  visibility: hidden;
}
.navigation li{
  list-style:none ;

}

.navigation li a {
  color: #bbbbbb;
  text-decoration: none;
  font: .9em "Voces", sans-serif;
}

.navigation li a:hover {
  color: #18546D;
}

.logo {
  align-self: center;
  margin-left: 24px;
}

.logo::after {
  content: "Nyxirae";
  color: #bbbbbb;
  font-size: 2.5em;
  text-align: center;
  display: block;
  position: absolute;
  top: 25px;
  left: 25px;
  text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
}

.logo:after:hover {
  color: var(--primary-color);
}

.logo svg {
  width: 80px;
  height: auto;
}

.logo svg g use {
  fill: #18546D;
  stroke: #bbbbbb;
  stroke-width: 2px;
}

.container {
  box-sizing: border-box;
  width: 100%;
  padding-left: calc(50% - var(--container-width) / 2);
  padding-right: calc(50% - var(--container-width) / 2);
}

.hero {
  min-height: 500px;
  background:
    radial-gradient(rgba(0, 0, 0, 0.5) 25%, rgba(0, 0, 0, 0.8) 100%),
    no-repeat url("https://www.itl.cat/pngfile/big/48-489957_green-geometric-patterns-wallpapers-hd.jpg") center/cover;
  box-shadow: 0 2px 4px #000;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
}

.content {
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-content: center;
}

.content-title {
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
}

/*Carte colonne*/

.card-wrapper {
  padding-top: 64px;
}

.card {
  display: flex;
  flex-flow: column wrap;
  background: #bbb;
  min-height: 320px;
  max-width: 300px;
  margin: 0 auto 16px;
  box-shadow: 0 2px 4px #000;
  border-radius: 3px;
}

.card-header {
  padding-bottom: 0;
  margin-bottom: -2.5em;

}

.card-header img {
  text-align: center;
  color: var(--primary-color);
  max-width: 100%;
  height: auto;
}

.card-main {
  font-size: 1rem;
  padding: 1em;
  display: flex;
  flex-flow: column wrap;
  color: var(--primary-color);
  flex-grow:1;

}
.card-main h2{
  font-size:1.2em;
  font-weight: bold;
  line-height: 1.4em;
  margin-bottom: .8em;
  margin-top:0;
}
.card-main h2 span{
  display: inline-block;
  background-color:rgba(187,187,187,.7);
  margin-left:-16px;
  padding: 0 .5em .5em 16px;  
}


.card-main p {
  margin-top: 0;
  margin-bottom: 1em;
  text-align: justify;
}
.card-footer{
  display:flex;
  flex-flow:row nowrap;
  justify-content:flex-end;
}

.card-footer a {
  padding: .5em;
  display: inline-block;
  color: #bbb;
  font-size: .8rem;
  justify-content: flex-end;
  text-decoration: none;
  background-color: var(--primary-color);
}

.card-main a:hover {
  background-color: #bbb;
  color: var(--primary-color);
}

.card-main a span {
  background-color: var(--primary-color);
}

/*Fin Carte colonne*/

/*Slider*/
.slider-wrapper{
  background: #ccc;

}
#slider {
  position: relative;
  overflow: hidden;
  margin: 20px auto 0 auto;
  border-radius: 4px;
  width:100%;

}

#slider ul {
  position: static;
  margin: 0;
  padding: 0;
  height: 200px;
  list-style: none;
  
}

#slider ul li {
  position: relative;
  display: block;
  float: left;
  margin: 0;
  padding: 0;
  width: 98vw;
  height: var(--slider-nav-height);
  background: #ccc;
  text-align: center;
  line-height:var(--slider-nav-height);
  box-sizing: border-box;
}
#slide01, #slide02, #slide03, #slide04{
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#slide01{
  background-image: url();
}

button.control_prev,
button.control_next {
  position: absolute;
  top: calc(var(--slider-nav-height) / 2 - 9px - 4%);
  z-index: 999;
  display: block;
  padding: 1% 2%;
  width: auto;
  height: auto;
  background: #2a2a2a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  opacity: 0.8;
  cursor: pointer;
}

a.control_prev:hover,
a.control_next:hover {
  opacity: 1;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
}

button.control_prev {
  border-radius: 0 2px 2px 0;
}

button.control_next {
  right: 0;
  border-radius: 2px 0 0 2px;
}

/*Fin Slider*/


.test-text-fixed .left, .test-text-fixed .right{
  padding:1em;

}
.test-text-fixed .right{
  background-color:#333;
}
.test-text-fixed h1{
  color: white;
}



@media only screen and (min-width: 1040px) {
  :root {
    --container-width: 1000px;
  }

  .navigation {
    padding: 8px 8px;
    color: #ccc;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    background: linear-gradient(rgba(10, 10, 10, .5), rgba(10, 10, 10, .5));
  }

  .navigation nav {
    align-self: flex-end;
    margin-bottom: 20px;
    font: 1.2em "Calistoga", sans-serif;
    margin-right: 24px;
  }

  .navigation ul {
    display: flex;
    align-items: flex-end;
  }

  .navigation ul p {
    padding-bottom: 3px;
    color: #18546D;
    display: block;
  }

  .navigation li {
    display: inline-block;
    margin: 0 8px;
  }

  .navigation span {
    display: inline-block;
  }
  .content-title {
    text-align: center;
    padding-left: 5em;
    padding-right: 5em;
  }

  .card-wrapper {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-content: center;
  }
  
  .test-text-fixed{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content:space-between;
  
  }
  .test-text-fixed .right{
    max-width: 35%;
  }
  .test-text-fixed .left{
    max-width: 60%;
  }
  .left p{
    margin-bottom:1em;
  }
  .text-fixed{
    position: sticky;
    top: 20px;
  }
}