html {
  font-size: 10px;
}

body {
  background-color: rgb(31, 31, 31);
    font-size: 3.2rem;
    display: flex;
    padding: 0;
    margin: 0;
    flex-direction: column;
    align-items: center;
  }

@media screen and (max-width: 768px) {
  html{
    font-size: 5px;
  }
}

  @media screen and (max-width: 480px) {
    .category img{
      display: none;
    }

    .main{
      flex-direction: row !important;
    }

    .categories{
      flex-direction: column;
    }

    html{
    font-size: 5px;
    }

    .category {
      font-size: 4rem;
      border: 1rem solid rgb(14, 14, 14);
      background-color: #cccccc;
      border-radius: 2rem;
      margin-bottom: 1rem;
      border: 
    }
  }

  /* Header Section */
  .header {
    display: flex;
    justify-content: center;
    width: 90%;
  }
  
  /* Search Bar */
  .searchbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: rgb(72, 72, 72);
    width: 80%;
    height: 5rem;
    padding: 0;
    margin-top: 10px;
    border-radius: 15px;
  }
  
  .searchbar_icon {
    width: 5rem;
    height: 5rem;
  }

  .search-input {
    font-size: 3.2rem;
    padding: 0;
    margin: 0;
    border: none;
    background-color: rgb(72, 72, 72);
  }

  .search-input::placeholder {
    color: white;
  }

  .search-input:focus {
    border: none;
    outline: none;
  }
  
  /* Login Section */
  .login {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(0, 0, 0);
    padding: 0rem 1.6rem;
    margin-top: 10px;
    position: absolute;
    right: 0;
  }
  
  /* Main Layout */
  .main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Portrait Layout */
  .portrait {
    color: white;
    margin: 5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .portrait img{
    width: 25rem;
    height: auto;
  }

  .portrait p {
    font-size: 6.4rem;
    margin: 0px 0px 30px 0px;
  }

  /* Categories */
  .categories {
    display: flex;
    justify-content: center;
    margin: 0rem;
    width: 100%;
  }
  
  .category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .category_image{
    border: 1rem solid rgb(14, 14, 14);
    border-radius: 2rem;
    width: 25.6rem;
    height: auto;
  }

  a {
    height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;

  }

  /* unvisited link */
a:link {
  color: red;
}

/* visited link */
a:visited {
  color: rgb(255, 255, 255);
}

/* mouse over link */
a:hover {
  color: rgb(13, 0, 255);
}

/* selected link */
a:active {
  color: rgb(255, 255, 255);
}