/* CUSTOM PROPERTIES */

:root {
  /* color */

  --raisin-black-2: hsl(245, 16%, 16%);
  --raisin-black-1: hsl(244, 17%, 19%);
  --majorelle-blue: hsl(245, 67%, 59%);
  --ghost-white-1: hsl(240, 100%, 99%);
  --ghost-white-2: hsl(228, 50%, 96%);
  --white-opacity: hsla(0, 0%, 100%, 0.5);
  --independence: hsl(245, 17%, 27%);
  --lavender-web: hsl(247, 69%, 95%);
  --eerie-black: hsl(210, 11%, 15%);
  --cool-gray: hsl(244, 17%, 61%);
  --sapphire: hsl(211, 100%, 35%);
  --white: hsl(0, 0%, 100%);

  /* Typography */

  --ff-quicksand: "Quicksand", sans-serif;
  --ff-mulish: "Mulish", sans-serif;

  --fs-1: 36px;
  --fs-2: 28px;
  --fs-3: 20px;
  --fs-4: 17px;
  --fs-5: 16px;
  --fs-6: 15px;
  --fs-7: 14px;
  
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /* transition */

  --transition: 0.25s ease;

  /* Spacing */

  --section-padding: 80px;
}

body {
    font-family: var(--ff-mulish);
    background: var(--ghost-white-2);
    color: var(--cool-gray);
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  .main {
    max-width: 1200px;
    margin: 100px auto;
  }
  
  .projects {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .projects_item {
    display: flex;
    padding: 1rem;
  }
  
  .project_image {
    position: relative;
    max-height: 250px;
  }
  
  .project_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .project_price {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 0.25rem;
    background-color: var(--majorelle-blue);
    font-size: 18px;
    font-weight: 700;
  }
  
  .project_price span {
    font-size: 12px;
    margin-top: -2px;
  }
  
  .note {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 0.25rem;
    background-color: var(--majorelle-blue);
    font-size: 14px;
    font-weight: 700;
  }
  
  @media (min-width: 40rem) {
    .projects_item {
      width: 50%;
    }
  }
  
  @media (min-width: 56rem) {
    .projects_item {
      width: 33.3333%;
    }
  }
  
  .project {
    background: var(--white);
    border-radius: 0.25rem;
    box-shadow:  hsla(245, 67%, 59%, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .project_content {
    position: relative;
    padding: 16px 12px 32px 24px;
    margin: 16px 8px 8px 0;
    max-height: 290px;
    overflow-y: scroll;
  }
  
  .project_content::-webkit-scrollbar {
    width: 8px;
  }
  
  .project_content::-webkit-scrollbar-track {
    box-shadow: 0;
    border-radius: 0;
  }
  
  .project_content::-webkit-scrollbar-thumb {
    background: var(--majorelle-blue);
    border-radius: 15px;
  }
  
  .project_title {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
  }
  
  .project_title::after {
    position: absolute;
    display: block;
    width: 50px;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--majorelle-blue);
    content: "";
  }
  
  hr {
    margin: 24px auto;
    width: 50px;
    border-top: 2px solid var(--majorelle-blue);
  }
  
  .project_text p {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
  }
  
  .project_text p:last-child {
    margin: 0;
  }
  