/* @media only screen and (min-width: 768px) {
make responsive
} */

@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
    margin: 0;
    padding: 0;
}

:root {
    --blue: #15133C;
    --gray: #424548;
    --yellow: #F1AC18;
    --textColor: #F1EEE9;
    --title: 2.5em;
    --h1: 2em;
    --h2: 1.7em;
    --h3: 1.3em;
    --text: 1em;
}

body {
    font-family: Poppins;
    background-color: #15133C;
    color: var(--textColor);
}

li,
a {
    text-decoration: none;
    font-size: var(--h3);
    font-weight: bold;
    color: black;
    font-weight: 300;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F1AC18;
    position: fixed;
    width: 100%;
    height: 15%;
    z-index: 100;
    overflow: hidden;
}

.nav-logo-title {
    display: flex;
    height: 75px;
}

.nav-logo-title img {
    content: url(https://i.pinimg.com/originals/23/f3/2e/23f32e08f3b4d926acb1ec71e265a863.jpg);
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 10%;
}

.nav-logo-title a {
    display: inline-block;
    padding-top: 27px;
    font-weight: 800;
}

nav ul li {
    display: inline-block;
    padding-right: 30px;
}

#header {
    position: relative;
    top: 150px;
}

#header .header-texts {
    position: relative;
    margin: 0 auto;
    padding: 20px;
    width: 85%;
    height: 240px;
    background-image: url(https://e1.pxfuel.com/desktop-wallpaper/241/994/desktop-wallpaper-sonic-generations-and-backgrounds-green-hill-zone.jpg);
    background-size: cover;
    background-position: center;
}

.header-texts::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.692);
    z-index: 1;
}

.header-texts h1,
h3 {
    top: 10px;
    position: relative;
    font-size: var(--title);
    font-weight: bold;
    z-index: 2;
}

section h3 {
    top: 20px;
    width: 380px;
    font-size: var(--h2);
    font-weight: 500;
}

.header-texts p {
    position: relative;
    font-size: 20px;
    top: 125px;
    float: left;
    text-align: right;
    animation: fadeInRight 1s;
    border-right: 5px solid;
    padding-right: 20px;
}

.header-filler {
    position: relative;
    display: block;
    float: right;
    content: "";
    width: 150px;
    height: 150px;
    border-radius: 100%;
    top: -240px;
    right: 170px;
    border: 20px solid #F1AC18;
    z-index: 1;
    animation: spinning 1s infinite;
}

.content-aside {
    position: relative;
    top: 400px;
    color: var(--gray);
}

.content-first {
    position: relative;
    width: 80%;
    margin: 0 auto;
}

.content-first h2 {
    position: relative;
    font-size: var(--h2);
    font-weight: bold;
    color: #F1EEE9;
}

.content-first p {
    position: relative;
    background-color: var(--textColor);
    border-radius: 16px;
    padding-left: 225px;
    padding-right: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: justify;
    font-size: var(--text);
}

.content-first :last-child {
    top: 60px;
}

.content-second h4 {
    color: #F1EEE9;
    font-size: var(--h3);
    position: relative;
    top: -150px;
    width: 500px;
    left: 20px;
    animation: fadeInLeft 1s;
    border-left: 5px solid;
    padding-left: 10px;
}

.content-second {
    position: relative;
    top: 300px;
    width: 80%;
    margin: 0 auto;
}

.content-second h2 {
    position: relative;
    font-size: var(--title);
    color: #F1EEE9;
    font-weight: bold;
    float: right;
}

.content-second p {

    position: relative;
    background-color: var(--textColor);
    border-radius: 16px;
    padding-left: 25px;
    padding-right: 225px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 60px;
    text-align: justify;
    font-size: var(--text);
}

aside {
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    position: relative;
    top: 350px;
    color: #F1EEE9;
    animation: fadeIn 1s;
    justify-content: center;
}

aside>* {
    flex-basis: 50%;
}

aside :nth-child(1) {
    order: 0;
}

aside :nth-child(3) {
    order: 1;
}

aside :nth-child(2) {
    order: 2;
}

aside :nth-child(4) {
    order: 3;
}

aside ul {
    margin: 0;
    padding: 0;
}

aside ul li,
aside a {
    color: #F1EEE9;
    position: relative;
    left: 40px;
    text-decoration: underline;
    font-size: 18px;
    margin-bottom: 10px;
    width: 30%;
}

aside h2 {
    font-size: 40px;
    margin-top: 0;
    margin-bottom: 10px;
}

.articles,
#articles {
    position: relative;
    top: 900px;
    width: 85%;
    margin: 0 auto;
}


.row-first,
.row-second {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.article img {
    border-radius: 16px;
    display: block;
    margin: 0 auto;
    position: relative;
    top: 25px;
}

.article {
    background-color: #F1EEE9;
    color: #424548;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 800px;
}

.article h3 {
    font-size: var(--h3);
    text-align: center;
    position: relative;
    margin: 0 auto;
    width: 85%;
    top: 30px;
}

.article p {
    font-size: var(--text);
    text-align: justify;
    position: relative;
    margin: 0 auto;
    top: 50px;
    width: 85%;
    margin-bottom: 80px;
}

.article a {
    position: relative;
    font-size: var(--text);
    margin: 0 auto;
    text-decoration: underline;
    top: -20px;
}

img[alt="Article 1"] {
    content: url('https://i.pinimg.com/originals/40/c1/0e/40c10e8d94f973ce6572670770c91d06.jpg');
    max-width: 85%;
}

img[alt="Article 2"] {
    content: url('https://assetsio.reedpopcdn.com/sonic-the-hedgehog-movie-poster.jpg?width=1200&height=1200&fit=crop&quality=100&format=png&enable=upscale&auto=webp');
    max-width: 80%;
}

img[alt="Article 3"] {
    content: url('https://static.wikia.nocookie.net/1c1605a1-2e6e-40c3-82d8-ff811bb43ca9');
    max-width: 85%;
}

.row-second {
    top: 200px;
    position: relative;
    height: 200px;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    background-color: #F1EEE9;
    color: #424548;
    border-radius: 16px;
}

.row-second h3 {
    top: 40px;
    font-size: var(--h3);
}

.row-second p {
    position: relative;
    top: 50px;
    font-size: var(--text);
}

img[alt="Article 4"] {
    content: url('https://i.pinimg.com/originals/40/c1/0e/40c10e8d94f973ce6572670770c91d06.jpg');
    width: 15%;
    position: absolute;
    left: 50%;
    top: -50px;
    transform: translate(-50%, -50%);
    border-radius: 100%;
}

.creativity {
    margin: 0 auto;
    position: relative;
    width: 85%;
    top: 1250px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.creativity-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    gap: 2%;
}

.creativity-wrapper .mini-one,
.creativity-wrapper .mini-two,
.creativity-wrapper .mini-three,
.creativity-wrapper .mini-four {
    position: relative;
    background-color: #F1EEE9;
    border-radius: 16px;
}

.creativity h2 {
    position: relative;
    top: -60px;
    margin-left: 20px;
    margin-right: 20px;
}

.creativity p {
    position: relative;
    top: -50px;
    margin-left: 20px;
    margin-right: 20px;
    text-align: justify;
    animation: fadeIn 1s;
}

img[alt="First image"] {
    content: url(https://sm.ign.com/t/ign_ap/cover/s/sonic-prim/sonic-prime_xcyr.1200.jpg);
    position: relative;
    display: block;
    margin: 0 auto;
    width: 150px;
    top: -80px;
    border-radius: 100%;
}

img[alt="Second image"] {
    content: url(https://64.media.tumblr.com/0f088d9d7c2c481716e6c5bd22288547/6ba3506357dd10e0-ee/s250x400/b4f0abce0b8cbc17e5a4404ceea6b95e9c21ffab.png);
    position: relative;
    display: block;
    margin: 0 auto;
    width: 150px;
    top: -80px;
    border-radius: 100%;
}

img[alt="Third image"] {
    content: url(https://i.pinimg.com/736x/e0/76/0b/e0760bc9974b78df6bf28b92251231c2.jpg);
    position: relative;
    display: block;
    margin: 0 auto;
    width: 150px;
    top: -80px;
    border-radius: 100%;
}

img[alt="Four image"] {
    content: url(https://e1.pxfuel.com/desktop-wallpaper/522/889/desktop-wallpaper-silver-the-hedgehog-posted-by-john-anderson-silver-sonic.jpg);
    position: relative;
    display: block;
    margin: 0 auto;
    width: 150px;
    top: -80px;
    border-radius: 100%;
}

footer {
    position: relative;
    top: 1300px;
}

.footer-logo {
    position: relative;
    left: 70px;
    width: 50%;
}

.footer-logo h3 {
    font-size: 40px;
    line-height: 2;
}

.footer-logo p {
    font-size: 20px;
}

.footer-form {
    top: 10px;
    border-radius: 16px;
    background-color: #F1EEE9;
    position: relative;
    margin: 0 auto;
    padding: 20px;
    color: var(--gray);
    width: 90%;
    overflow: hidden;
    height: 60px;
}

.footer-form::before {
    position: relative;
    display: block;
    content: "(Hover Here)";
    color: var(--gray);
    font-size: 40px;
    font-weight: bold;
    text-align: right;
}

.footer-form:hover::before {
    display: none;
}

.footer-form:hover {
    height: max-content;
}

form {
    height: 300px;
    top: -50px;
    position: relative;
    left: 20px;
    line-height: 2;
    font-size: 20px;
    font-weight: 500;
    padding-bottom: 10px;
}

.footer-form p:nth-child(1) {
    position: relative;
    color: var(--gray);
    font-size: 40px;
    left: 20px;
    top: -60px;
    font-weight: bold;
}

.footer-form:hover p:nth-child(1) {
    margin-top: 61px;
}

.footer-credit {
    position: relative;
    height: 40%;
    width: 100%;
    background-color: #F1AC18;
    display: block;
    content: "";
    z-index: -1;
    top: 60px;
}

.footer-credit h3 {
    display: none;
}

.footer-credit::after {
    position: relative;
    margin: 0 auto;
    font-size: var(--title);
    font-weight: bold;
    left: 0px;
    content: "Template Made by Jason Miracle Gunawan \A Copyright @2023 JMG";
    white-space: pre;
}

@media only screen and (min-width: 384px) and (max-width:1024px) {
    :root {
        --blue: #15133C;
        --gray: #424548;
        --yellow: #F1AC18;
        --textColor: #F1EEE9;
        --title: 2em;
        --h1: 1.5em;
        --h2: 1.2em;
        --h3: .9em;
        --text: .8em;
    }

    body {
        width: fit-content;
    }

    li,
    a {
        font-size: var(--h3);
    }

    nav {
        height: 10%;
        overflow: hidden;
    }

    .nav-logo-title {
        height: 80px;
        display: flex;
        justify-items: center;
    }

    .nav-logo-title a {
        display: flex;
        padding-top: 8px;
        font-size: var(--h2);
        margin-right: 2px;
        align-items: center;
    }

    nav ul li {
        display: inline-block;
        padding-right: 10px;
        font-size: var(--h1);
    }

    .header-texts p {
        top: 200px;
    }

    aside {
        margin: 0 auto;
    }

    .articles p {
        font-size: var(--text);
    }

    .creativity,
    .creativity-wrapper {
        display: block;
    }

    .mini-two,
    .mini-three,
    .mini-four {
        margin-top: 100px;
    }

    .footer-logo {
        left: 30px;
    }

    .footer-logo p {
        font-size: var(--h1);
    }

    .footer-credit::after {
        font-size: var(--title);
    }
}

@keyframes sparkling {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 0.20;
    }

    20% {
        opacity: 0.40;
    }

    30% {
        opacity: 0.60;
    }

    40% {
        opacity: 0.80
    }

    50% {
        opacity: 1;
    }

    60% {
        opacity: 0.80;
    }

    70% {
        opacity: 0.60;
    }

    80% {
        opacity: 0.40;
    }

    90% {
        opacity: 0.20;
    }

    100% {
        opacity: 0;
    }
}

@keyframes spinning {
    0% {
        transform: rotateY(0deg);
    }

    10% {
        transform: rotateY(30deg);
    }

    20% {
        transform: rotateY(45deg);
    }

    30% {
        transform: rotateY(60deg);
    }

    40% {
        transform: rotateY(90deg);
    }

    50% {
        transform: rotateY(60deg);
    }

    60% {
        transform: rotateY(45deg);
    }

    70% {
        transform: rotateY(30deg);
    }

    100% {
        transform: rotateY(0deg);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}