:root {
    --border-color-target: #04080F;
}

.listing {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.article-toolrow {
  text-align: center;
  background-color: #FFFFFF;
  width: fit-content;
  margin: auto;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0px 0px 8px -2px #04080F;  
}

.article {
  perspective: 999px;
  background-color: transparent;
  width: 246px;
  height: 455px;
  position: relative;
  margin: 20px;
  border: solid 8px #04080F00;
  border-radius: 15px;
  transition: 0.1s;
}
  
.article a {
  text-decoration: none;
  color: #04080F;
}

.article:target, .article-target {
  border-color: var(--border-color-target);
}

.article-inner {
  position: relative;
  width: 230px;
  height: 439px;
  border-radius: 7px;
  background-color: transparent;
  transition: 0.5s;
  transform-style: preserve-3d;
}

.article-front {
  z-index: 1;
  background-color: #FFF;
  position: absolute;
  width: inherit;
  height: inherit;
  border-radius: 7px;
  box-shadow: 0px 0px 8px -2px #04080F;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: 0.1s;
}

.article-front:hover {
  box-shadow: 0px 0px 0px 8px #04080F;
}

.article-front-img-wrapper {
  display: block;
  background: #FFF;
  width: 230px;
  height: 260px;
  margin: 0;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  text-align: center;
}

.article-front-img-wrapper img {
  height: 100%;
  width: 90%;
  object-fit: scale-down;
}

.article-front-info {
  width: 230px;
  height: 165px;
  background: #FFF;
  color: #04080F;
  padding: 0 10px;
  text-align: center;
  border-radius: 0 0 7px 7px;
}

.article-front-info-title {
  height: 82px;
  margin-bottom: 5px;
  overflow: auto;
  scrollbar-width: thin;
  font-size: 1.4em;
  display: block;
}

.article-front-info-title a {
  color: inherit;
}

.article-front-info-title small {
  font-size: 0.55em;
  font-weight: normal;
  color: #04080F;
  text-align: left;
}

.article-front-info-btn {
  background: #FAFAFA;
  color: #04080F;
  font-size: 1.6em;
  display: inline-block;
  width: 44px;
  border: 4px solid #04080F;
  border-radius: 22px;
  padding: 1px 0px;
  vertical-align: bottom;
  cursor: pointer;
}

/*


Tooltip


*/

.article-front-info-btn::after {
  content: "Klicka för mer info";
  position: absolute;
  bottom: 97px;
  left: 7px;
  color: #FFF;
  background-color: #04080F;
  padding: 5px 10px;
  font-size: 0.7em;
  visibility: hidden;
  opacity: 0;
  transition: 0.5s;
  border-radius: 15px;
}

/*


Tooltip arrow


*/

.article-front-info-btn::before {
  content: "";
  position: absolute;
  bottom: 85px;
  left: 30px;
  margin-left: -5px;
  border-width: 7px;
  border-style: solid;
  border-color: #04080F transparent transparent transparent;
  visibility: hidden;
  opacity: 0;
  transition: 0.5s;
}

.article-front-info-btn:hover {
  background: #e0e0e0;
}

.article-front-info-btn:hover::after, .article-front-info-btn:hover::before {
  visibility: visible;
  opacity: 1;
}

.article-front-info-btn:active {
  background: #04080F;
  color: #FAFAFA;
  border-color: #FAFAFA;
}

.article-front-price {
  background: #375C90;
  color: #FFF;
  font-size: 1.2em;
  display: inline-block;
  width: 161px;
  padding: 5px 13px;
  border: 4px solid #04080f;
  border-radius: 15px;
  vertical-align: bottom;
}

.article-front-copy-btn {
  background: #FAFAFA;
  color: #04080F;
  padding: 5px;
  font-size: 1.2em;
  margin-top: 5px;
  border: solid 4px #04080F;
  border-radius: 15px;
  display: block;
}

.article-front-copy-btn:hover {
  background: #e0e0e0;
}

.article-front-copy-btn:active {
  background: #04080F;
  color: #FAFAFA;
  border-color: #FAFAFA;
}

.article-back {
  position: absolute;
  width: inherit;
  height: inherit;
  border-radius: 7px;
  box-shadow: 0px 0px 8px -2px #04080F;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  background-color: #FFF;
  padding: 10px;
  transition: 0.1s;
}

.article-back-zindex-up {
  z-index: 1;  
}

.article-back:hover {
  box-shadow: 0px 0px 0px 8px #04080F;
}

.article-back-info {
  padding: 0 10px 10px;
  overflow: auto;
  margin-top: 10px;
  margin-bottom: 5px;
  height: 368px;
  scrollbar-width: thin;    
}

.article-back-info a {
  text-decoration: underline; 
  color: #04080F;
}

.article-back-info a:visited {
  color: #233B5D;
}

.article-back-info a:hover {
  color: #375C90;
}

.article-back-info a:active {
  color: #548CDC;
}

.article-back-info > p {
  margin-top: 0;
}

.article-back-info-back-btn {
  background: #FAFAFA;
  text-align: center;
  color: #04080F;
  font-size: 1.1em;
  width: 210px;
  border: solid 4px #04080F;
  border-radius: 15px;
  padding: 5px;
  display: block;
  cursor: pointer;
}

.article-back-info-back-btn:hover {
  background: #e0e0e0;
}

.article-back-info-back-btn:active {
  background: #04080F;
  color: #FAFAFA;
  border-color: #FAFAFA;
}

.article-flip .article-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);  
}

.pagination {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
}

.page-item {
  background: #FAFAFA;
  color: #04080F;
  padding: 5px 0px;
  font-size: 1.2em;
  margin: 0;
  border: solid 4px #04080F;
  border-radius: 15px;
  display: block;
}

.page-item.disabled {
  color: #04080f46;
  border: solid 4px #04080f46;
  pointer-events: none;
}

.page-item.disabled a {
  color: #04080f46;
}

.page-item.active, .page-item.active a {
  background: #375C90;
  color: #FFF;
}

.page-item.active:hover {
  background: #375C90;
  color: #FFF;
}

.page-item a {
  text-decoration: none;
  color: #04080F;
}

.page-item:hover {
  background: #e0e0e0;
}

.page-link {
  padding: 5px 15px;
  border-radius: inherit;
}