*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Goldman;
}

body::-webkit-scrollbar {
    width: 0.5rem;
}

body::-webkit-scrollbar-thumb {
  background-color: #2f2c2c;
  outline: none;
}

body{
    background-color: rgb(20, 20, 20);
}

.header{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 10rem;
    width: 100%;
    background-color: rgb(12, 12, 12);
    color: yellow;
}

    #api{
        position: relative;
    }

        #api h4{
            position: absolute;
            bottom: -10%;
            right: -8%;
            transform-origin: center;
            animation: rotate 0.8s ease-in-out alternate infinite;
            font-size: 2.5rem;
            color: #c33333;
        }

        #api h1{
            font-size: 6rem;
            line-height: 4rem;
            letter-spacing: 0.8rem;
        }
    
        #api h2{
            font-size: 6rem;
            line-height: 4rem;
        }

.main-div-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    padding-top: 10vh;
    width: 80%;
    margin: auto;
    row-gap: 2rem;
    column-gap: 1.5rem;
}

.character{
    width: 400px;
    height: 500px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    position: relative;
}

    .main{
        background-color: rgb(15, 15, 15);
        border-radius: 20px;
        height: 500px;
        border: 2px solid rgb(0, 0, 0);
    }

        .top{
            height: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 16px 16px 0 0;
            background-color: #c33333;
            box-shadow: 0 4px 4px #c33333d5;
        }

            .top h1{
                color: white;
                font-size: 1.5rem;
            }

        .bottom{
            padding: 0 1rem 1rem 1rem;
            display: flex;
            flex-direction: column;
            height: 400px;
            justify-content: center;
        }

            .info{
                padding: 0.7rem 1rem;
                display: flex;
                justify-content: space-between;
                font-weight: 400;
            }

                .info p{
                    color: white;
                }

            .button{
                border: none;
                background-color: #c33333;
                border-radius: 5px;
                width: 80%;
                text-decoration: none;
                padding: 0.5rem 1.5rem;
                margin: 0 1rem;
                text-align: center;
                color: white;
                cursor: pointer;
            }

    .extra{
        position: absolute;
        width: 100%;
        height: 500px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        background-color: rgb(12, 12, 12);
        border-radius: 20px;
        z-index: -1;
    }

        .name-area{
            flex: 20%;
            display: flex;
            align-items: center;
        }

            .name{
                color: yellow;
                font-size: 1.5rem;
            }

        .info-area{
            flex: 80%;
            width: 100%;
        }

.close-btn{
    position: absolute;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 0;
    top: 55px;
    left: 5px;
}

    .close-btn-vis{
        animation-duration: 3s;
        animation-fill-mode: forwards;
        animation-name: fadeIn;
    }

h3{
    width: 100%;
    margin-top: 2rem;
    text-align: center;
    color: white;
    font-weight: 400;
}


.peekIn{
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: peekIn;
}

.peekOut{
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: peekOut;
}

.extra-open{
    animation-duration: 1.3s;
    animation-fill-mode: forwards;
    animation-name: extraHightlightIn;
}

.extra-close{
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: extraHightlightOut;
}

@keyframes peekIn{
    from{
        box-shadow: 0px 0px 0px rgba(19, 19, 19, 0);
        transform: translateY(0px);
    }
    to{
        box-shadow: 4px 14px 6px rgb(0, 0, 0);
        transform: translateY(-450px);
    }
}

@keyframes peekOut{
    from{
        box-shadow: 4px 14px 6px rgb(0, 0, 0);
        transform: translateY(-450px);
    }
    to{
        box-shadow: 0px 0px 0px rgba(19, 19, 19, 0);
        transform: translateY(0px);
    }
}

@keyframes fadeIn{
    from{
        opacity: 0;;
    }
    to{
        opacity: 100;
    }
}

@keyframes extraHightlightIn{
    from{
        border: 2px solid rgba(255, 255, 0, 0);
    }
    to{
        border: 2px solid rgba(255, 255, 0, 0.7);
    }
}

@keyframes extraHightlightOut{
    from{
        border: 2px solid rgba(255, 255, 0, 0.7);
    }
    to{
        border: 2px solid rgba(255, 255, 0, 0);
    }
}

@keyframes rotate {
    from{
        transform: rotate(-10deg);
    }
    to{
      transform: rotate(20deg);
    }
}

/* Media Queries*/
@media only screen and (max-width: 1024px) {
    .main-div-container{
        padding-top: 2vh;
    }
}


@media only screen and (max-width: 768px) {
    .main-div-container{
        width: 50%;
    }
}

@media only screen and (max-width: 375px) {
    #api{
        position: relative;
        width: 100%;
        text-align: center;
    }

        #api h4{
            bottom: 0;
            right: 11%;
            font-size: 1.8rem;
        }

        #api h1{
            font-size: 4rem;
            line-height: 2rem;
            letter-spacing: 0.7rem;
        }
    
        #api h2{
            font-size: 4rem;
            line-height: 4rem;
        }
    
    .main-div-container{
        width: 90%;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .character{
        width: 100%;

    }

    .button{
        width: 60%;
        margin: 0 0.2rem;
    }
}