@import url(./fonts/fonts.css);

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --main-ff: "Geologica";
  --secondary-clr: #ffaf40;
  --header-box-shadow: 0 0 16px rgba(95, 95, 95, 0.1);
  --box-shadow: 0 0 16px rgba(95, 95, 95, 0.1);
  --body-bg: #ccc;
  --white: #f5f5f5;
  --black: #161616;

  --nav-link-underline-clr: #c8c8c8;

  --scrollbar-track-clr: #ebebeb;
  --scrollbar-thumb-clr: #cdcdcd;
  --scrollbar-thumb-hover-clr: #a9a9a9;
}

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

body {
  font-family: var(--main-ff);
  background: var(--body-bg);
  padding-top: 90px;
  color: var(--black);
}

.container {
  position: relative;
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
}

.header__container {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: var(--white);
  box-shadow: var(--box-shadow);
  z-index: 100;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.header__breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header__breadcrumbs__link {
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s;
}

.header__breadcrumbs__link:hover {
  color: var(--secondary-clr);
}

.spacer {
  margin: 0 10px;
}

.header__logo {
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  height: 30px;
}

.header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header__logo:hover {
  color: var(--black);
}

.main {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.content__container {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}

.content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  width: 100%;
}

.content img{
  max-width: 100% !important;
}

.content a{
  color: var(--secondary-clr);
  text-decoration: underline!important;
}

.content a:hover,.content a:active,.content a:focus{
  text-decoration: none!important;
}

.content__image__container {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.content__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content__text, .content p  {
  font-weight: 300;
  margin-bottom: 5px;
}

.content__container__title {
  font-size: 2rem;
  line-height: 2.4rem;
  font-weight: 700;
  color: var(--black);
  padding: 10px 20px;
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #ccc;
}

.content__heading,.content h2{
  font-size: 1.6rem;
  margin: 20px 0;
  font-weight: 700;
}

.content__unordered__list,.content ul {
  font-weight: 300;
  margin: 10px 0;
  padding: 0 0 0 30px;
  list-style-type: disc;
}

.content__ordered__list,.content ol {
  font-weight: 300;
  margin: 10px 0;
  padding: 0 0 0 32px;
}

.content__unordered__list__item, .content ul li {
  padding: 2px 0 2px 5px;
}

.content__ordered__list__item, .content ol li {
  padding: 2px 0 2px 2px;
}

.content__link {
  transition: 0.2s;
  margin: 3px 0;
}

.content__link:hover {
  color: var(--secondary-clr);
}

.nav__container {
  flex-shrink: 0;
  width: 420px;
  height: 550px;
  display: flex;
  flex-direction: column;
  position: sticky;
  right: 0;
  gap: 10px;
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  top: 90px;

  box-shadow: var(--box-shadow);
}

.nav__container__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-clr);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track-clr);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-clr);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover-clr);
}

.nav {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  padding-right: 5px;
}

.nav__link {
  font-size: 0.95rem;
  border-bottom: 1px solid var(--nav-link-underline-clr);
  transition: 0.2s;
  padding: 10px 0;
  font-weight: 500;
}

.nav__link:hover {
  color: var(--secondary-clr);
}

.grid {
  margin: 10px 0 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 8px;
  gap: 10px;
}

.grid__extended {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px auto 0;
}

.grid__item {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--box-shadow);
  position: relative;
  transition: 0.2s;
}

.grid__item-extended {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: unset !important;
  overflow: hidden;
  min-height:300px;
}

.grid__item-extended .grid__item__link {
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    z-index: 1;
}

.grid__item-extended .grid__item__link span{
    margin-top:auto;
    margin-bottom:1.5rem;
    padding:0 20px;
}

.grid__item-extended .grid__item__link:before{
    content:'';
    display:block;
    position: absolute;
    top:0;
    left:0;
    width:100%;
    bottom:0;
    background:rgba(0,0,0,0.3);
    z-index:-1;
}

.grid__item-extended:hover .grid__item__link {
  color: var(--white) !important;
}

.grid__item-extended img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  transition: 0.5s;
  z-index: -2;
}

.grid__item__line {
  display: flex;
  align-items: flex-start;
}

.grid__item__icon {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 15px;
  height: 15px;
  margin-right: 3px;
}

.grid__item__link {
  transition: 0.2s;
  text-align: center;
}

.grid__item:hover .grid__item__link {
  color: var(--secondary-clr);
}

.grid__item:hover {
  box-shadow: 0 0 0 2px var(--secondary-clr);
}

.grid__item-extended:hover {
  box-shadow: unset;
  background: unset;
}

.grid__item-extended:hover img {
  transform: scale(1.05);
}

.footer__container {
  width: 100%;
  padding: 30px 0;
  margin-top: 30px;
  background: var(--white);
  box-shadow: var(--box-shadow);
}

.footer {
  display: flex;
  justify-content: space-between;
}

.footer__text {
  font-size: 0.9rem;
  font-weight: 300;
}

.footer__link {
  font-size: 0.9rem;
  transition: 0.2s;
}

.footer__link:hover {
  color: var(--secondary-clr);
}

@media screen and (max-width: 1450px) {
  .container {
    padding: 0 40px;
  }
}

@media screen and (max-width: 1000px) {
  .main {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
  }
  .nav__container {
    position: static;
    max-width: 820px;
    width: 100%;
    height: auto;
    max-height: 550px;
    margin-top:10px;
  }
  .content__container{
      margin-top:10px;
  }
  .grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 900px) {
  body {
    padding-top: 70px;
  }
  .container {
    padding: 0 10px;
  }
  .header__logo {
    margin-left: 10px;
  }
  .header__breadcrumbs {
    justify-content: flex-end;
  }
  .empty {
    display: none;
  }
  .footer {
    padding: 0 10px;
  }
}

@media screen and (max-width: 800px) {
  .grid,.grid__extended {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .grid,.grid__extended {
    grid-template-columns: repeat(1, 1fr);
  }
  .header__breadcrumbs {
    display: none;
  }
  .grid__item-extended{
      min-height:200px;
  }
}
