@font-face {
  font-family: open-sans;
  src: url(../fonts/static/OpenSans-Light.ttf);
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: open-sans;
  src: url(../fonts/static/OpenSans-Bold.ttf);
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: open-sans;
  src: url(../fonts/static/OpenSans-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}
/* 
@font-face {
  font-family: open-sans;
  src: url(../fonts/static/OpenSans-Light.ttf);
  font-weight: 300;
  font-style: normal;
} */

* { 
  margin: 0;
  box-sizing: border-box;
}
/* 
html, body {

} */

html, .tabs-container {
  scroll-behavior: smooth;
}

body {
  font-family: open-sans;
  background-color: #f3f6f9;
  line-height: 1.4;
  color: #333;
  font-weight: lighter;
}

.page-container {
  background-color: #fff;
  width: 1000px;
  max-width: 95%;
  margin: 2em auto;
  border-radius: 5px;
  padding: 2em;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

header {
  padding-bottom: 1em;
  /* margin-bottom: 1em; */
  border-bottom: .01em solid #eee;
}

section {
  /* margin: 2em 0; */
  padding: 0 1em;
}

img, video { 
  /* width: 400px; */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
}

h2 {
  margin-bottom: .75em;
}

p {
  margin-bottom: 1em;
}

main {
  display: flex;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
}

nav {
  /* background-color: #eee; */
  margin-bottom: 1em;
  padding: .5em;
  border-bottom: .01em solid #eee;
  color: #000;
}

nav a {
  color: #888;
}
nav a:hover {
  color: #000;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-right: 1em;
}

.t-gris {
  color: #999;
  display: flex;
  align-items: center;
}

.t-gris span {
  margin-right: .5em;
  font-size: 18px;
}

.social-link {
  opacity: .6;
  /* padding: 0 .25em;; */
}

.social-link img {
  height: 18px;
  margin: 0;
}

.social-link:hover {
  opacity: 1;
}



/* TABS */

.tabs-container {
  display: flex;
}

.tabs {
  min-width: 150px;
}

.tab-btn {
  /* border: .01em solid; */
  background-color: #ddd;
  color: #000;
  padding: .5em 1em;
  border-radius: 3px;
  margin: .5em;
  transition: background-color .3s ease-in-out;
  text-align: center;
  /* transition: color .3s ease-in-out; */
}

.tab-btn:hover {
  cursor: pointer;
  background-color: #aaa;
  /* color: blue; */
  /* font-weight: bold; */
}
.tab-btn.active {
  /* color: #000; */
  background-color: #000;
  color: #fff;
  border-color: #000;
  /* font-weight: bold; */
}

.tab-content {
  display: none;
  width: 100%;
  /* flex: 1; */
}
.tab-content.active {
  display: block;
}

.bottom-tabs {
  display: flex;
  justify-content: space-between;
  padding: 1em 0;
  width: 100%;
}

.bottom-tabs .tab-btn {
  margin: 0;
}


/* small screens */
@media (max-width: 700px) {

  html, body {
    height: 100%;
  }

  header {
    padding-bottom: 1em;
    margin-bottom: .5em;
  }

  .posts {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
  }

  .page-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 1em auto;
    padding: 1em;
    display: flex;
    flex: 1;
    flex-direction: column;
    /* overflow: auto; */
  }
  main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    /* display: block; */
  }
  nav {
     padding: -.25em;
     padding-top: 0;
  }
  .tabs-container {
    display: block;
    /* flex: 1; */
    position: absolute;
    overflow: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; 

  }
  .tab-content {
    /* position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; */
    padding-bottom: 3em;
  /* scroll-behavior: smooth; */


  }
  .tabs {
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1em;
  }
  .tab-btn {
    font-size: 12px;

    margin: .25em;
  }
  section {
    padding: .5em;
    overflow-y: auto;
  }
}

.posts {
  width: 100%;
  /* display: flex;
  flex-wrap: wrap; */
  gap: 2em;
  padding: 2em 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
/* 
.posts div {
  flex: 1;
} */

.post h2 {
  font-size: 20px;
  margin-bottom: 0;
  /* color: #888; */
}



.img img {
  width: 100%;
  margin: 1em 0;
  object-fit: cover;
  max-height: 150px;
}

.post {
  /* min-width: 250px;
  max-width: 350px; */
  /* flex: 1; */
  padding: 1em 2em;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 4px;
}

.post:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.post .date {
  font-size: 14px;
  color: #888;
}