@import url('https://fonts.googleapis.com/css2?family=Delicious+Handrawn&family=Montserrat:wght@400;700&family=Roboto:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: auto;
    background: #1D4350;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #A43931, #1D4350);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #A43931, #1D4350);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    display: flex;
    flex-direction: column;
    align-items: center;
}


.header {
    width: 100%;
    height: 10rem;
    background-image: url('../images/rick-and-morty-tv-shows-hd-4k-wallpaper-preview.jpg');
    background-size: contain;

}

.title {
    font-size: 5rem;
    text-shadow: 0 0 15px rgb(255, 255, 0);
    color: rgb(0, 255, 255);
    font-family: 'Delicious Handrawn', cursive;
    animation: title 1s infinite;
}

@keyframes title {
    50% {
        text-shadow: rgb(0, 255, 255);
        color: rgb(255, 255, 0);
    }
}

hr {
    width: 90%;
    margin: 1.5rem;
}

.principal-content {
    margin-top: 1em;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.find-character {
    width: 30rem;
    height: auto;
    font-size: 1.5rem;
    border-radius: 21px;
    background-color: rgb(95, 95, 95);
    padding: 0.6em 1.2em;
    color: rgb(255, 255, 255);
    font-family: 'Delicious Handrawn', cursive;
}

.container-cards {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.card-character {
    width: 22rem;
    min-height: 11rem;
    height: auto;
    background-color: rgba(24, 25, 26, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    margin: 1rem;
    display: flex;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-character:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 12px 30px rgba(0, 255, 255, 0.25);
}

.card-character>img {
    width: 45%;
    object-fit: cover;
    align-self: stretch;
}

.description-card {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem;
}

.description-card>h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    color: rgb(255, 255, 0);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.4);
    margin: 0 0 0.5rem 0;
    word-break: break-word;
}

.description-card>p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    text-align: center;
    color: rgb(0, 255, 255);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    margin: 0.25rem 0;
}


.navigationButtons {
    width: 80%;
    margin-bottom: 10px;
}

.prevPage {
    width: 150px;
    height: 60px;
    border: 3px solid #303033;
    border-radius: 45px;
    transition: all 0.3s;
    cursor: pointer;
    background: rgb(163, 202, 165);
    font-size: 1.2em;
    font-weight: 550;
    font-family: 'Delicious Handrawn', sans-serif;
    float: left;
}



.prevPage:hover {
    background: #333849;
    color: white;
    font-size: 1.5em;
}

.nextPage {
    width: 150px;
    height: 60px;
    border: 3px solid #303033;
    border-radius: 45px;
    transition: all 0.3s;
    cursor: pointer;
    background: rgb(163, 202, 165);
    font-size: 1.2em;
    font-weight: 550;
    font-family: 'Delicious Handrawn', sans-serif;
    float: right;
}

.nextPage:hover {
    background: #333849;
    color: white;
    font-size: 1.5em;
}

