/* For small screens (mobile devices) */
@media only screen and (max-width: 992px) {
  .search-results {
    margin-top: 20px;
    /* make 3 columns */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .container-results {
    justify-content: center;
    align-items: center;
  }

  .watch-button {
    color: white;
    /* prevernt text overflow */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }

  .search-header {
    text-align: center;
  }

  .search-header h1 {
    font-size: 24px;
  }

  .search-header p {
    font-size: 16px;
  }

  .search-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  .search-pagination button {
    margin: 0 5px;
    padding: 10px 15px;
    border: none;
    background-color: #4caf50;
    color: white;
    cursor: pointer;
  }
  .search-pagination button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
  }
  .pagination p {
    margin: 0;
    background-color: #273b85;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
  }
  .pagination p.disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  .pagination p.selected {
    background-color: #1d2955;
    text-decoration: solid;
  }

  .pagination p:hover {
    background-color: #1d2955;
  }
  .search-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    overflow: clip;
    top: 2px;
  }

  .search-bar {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    width: 100%;
  }
  .search-bar form {
    width: 100%;
  }

  .search-bar input {
    padding: 10px;
    border-radius: 10px;
    border: none;
    margin-right: 10px;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    color: whitesmoke;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5;
  }

  .search-bar form svg {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: whitesmoke;
    z-index: 5;
  }

  .ads-container {
    display: none;
  }
  .menu-bar-mobile {
    display: flex;
    justify-content: space-between;
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: whitesmoke;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
  }
  .sidebar {
    display: none;
  }
  .container-results {
    justify-content: center;
    align-items: center;
    margin-bottom: 5rem;
  }
  body {
    font-family: "Outfit", serif;
    /*unscrollable*/
    overflow-x: hidden;
    color: whitesmoke;
    margin-left: auto;
    margin-right: auto;
    /* center the container */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .mobile-ads {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* For large screens (desktops) */
@media only screen and (min-width: 993px) {
  body {
    font-family: "Outfit", serif;
    /*unscrollable*/
    overflow-x: hidden;
    color: whitesmoke;
    margin-left: 10rem;
    margin-right: 10rem;
    /* center the container */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .mobile-ads {
    display: none;
  }

  .ads-container {
    /* 2x2 grid */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
  }

  div#atContainer-d10d6c5a4518a45ad1bdf5476af005f3 {
    /* center the container */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .search-results {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .container-results {
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 3rem;
  }

  .watch-button {
    color: white;
    /* prevernt text overflow */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }

  .search-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  .search-pagination button {
    margin: 0 5px;
    padding: 10px 15px;
    border: none;
    background-color: #4caf50;
    color: white;
    cursor: pointer;
  }
  .search-pagination button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
  }
  .pagination p {
    margin: 0;
    background-color: #273b85;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
  }
  .pagination p.disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  .pagination p.selected {
    background-color: #1d2955;
    text-decoration: solid;
  }

  .pagination p:hover {
    background-color: #1d2955;
  }

  .search-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    overflow: clip;
    top: 2px;
  }

  .search-bar {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    width: 75vw;
  }
  .search-bar form {
    width: 100%;
  }

  .search-bar input {
    padding: 10px;
    border-radius: 10px;
    border: none;
    margin-right: 10px;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    color: whitesmoke;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5;
  }

  .search-bar form svg {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: whitesmoke;
    z-index: 5;
  }
}
