header {
    height: 10dvh;
    width: 100%;
    background-color: #ffcb05;
    display: flex;
    align-items: center;
    justify-content: center;

    .content {
        flex-direction: row;
        justify-content: center;
        gap: 2.4rem;
        img {
            height: 5rem;
            width: 5rem;
            object-fit: cover;
        }
    }
}

main {
    background-color: #ffea9b;
    min-height: calc(100dvh - 10dvh - 5dvh);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    #loading-spinner {
        height: 100dvh;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.315);
        z-index: 5;
        position: fixed;
        top: 0;
        justify-content: center;
        align-items: center;
    }

    form {
        margin: 3.2rem 0;
        width: 30rem;

        .search-input {
            width: 100%;
            height: 3.5rem;
            background-color: #fff5cd;
            border: 2px solid white;
            border-radius: 50px;
            padding: 1rem 2.8rem 1rem 1.5rem;
            bottom: 1px;
            left: 1px;
            font-family: "Pokemon GB";
        }

        .search-button {
            height: 3.3rem;
            width: 3.3rem;
            border: none;
            background-color: transparent;
            background-image: url(./assets/icons/arrow_right.png);
            background-repeat: no-repeat;
            background-size: cover;
            position: absolute;
            right: 3px;
            cursor: pointer;
        }
    }

    section {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;

        .card {
            background-color: white;
            border-radius: 15px;
            height: 25rem;
            width: 25rem;
            margin: 2.4rem;
            box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
            transition: 0.3s;
            cursor: pointer;

            img {
                height: 10rem;
                width: 10rem;
                object-position: bottom;
                position: absolute;
                top: -20%;
                left: 50%;
                transform: translate(-50%, 0);
            }

            .card-details {
                height: 80%;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: space-around;
                .card-name{
                    padding: 0.8rem;
                    border-radius: 8px;
                    color: white;
                }
            }
        }

        .card:hover {
            box-shadow: rgba(99, 99, 99, 0.8) 0px 4px 8px 0px;

        }
    }

    button {
        margin-bottom: 1.6rem;
    }
}

#overlay {
    min-height: 100dvh;
    width: 100%;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.229);
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    z-index: 2;

    .cardview {
        background-color: white;
        width: 28rem;
        height: 60rem;
        border-radius: 15px;

        .cardview-main {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;

            .cardview-main-header {
                width: 100%;
                display: flex;
                justify-content: space-between;
                padding: 0.8rem 1.6rem;
                border-top-left-radius: 15px;
                border-top-right-radius: 15px;
            }

            img {
                width: 15rem;
                height: 15rem;
            }

            .cardview-types {
                padding: 1.6rem;
            }
        }

        .cardview-desc {
            width: 100%;

            nav {
                width: 100%;
                display: flex;

                span {
                    width: 50%;
                    text-align: center;
                    background-color: #ffcb05;
                    padding: 0.8rem;
                    cursor: pointer;
                }

                span:hover {
                    background-color: #ffea9b;
                }
            }

            .desc-content {
                min-height: 15rem;
                width: 100%;

                table {
                    height: 100%;
                    width: 100%;
                    padding: 0.8rem;

                    tbody {
                        width: 100%;
                        height: 100%;
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;

                        tr {
                            display: flex;
                            margin-bottom: 0.4rem;

                            td {
                                width: 50%;
                            }
                        }
                    }
                }
                p{
                    padding: 0.8rem;
                    text-align: center;
                }
            }
        }


            .btn-prev{
                position: absolute;
                bottom: 1.6rem;
                left: 2rem;
            }
            .btn-nxt{
                position: absolute;
                bottom: 1.6rem;
                right: 2rem;
            }
        
    }
}

footer {
    height: 5dvh;
    width: 100%;
    background-color: #ffcb05;
    display: flex;
    justify-content: center;
    align-items: center;
    a{
        color: white;
    }
}