@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto+Slab:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    width: 100vw;
    background: linear-gradient(180deg, #040918 0%, #091540 100%);
    font-size: 16px;
    font-family: "Roboto Slab", serif;
    font-weight: 500;
}
.container-mid {
    width: 80%;
    margin: 0 auto;
}
.header {
    padding: 15px;
    background: hsl(225, 23%, 24%);
    border-radius: 20px;
    margin-top: 20px;
}

.header_div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header_icon {
    width: 35px;
    height: 35px;
    background: hsl(226, 11%, 37%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.hero_h1 {
    color: #fff;
}
.hero_button button{
    margin-left: 5px;
    background-color: hsl(225, 23%, 24%);
    padding: 10px 15px;
    border-radius: 20px;
    border: none;
    color: #fff;
}
.hero_button button:first-of-type {
    background-color:hsl(3, 71%, 56%);
    color: #000;
}

.container {
    margin-top: 20px;
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}
.box {
    background-color:hsl(226, 25%, 17%);
    padding: 10px;
    border-radius: 10px;
    height: 160px;
    border: 1px solid hsl(0, 0%, 78%,0.2);
    
}
.box_content {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}
.box_img img{
    width: 80%;
}
.box_text h2 {
    color: #fff;
    font-size: 1rem;
}
.box_text p {
    font-size: 0.9rem;
    opacity: 50%;
    line-height: 1.3;
    margin-top: 0.5rem;
    color: #fff;
}
.box_buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.box_buttons button:first-of-type {
    background-color: hsl(226, 25%, 17%);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 10px;
    border: 1px solid hsl(0, 0%, 78%,0.2);
    color: #fff;
}
.box_buttons button:last-of-type {
    width: 20px;
    height: 20px;
    border-radius: 20px;
    padding: 5px 20px;
    border: none;
    background: hsl(3, 71%, 56%);
    position: relative;
    overflow: hidden;
    
}
.box_buttons button:last-of-type::after {
    content: '';
    width: 50%;
    height: 100%;
    background: #fff;   
    position: absolute;
    top: 0;
    border-radius: 50%;
}

.box:nth-of-type(3) .box_buttons > button:last-of-type::after {
 left: 0;
}
.box:nth-of-type(3) .box_buttons > button:last-of-type{
    background: hsl(226, 11%, 37%);
   }
   .box:nth-of-type(6) .box_buttons > button:last-of-type::after {
    left: 0;
   }
   .box:nth-of-type(6) .box_buttons > button:last-of-type{
       background: hsl(226, 11%, 37%);
      }
   
      .box:nth-of-type(8) .box_buttons > button:last-of-type::after {
        left: 0;
       }
       .box:nth-of-type(8) .box_buttons > button:last-of-type{
           background: hsl(226, 11%, 37%);
          }
          .box:nth-of-type(11) .box_buttons > button:last-of-type::after {
            left: 0;
           }
           .box:nth-of-type(11) .box_buttons > button:last-of-type{
               background: hsl(226, 11%, 37%);
              }
           
           @media(max-width:768px) {
            .hero {
                flex-direction: column;
            }
            .hero_button {
                margin-top: 10px;
            }
           }
       
       

