@import url(' https://fonts.cdnfonts.com/css/star-wars ');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    color: #f2ececf6;
    font-size: none;
}

body {
    background-image: url('./assets/universo-bg.jpg');
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

a {
    text-decoration: none;
}
header {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-around;
}

.logo-img {
    width: 150px;
    height: 70px;
}

.list {
    display: flex;
    margin: 10px;
}

li {
    font-family: 'Star Wars', sans-serif;
    padding: 20px;
    cursor: pointer;
    outline: none;
    transition: 0.5s;
}

li:hover {
    color: gold;
}

.social-media {
    width: 130px;
    display: flex;
    justify-content: space-between;
}

i {
    font-size: 1.2rem;
}

i:hover {
    color: gold;
}

.texto {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

h2 {
    font-family: 'Star Wars', sans-serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.923);
    font-weight: bold;
    padding: 20px;
}

.main-content {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 30px;
    padding: 0 30px;
    align-items: center;
}

.cards {
    width: 200px;
    height: 300px;
    background-position: 50% 50%;
    background-size: cover;
    display: flex;
    align-items: end;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.5s;
    padding: 5px;
}
.cards:hover {
    transform: scale(1.02);
}

.character-name-bg {
    width: 100%;
    height: 30px;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.character-name {
    font-family: DINNext, Matterhorn, Helvetica, sans-serif;
    color: rgba(255, 255, 255, 0.871);
    font-weight: bold;
    font-size: 20px;
}
.buttons {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}
.buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

#contador {
    color: rgb(247, 247, 243);
    font-family: 'Star Wars', sans-serif;
    font-size: 20px;
}

button {
    width: 15vw;
    height: 25px;
    background-color: rgba(255, 217, 0, 0.798);
    color: #000;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #000;
    outline: none;
    transition: 0.3s;
}

button:hover {
    background-color: #000;
    color: gold;
}

#back-button {
    visibility: hidden;
}

footer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    row-gap: 10px;
    margin: 40px 0 20px 0;
}

.footer-logo {
    font-family: 'Star Wars', sans-serif;
    font-size: 20px;
    font-weight: 500;
}

.copyrigth {
    font-weight: 500;
}

.modal {
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    left: 0;
    top: 0;
}

.modal-content {
    width: 25vw;
    min-height: 526px;
    background-color: #0d0d0d;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    padding: 30px 10px;
    align-items: center;
}

.character-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-position: 50% 10%;
    background-size: cover;
}

.character-details {
    font-family: DINNext, Matterhorn, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 20px;
    font-weight: lighter;
    color: rgba(255, 217, 0, 0.874);
}

@media(max-width: 708px) {
    header {
        width: 90%;
        height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 40px;
    }
    
    .logo-img {
        width: 150px;
        height: 70px;
    }
    
    .list {
        display: flex;
        margin: 10px;
    }
    
    li {
        font-family: 'Star Wars', sans-serif;
        padding: 20px;
        cursor: pointer;
        outline: none;
        transition: 0.5s;
    }
    
    li:hover {
        color: gold;
    }
    
    .social-media {
        width: 130px;
        display: flex;
        justify-content: space-between;
    }
    
    i {
        font-size: 1.2rem;
    }
    
    i:hover {
        color: gold;
    }
    
    .texto {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    
    h2 {
        font-family: 'Star Wars', sans-serif;
        font-size: 17px;
        color: rgba(255, 255, 255, 0.923);
        font-weight: bold;
        padding: 20px;
    }
    .cards {
        width: 150px;
        height: 200px;
        background-position: 50% 50%;
        background-size: cover;
        display: flex;
        align-items: end;
        border-radius: 8px;
        cursor: pointer;
        transition: 0.5s;
        padding: 5px;
    }
    .cards:hover {
        transform: scale(1.02);
    }
    .character-name {
        font-family: DINNext, Matterhorn, Helvetica, sans-serif;
        color: rgba(255, 255, 255, 0.871);
        font-weight: bold;
        font-size: 13px;
    }
    .modal {
        visibility: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        position: fixed;
        left: 0;
        top: 0;
    }
    
    .modal-content {
        width: 40vw;
        background-color: #0d0d0d;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        row-gap: 15px;
        padding: 30px 10px;
        align-items: center;
    }
    .character-details {
        font-family: DINNext, Matterhorn, Helvetica, sans-serif;
        font-weight: bold;
        font-size: 20px;
        font-weight: lighter;
        color: rgba(255, 217, 0, 0.874);
    }
    #contador {
        font-size: 15px;
    }
    
}

@media(max-width : 550px) {
    header {
        width: 90%;
        height: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 30px;
    }
    
    .logo-img {
        width: 100px;
        height: 70px;
    }
    
    .list {
        display: flex;
        flex-direction: row;
    }
    
    li {
        font-family: 'Star Wars', sans-serif;
        padding: 20px;
        font-size: 10px;
        padding: 10px;
        cursor: pointer;
        outline: none;
        transition: 0.5s;
    }
    
    li:hover {
        color: gold;
    }

    h2 {
        font-family: 'Star Wars', sans-serif;
        font-size: 10px;
        color: rgba(255, 255, 255, 0.923);
        font-weight: bold;
        padding: 20px;
    
    }

    .main-content {
        width: 100%;
        justify-content: center;
        display: wrap;
        gap: 10px 5px;
        padding: 0 30px;
        align-items: center;
    }
    
    .cards {
        width: 80px;
        height: 150px;
        background-position: 50% 50%;
        background-size: cover;
        display: flex;
        align-items: end;
        border-radius: 8px;
        cursor: pointer;
        transition: 0.5s;
        padding: 5px;
    }
    .cards:hover {
        transform: scale(1.02);
    }
    
    .character-name-bg {
        width: 100%;
        height: 30px;
        background-color: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }
    
    .character-name {
        font-family: DINNext, Matterhorn, Helvetica, sans-serif;
        color: rgba(255, 255, 255, 0.871);
        font-weight: bold;
        font-size: 10px;
    }

    .modal {
        visibility: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        position: fixed;
        left: 0;
        top: 0;
    }
    
    .modal-content {
        width: 50vw;
        background-color: #0d0d0d;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        row-gap: 15px;
        padding: 30px 10px;
        align-items: center;
    }
    
    .character-image {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background-position: 50% 10%;
        background-size: cover;
    }
    
    .character-details {
        font-family: DINNext, Matterhorn, Helvetica, sans-serif;
        font-weight: bold;
        font-size: 13px;
        font-weight: lighter;
        color: rgba(255, 217, 0, 0.874);
    }
    .buttons {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        margin-top: 20px;
    }

    #contador {
        font-size: 15px;
    }
    .social-media {
        width: 130px;
        display: flex;
        justify-content: space-between;;
    }
    .footer-logo {
        font-size: 15px;
    }
    .copyrigth{
        font-size: 12px;
    }
    
    i {
        font-size: 1.2rem;
    }
    
    i:hover {
        color: gold;
    }
}