* {
    box-sizing: border-box;
    margin: 0;
    outline: none;
    padding: 0
}

h1,h2,h3 {
    margin: 0
}

body {
    color: #fff;
    font-family: Arial, sans-serif;
    background-color: #292929
}

.section-title {
    margin: 20px;
    width: calc(100% - 40px);
    height: 80px;
    color: #fff;
    background-position:center;
    background-size: cover;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px #0008;
    text-shadow: 2px 2px 10px #000;
    border: #fff0 solid 2px;
    background-color: #222;
    font-size: 2em;
    display: flex;
    align-items: center
}

.section-title:hover {
    border: #fff solid 2px
}

.grid {
    display: grid;
    gap: 10px;margin: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))
}

#featuredGrid {
    display: grid;
    gap: 10px;margin: 20px;
    grid-template-columns: repeat(auto-fit, minmax(calc(25% - 20px), 1fr))
}

#featuredGrid .card {
    text-align: right;
    position: relative;
    padding: 10px;
    background-color: #2c2c2c;
    border: #fff0 solid 2px;
    cursor: pointer;
    color: #fff;
    background-size: cover;
    background-position: center
}

#featuredGrid .card:hover {
    border: #ddd solid 2px;
    box-shadow: 0 6px 12px #0008
}

#featuredGrid .card img {
    position: absolute;
    top: 5px;left: 5px;
    width: 75px;
    border-radius: 10px;
    box-shadow: 0 4px 8px #0008
}

#featuredGrid .card p, #featuredGrid .card .stars {
    color: #fff;text-shadow: 2px 2px 10px #000
}

#featuredGrid .card:hover {
    border: #fff solid 2px
}

.card {
    position: relative;
    padding: 10px;
    background-color: #2c2c2c;
    border: #fff0 solid 2px;
    cursor: pointer;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center
}

.card img {
    width: 100%;
    border-radius: 50px;
    box-shadow: 0 4px 8px #0008
}

.card h3 {
    font-size: 1.2em;
    margin: 10px 0 5px;
    color: #fff;
    text-shadow: 2px 2px 10px #000
}

.card p,.card .stars{
    margin: 5px 0;
    color: #aaa
}

.stars {
    user-select: none
}

.card:hover {
    border: #ddd solid 2px;
    box-shadow: 0 6px 12px #0008
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000c;
    justify-content: center;
    align-items: center
}

.modal-content {
    background-color: #333;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    position: relative;
    color: #fff;
    text-align: right
}

.modal-content .bg {
    width: 100%;
    height: 200px;
    margin-bottom: -80px;
    background-position: center;
    background-size: cover;
    text-align: left;
    align-content: end
}

.modal-content .bg .stars {
    background-color: #222;
    padding: 5px
}

.modal-content .inf {
    text-align: left
}

.modal-content .inf p {
    color: #aaa;
    margin: 10px 0
}

.modal-content img {
    width: 30%;
    padding: 5px;
    background-color: #333;
    margin-right: 20px;
    margin-bottom: -30px
}

.close {
    position: absolute;
    top: 0;
    right: 4px;
    font-size: 1.6em;
    cursor: pointer
}

button {
    padding: 10px 20px;
    background-color: #111;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    border: #fff0 solid 2px;
    user-select: none
}

button:hover {
    border: #fff solid 2px;
    background-color: #222
}

#carousel {
    margin: 20px 0;
    width: 100%;
    overflow: hidden;
    position: relative
}

.carousel-track {
    display: flex;
    animation: slide 30s infinite ease-in-out
}

.carousel-item {
    overflow: hidden;
    min-width: calc(100% - 40px);
    box-shadow: 0 4px 10px #0008;
    height: 300px;
    margin: 0 20px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    background-color: #000;
    border: #0008 solid 2px
}

.carousel-item .infii {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    text-align: left
}

.carousel-item img {
    width: 170px;
    border-radius: 10px
}

.carousel-item h3 {
    font-size: 2em
}

.carousel-item p {
    position: absolute;
    padding: 10px;
    top: 10px;
    left: 190px;
    width: 55%;
    text-align: left;
    height: 170px;
    border-left: #fff solid 2px
}

.carousel-item button {
    position: absolute;
    bottom: 10px;
    right: 10px
}

.carousel-item .stars {
    font-size: 1.5em
}

.carousel-item:hover {
    border: #fff solid 2px
}

.carousel-item .overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 15px;
    height: 100%;
    background: #0008;
    color: #fff;
    text-align: center
}

@keyframes slide {
    0%, 10% {transform: translateX(0)}      /* Slide 1 */
    15%, 25% {transform: translateX(-100%)} /* Slide 2 */
    30%, 40% {transform: translateX(-200%)} /* Slide 3 */
    45%, 55% {transform: translateX(-300%)} /* Slide 4 */
    60%, 70% {transform: translateX(-400%)} /* Slide 5 */
    75%, 85% {transform: translateX(-500%)} /* Slide 6 */
    90%, 100%{transform: translateX(0)}     /* Slide 1 */
}

#searchContainer {
    position: relative;
    margin-top: 20px;
}

#searchModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000b3;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

#searchModal .modal-content {
    background-color: #333;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    border-radius: 30px;
}

.modal-content .grid {
    display: grid;
    gap: 10px; margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(calc(50% - 20px), 1fr))
}

.modal-content .card {
    text-align: right;
    position: relative;
    padding: 10px;
    background-color: #2c2c2c;
    border: #fff0 solid 2px;
    cursor: pointer;
    color: #fff;
    background-size: cover;
    background-position: center
}

.modal-content .card img {
    position: absolute;
    top: 5px;left: 5px;
    width: 75px;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 4px 8px #0008
}

.modal-content .card:hover {
    border: #fff solid 2px
}

#modalSearchBar {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 25px;
    border: none;
    margin-bottom: 10px;
}

#searchContainer {
    position: relative;
    display: flex;
    justify-content: center;
}

#searchBar {
    width: 90%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 25px;
    background-color: #f8f8f8;
    color: #333;border: none;
}

@media (max-width: 767px) {
    #featuredGrid, .grid {
        grid-template-columns: repeat(auto-fit, minmax(calc(50% - 20px), 1fr))
    }
    .modal-content .grid {
        grid-template-columns: repeat(auto-fit, minmax(calc(100% - 20px), 1fr))
    }
    .carousel-item img {
        width: 120px
    }
    .carousel-item p {
        top: 10px;
        left: 140px;
        width: 50%;
        height: 120px;
        overflow: hidden;
    }
}