@import url("https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
}

body {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 100vh;
    background: #010615;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.box {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px;
    background: #060c21;
    transition: 0.5s;
    border-radius: 12px;
}

.box .content {
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 90px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: 0.5s;
    border-radius: 12px;
}

.box .content h2 {
    font-size: 20px;
    color: #fff;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 1px;
}

.box .content h2 span {
    font-size: 20px;
    color: #fff;
    font-weight: 200;
    letter-spacing: 2px;
}

.box .imgBox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.box .imgBox img {
    max-width: 100%;
    opacity: 0.1;
    transition: 0.5s;
    border-radius: 12px;
}

.box:before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #fff;
    z-index: -1;
    border-radius: 12px;
}

.box:hover {
    height: 400px;
    cursor: pointer;
}

.box:hover .content {
    opacity: 1;
}

.box:hover .imgBox img {
    opacity: 1;
}

.box:nth-child(3n):before,
.box:nth-child(3n):after {
    background: linear-gradient(235deg, #89ff00, #010615, #00bcd4);
}

.box:nth-child(3n + 1):before,
.box:nth-child(3n + 1):after {
    background: linear-gradient(235deg, #ff005e, #010615, #fbff00);
}

.box:nth-child(3n + 2):before,
.box:nth-child(3n + 2):after {
    background: linear-gradient(235deg, #772aff, #010615, #2196f3);
}

img:hover {
    cursor: pointer;
}

.imgBox img {
    width: 280px;
}

.nav-area li {
    display: inline-block;
    padding: 0 15px;
    text-transform: uppercase;
}

.nav-area li a:hover {
    color: #75849d;
}

#navbar {
    width: 1200px;
}

.search {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.textBox {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

b {
    margin: 0 auto;
}

#searchID {
    border-radius: 8px;
}

#submitBtn {
    border-radius: 6px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 0.9rem;
    background: #75849d;
    color: white;
    border: none;
    outline: solid;
    outline-width: 0.1rem;
    outline-color: #4b5464;
}

@media screen and (max-width: 768px) {
    * {
        font-size: 0.95rem;
    }
    header img {
        width: 100px;
        height: 100px;
    }
    .btn-area {
        font-size: 0.95rem;
        padding: 5px 20px;
    }
    .box .content {
        opacity: 1;
    }
    .box .imgBox img {
        opacity: 1;
    }
}
