/**
 * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com).
 *
 * WSO2 LLC. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

.paginationRow {
  margin: 1.5rem 1.25rem;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: rgba(216, 73, 73, 0.2); */
  width: 100%;
  font-weight: 500;
  font-size: 15px;
}

.pagination-container a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(8, 18, 71, 1);
  /* padding: 8px 14px; */
  height: 2.25rem;
  width: 2.25rem;
  text-decoration: none;
  transition: background-color 0.2s;
  border: 1px solid #ddd;
  cursor: pointer;
}

.pagination-container a.active {
  background-color: rgba(8, 18, 71, 1);
  color: white;
  border: 1px solid rgba(8, 18, 71, 1);
}

.pagination-container a.disabled {
  opacity: 0.2;
}
.pagination-container a:hover:not(.active) {
  background-color: rgb(238, 238, 238);
}

.postsPerPageCol {
  margin-left: 7rem;
  display: flex;
}

.dropdown-menu {
  min-width: 5rem;
}

#postsPerPageDropdown {
  background-color: white;
  color: rgba(8, 18, 71, 1);
  border: 1px solid rgba(8, 18, 71, 1);
  border-radius: 15px;
  padding: 0.25em 0.7em;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  margin-left: 1rem;

  -webkit-box-shadow: 2px 4px 15px -9px rgba(0, 0, 0, 0.53);
  box-shadow: 2px 4px 15px -9px rgba(0, 0, 0, 0.53);
}

#postsPerPageDropdown[aria-expanded="true"] {
  color: white;
  background-color: rgba(8, 18, 71, 1);
  transition: all ease-in-out 0.2s;
  text-decoration: none;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  cursor: pointer;
}

.pagination a {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid rgba(8, 18, 71, 1);
  color: rgba(8, 18, 71, 1);
}

.pagination__link {
  font-weight: bold;
}

.pagination__link--active a {
  color: #fff;
  background: rgb(135, 149, 191);
}

.pagination__link--disabled a {
  color: rgb(198, 197, 202);
  border: 1px solid rgb(198, 197, 202);
}
