@import "./reset.css";
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

:root{
  --black: #1F2125;
  --yellow: #FFBD01;
  --white: #FFFFFF
}

*{
  color: var(--black);
  font-family: "IBM Plex Mono", monospace;
}
body{
  background-color: var(--white);
  position: relative;
}

/*header*/
.header{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  background-color: var(--black);
  border-bottom: 2px solid var(--yellow) ;
  z-index: 30;
  position: sticky;
  top: -192px;
  padding: 10px 40px 0 ;
}
.header__logo__img{
  max-width: 100px;
  border-radius: 9px;
}
.header__logo{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}
.btn{
  background-color: var(--yellow);
  text-align: center;
  display: block;
  position: relative;
  font-weight: 600;
  padding: 10px 15px;
  font-size: 15px;
  border: 1px solid var(--yellow);
  transition: all .3s ease-in-out;
}
.btn:hover{
  background-color: var(--black);
  color: var(--yellow);
}
.nav-list__item{
  position: relative;
  transition: all .3s ease-in-out;
  padding: 5px 15px;
}
.nav-list__item--plus:before{
  content: "\27A4";
  position: absolute;
  color: var(--white);
  transform: rotate(90deg);
  top: 6px;
  left: -1px;
  transition: all 0.3s ease-in-out;
  scale: .7;
}
.nav-list__sup-menu{
  position: absolute;
  top: 31px;
  left: 0;
  background-color: var(--black);
  visibility: hidden;
  opacity: 0;
}
.nav-list__item:hover{
  background-color: var(--yellow);
}
.nav-list__item:hover > a {
  color: #fff;
}
.nav-list__item:hover > .nav-list__sup-menu{
  visibility: visible;
  opacity: 1;
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 99;
}
.nav-list {
  width: 100%;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-list__item > a {
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition:all 0.3s ease-in-out;
  color: var(--yellow);
}

#nav-check {
  display: none;
}
/*header end*/
/*main start*/
.main{
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 50px;
  background-color: var(--white);
  /*position: relative;*/
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 30px;
}
.sidebar{
  position: relative;
  width: 100%;
  min-width: 350px;
}
.content{
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  margin-bottom: 50px;
}
.up{
  position: absolute;;
  top: 0;
  left: 0;
}
/*.content:after{
  content: "";
  position: absolute;
  background-color: rgba(31, 33, 37, 0.84);
  width: 30%;
  height: 1px;
  bottom: 120px;
  left: 35%;
  transform: translateY(-50%);

}*/
.content__name__page{
  font-size: 14px;
  color: rgba(31, 33, 37, 0.8);
}
.content__title{
  font-size: 40px;
  font-weight: 700;
}
#main-content h2, #main-conten h3, #main-conten h4, #main-conten h5{
  font-size: 28px;
}
#main-content p {
  line-height: 26px;
}
#main-content ul{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#main-content ul>li{
  padding-left: 15px;
  margin-left: 20px;
  position: relative;
}
#main-content ul>li:before{
  position: absolute;
  content: "\2022";
  top: 0;
  left: 0;
}
.content__importantly{
  padding: 10px 0 10px 10px;
  border-left: 2px solid var(--yellow);
  font-style: italic;
}

#main-content ul__num > li{
  margin-left: 50px;
}
.content__img{
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
}
.content__img--mobile{
  max-width: fit-content;
}
.btn--content--down{
  margin-top: 65px;
}
.sidebar__block>img{
  position: relative;
  transition: all .3s ease-in-out;
}
.sidebar__block:after{
  position: absolute;
  content: "HIT NEWS";
  width: fit-content;
  height: fit-content;
  font-size: 14px;
  color: white;
  background-color: #0389FF;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
}
.sidebar__block>img:hover{
  cursor: pointer;
  opacity: .85;
}
.sidebar__inner{
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sidebar__block{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar__block__title{
  font-weight: 800;
  transition: all .3s ease-in-out;
}
.sidebar__block__title:hover{
  color: var(--yellow);
  cursor: pointer;
}
.sidebar__block__date{
  font-size: 12px;
  position: relative;
  padding-left: 20px;
  color: rgba(31, 33, 37, 0.8);
}

.sidebar__block__date svg{
  scale: .4;
  position: absolute;
  bottom: -5px;
  left: 0;
}
.sidebar__down{
  width: 50%;
  margin-top: 50px;
  font-size: 14px;
  color: rgba(31, 33, 37, 0.8);
}
.sidebar__down>a{
  color: var(--yellow);
  transition: all .3s ease-in-out;
}
.sidebar__down>a:hover{
  color: var(--black);
}
/*main end*/
/*footer*/
.footer{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 5px 10px;
}
.footer__list{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.footer__text{
  font-size: 14px;
  text-align: center;
}

/*media*/
@media (max-width: 1100px) {
  .sidebar {
    min-width: 250px;
  }
  .sidebar__block:after {
    font-size: 8px;
    top: 5px;
    right: 5px;
    padding: 3px 5px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    min-width: 170px;
  }
  .main {
    padding: 20px 20px;
    gap: 20px;
  }
  .sidebar__down {
    width: 90%;
  }
}
@media (max-width: 700px) {
  .nav-list__item > a,
  .btn,
  #main-content p,
  .sidebar__block__title{
    font-size: 14px;
    line-height: 20px;
  }
}
@media (max-width: 650px) {
.nav > .nav-btn {
  display: inline-block;
  position: absolute;
  right: 0;
  top: 22px;
  padding-top: 0.2rem;
}
.nav > .nav-btn > label {
  display: inline-block;
  width: 50px;
  height: 50px;
  padding: 13px;
}
.nav > .nav-btn > label > span {
  display: block;
  width: 25px;
  height: 10px;
  border-top: 2px solid #eee;
}
  .nav > .nav-list {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    background-color: var(--white);
    height: 0;
    transition: all 0.3s ease-in;
    top: 109px;
    left: 0;
    overflow: hidden;
    padding-left: 20px;
  }
  .nav > .nav-list > li {
    width: fit-content;
    margin-top: 15px;
  }
  .nav > #nav-check:checked ~ .nav-list {
    height: calc(100vh - 75px);
    overflow: auto;
    justify-content: flex-start;
  }
  .header__logo {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 10px;
  }
  .header__logo__img{
    scale: .5;
  }
  .header {
    z-index: 30;
    top: 0;
  }
  .nav {
    align-items: flex-start;
    z-index: 99;
  }
  .nav-list__item a{
    color: var(--black);
    border-bottom: 1px solid rgba(31, 33, 37, 0.2);
  }
.nav-list__sup-menu{
    background-color: #1F2125;

  }
  .nav-list__sup-menu a{
    color: white;
  }
  .nav-list__item--plus:before {
    content: "\27A4";
    position: absolute;
    color: var(--black);
    transform: rotate(0deg);
    width: 10px;
    height: 10px;
    top: 9px;
    left: 86px;
    transition: all 0.3s ease-in-out;
    scale: .7;
  }
  .nav-list__sup-menu {
    top: -19px;
    left: 89px;
  }
  .main {
    padding: 20px 20px;
    flex-direction: column;
    gap: 30px;
  }
  .sidebar__inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .sidebar__block{
    width: calc(100% / 2 - 30px);
  }
}
@media (max-width: 650px){
  .sidebar__block {
    width: 100%;
  }
}
