@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Nunito", serif;
}

/*-----------Main menu--------------*/
.topnav {
    background-color: #f80;
    border-radius: 0.5rem;
}

.topnav a {
    color: #f2f2f2;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav .icon {
    display: none;
}

.dropbtn {
    background-color: inherit;
    padding: 16px;
    color: #f2f2f2;
    font-size: 17px;
    border: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    list-style-type: none;
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}

@media (max-width: 1000px) {
    .topnav {
        overflow: hidden;
    }

    .topnav a {
        float: left;
        display: block;
    }

    .topnav a:not(:first-child),
    .dropdown .dropbtn {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }

    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
        color: #fff;
    }

    .topnav.responsive .dropdown {
        float: none;
    }

    .topnav.responsive .dropdown-content {
        position: relative;
        min-width: 496px;
        border-radius: 0.5rem;
        background-color: inherit;
    }

    .dropdown-content li {
        max-width: 473px;
        border-bottom: 1px solid #fafafa;
    }

    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
}

/*-----------main content--------------*/
.container {
    width: 100%;
    padding: 0 24px;
}

.wraper {
    width: 90%;
    height: auto;
    margin: 0 auto;
}

.title {
    color: #f80;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    font-size: 30px;
    letter-spacing: 5px;
    text-align: center;
    padding: 1rem 0;
}

.scroll-horizontal {
    max-width: 1250px;
    overflow-x: auto;
}

.drop-targets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 1rem;
}

.box {
    height: 400px;
    min-height: fit-content;
    border: solid 1px #0a141e;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column nowrap;
    padding: 1rem;
    position: relative;
    background-image: url("../images/list_pokemon_bg.png");
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a141e;
}

.overlayText {
    position: absolute;
    bottom: 0;
    box-shadow: inset 2px 2px 5px #bcbcbc, inset -2px -2px 5px #ffffff, 2px 2px 5px #bcbcbc, -2px -2px 5px #ffffff;
    color: #f1f1f1;
    width: 100%;
    transition: .5s ease;
    opacity: 0;
    color: white;
    font-size: 20px;
    padding: 1rem;
    text-align: center;
}

.box:hover .overlayText {
    opacity: 1;
    color: #00d2ff;
    font-size: 1.6rem;
    font-weight: 600;
}

.frame {
    width: 100%;
    height: 300px;
    min-height: fit-content;
    border: solid 3px #ccc;
    margin: 1rem 0;
}

img {
    object-fit: contain;
    aspect-ratio: 1;
}

@media (max-width: 600px) {
    .wraper {
        background: inherit;
    }

    .drop-targets {
        grid-template-columns: auto;
    }
}