@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
    --swiper-preloader-color: #445a7d;
}

/* General body formatting*/

html {
    scroll-padding-top: 250px;
    scroll-behavior: smooth;
}

body {
    background-color: #dcdcdc;
}

.description {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 5px;
    color: #243043;
}

.description h1 {
    font-size: 40pt;
    font-weight: 900;
    margin: 15px;
}

.description .subheading {
    font-size: 23pt;
    font-weight: 500;
}

.description .description-content {
    max-width: 900px;
    margin: 20px;
}

.search-bar-container {
    display: flex;
    max-width: 400px;
    position: sticky;
    top: 150px;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    margin: auto;
    margin-bottom: 30px;
    z-index: 1000;
    transition: linear 0.05s;
}

.search-bar-container .search-bar {
    display: flex;
    width: 410px;
    height: 50px;
}

.search-bar-container .search-bar input {
    display: flex;
    flex: 1;
    font-size: 16px;
    padding: 10px;
    max-width: 100%;
    height: 100%;
    border-radius: 50px 0 0 50px;
    border-style: none;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
}

.search-bar-container .search-bar input[type="text"] {
    text-indent: 10px;
}

.search-bar-container .search-bar button {
    position: relative;
    height: 100%;
    width: 50px;
    background-color: #ffffff;
    border-radius: 0 50px 50px 0;
    border-style: none;
    cursor: pointer;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
}

.search-bar-container .search-bar button::before {
    content: "";
    display: block;
    background-image: url(../ASSETS/SEARCH_ICON.svg);
    background-position: center;
    background-size: 50%;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
    max-width: 100%;
    height: 100%;
    transform: scaleX(-1);
    opacity: 60%;
    transition: ease-in-out 200ms;
}

.result-box {
    max-height: 30vh;
    overflow-y: scroll;
}

.result-box ul{
    background-color: #ffffff;
    width: 400px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
    margin: 5px 0 0 0;
    padding: 15px 10px;
    border-radius: 8px;
}

.result-box ul li {
    list-style: none;
    border-radius: 3px;
    padding: 10px 15px;
    cursor: pointer;
    
}

.result-box ul li:hover {
    background-color: #eeeeee;
}

.search-bar-container .search-bar button:hover::before {
    opacity: 1;
}

.search-bar-container .search-bar input:focus {
    outline: none; 
}

.search-bar-container .search-bar input:focus::placeholder {
    color: transparent;
}

.state-name h1{
    display: flex;
    font-weight: 800;
    font-size: 40pt;
    padding: 20px;
    background-color: #243043;
    color: #dcdcdc;
    text-decoration: underline;
    text-underline-offset: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
    justify-content: center;
    text-align: center;
}

.swiper-card-viewport {
    contain: content;
    overflow: hidden;
    margin: 0 60px 0 60px;
    padding-bottom: 20px;
}

.swiper-container.swiper {
    position: relative;
    overflow: visible ;
    padding-bottom: 40px;
    margin: 0;
    width: 100%;
}

.swiper-container .swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: visible;
    position: relative;
}

/* General card formatting bellow */

.swiper-container .card {
    list-style: none;
    padding:  20px 15px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    transition: transform 0.3s ease, opacity 0.3s ease; 
}

.swiper-lazy-preloader {
  width: 42px;
  height: 42px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -21px;
  margin-top: -21px;
  z-index: 10;
}

/* Bad card border formatting */

.deck .card .card-frame {
    user-select: none;
    display: block;
    text-align: center;
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
    transition: 0.2s ease;
}

.deck .card.bad .card-frame:hover {
    border-color: #445a7d;
}

.deck .card.good .card-frame:hover {
    border-color: #b700b7;
}

.deck .card.monitor .card-frame:hover {
    border-color: #741b47ff;
}

.deck .card-frame .image-container {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
}

.deck .card-frame .card-face {
    max-width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.deck .card-frame .role {
    font-weight: 600;
}

.card.bad .card-frame .name {
    color: #445a7d;
}

.card.good .card-frame .name {
    color: #dc00dc;
}

.card.monitor .card-frame .name {
    color: #741b47ff;
}

.deck .card-frame .download-button {
    display: block;
    height: 35px;
    width: 35px;
    font-size: 20px;
    margin: 15px auto 0;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    transform: rotate(90deg);
    transition: 0.4s ease;
}


.card.bad .card-frame .download-button { color: #445a7d; border: 2px solid #445a7d; }
.card.bad .card-frame .download-button:hover { color: #ffffff; background-color: #445a7d; }

.card.good .card-frame .download-button { color: #dc00dc; border: 2px solid #dc00dc; }
.card.good .card-frame .download-button:hover { color: #ffffff; background-color: #dc00dc; }

.card.monitor .card-frame .download-button { color: #741b47ff; border: 2px solid #741b47ff}
.card.monitor .card-frame .download-button:hover { color: #ffffff; background-color:  #741b47ff;}


.swiper-card-viewport .swiper-pagination-bullet{
    height: 13px;
    width: 13px;
    opacity: 0.5;
    background-color: #243043;
    z-index: 101;
}

.swiper-card-viewport .swiper-pagination-bullet-active {
    opacity: 1;
    z-index: 101;
}

@media screen and (max-width: 450px){
    .swiper-card-viewport {
       padding-bottom: 10px;
    }
}

@media screen and (max-width: 700px){
    .state-name h1 {
        font-size: 30pt;
    }
    .swiper-card-viewport {
        margin: 20px;
    }
}

@media screen and (min-width: 1100px) {
    .search-bar-container {
        top: 50px;
    }
}