body {
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #03031e;
    color: white;
    background-image: url('https://www.penjajahgoogle.com/wp-content/uploads/2021/03/Learn-to-code1.jpg');
}

.page-wrapper {
    max-width: 30em;
    margin: 1em auto;
    margin-top: -2.5em;
    position: relative;
}

abbr {
    text-decoration: solid;
}

a {
    text-decoration: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --golden-ratio: 1.618;
}

/* Styles for Navigation Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #396180;
    padding: 1em 0;
    animation: slideDown 0.5s ease forwards;
    z-index: calc(3);
}

.nav-logo-title img {
    content: url('https://static.vecteezy.com/system/resources/thumbnails/019/012/160/small_2x/digital-abstract-human-head-tech-logo-design-inspiration-vector.jpg');
    border-radius: 1em;
}

.nav-logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-title img {
    max-width: 3em;
    margin-right: 1em;
    margin-bottom: 1em;
    margin-top: 1em;
    font-size: 70%;
}

.nav-logo-title a {
    color: #fff;
    text-decoration: none;
    font-size: 100%;
    font-weight: bold;
}

ul {
    list-style: none;
    text-align: center;
    padding: 0;

}

ul li {
    display: inline-block;
    margin: 0 10px;
    border-bottom: 1% solid transparent;
}

ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 70%;
    padding-bottom: 5px;
    /* Jarak antara teks dan garis bawah */
}

ul li a:hover {
    background-color: #4e7ea4;
    text-decoration: underline;
}

/* HEADER JUDUL */
#header {
    border: solid;
    border-color: #688EAB;
    padding-top: 1em;
    padding-bottom: 1em;
    text-align: center;
    background-color: #688EAB;
    position: relative;
    bottom: -8em;
    margin-bottom: 9em;
    margin-top: 2em;
    border-radius: 10px;
    padding-left: 1em;
    padding-right: 1em;
}

.header-texts {
    max-width: 55em 0;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.header-texts h1 {
    color: #345a83;
    font-size: 150%;
}

.header-texts h3 {
    color: #a6c1d5;
    font-size: 120%;
    margin-bottom: 0.5em;
}

.header-texts p {
    color: #ffffff;
    font-size: 20%;
    padding-left: 8em;
    padding-right: 8em;
}

/* FIRST CONTENT */
.content-first,
.content-second {
    flex: 1px;
}

.content-first {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-style: solid;
    border-color: #688EAB;
    line-height: 150%;
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 1em;
    background-color: #688EAB;
    width: 97%;
    box-sizing: border-box;
}

.content-first p {
    font-size: 20%;
    line-height: 3em;
}

.content-second {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-style: solid;
    border-color: #688EAB;
    line-height: 150%;
    padding: 1em;
    background-color: #688EAB;
    width: 97%;
    box-sizing: border-box;
}

.content-first h2 {
    color: #345a83;
    font-size: 150%;
    letter-spacing: 2px;
    margin-bottom: 0.5em;
}

.content-second h2 {
    color: #345a83;
    font-size: 150%;
    letter-spacing: 2px;
    margin-bottom: 0.5em;
}

.content-second h4 {
    color: #ffffff;
    font-size: 20%;
}

.content-second p {
    font-size: 20%;
    line-height: 3em;
}

/* Aside */
.content-aside {
    display: flex;

}

aside {
    border: solid;
    border-color: #688EAB;
    background-color: #688EAB;
    border-radius: 10px;
    padding: 30px;

}

aside h2 {
    margin-bottom: 0.5em;
    font-size: 100%;
}

aside ul {
    margin-left: -10px;
    list-style: none;
    text-align: left;
    font-size: 60%;
}

aside ul li {
    margin-bottom: 10px;

}


/* Article */

.row-first td:nth-child(1) img {
    content: url('https://media.licdn.com/dms/image/D4E12AQHEf3llH-r56Q/article-cover_image-shrink_600_2000/0/1689346849438?e=2147483647&v=beta&t=qG2_FoUNlEloxTZxIzpZK7nuie4sIWdt7as0OfZndzw');
    width: 12em;
    height: 10em;
}

.row-first td:nth-child(2) img {
    content: url('https://i.insider.com/601441dd6dfbe10018e00c25?width=700');
    width: 12em;
    height: 10em;
}

.row-first td:nth-child(3) img {
    content: url('https://cdn.mos.cms.futurecdn.net/9QTpESGBXa32D29J77VR3d-1200-80.jpg');
    width: 12em;
    height: 10em;
}

.row-second td:nth-child(2) img {
    content: url('https://loopstudio.dev/wp-content/uploads/2022/08/Blog-6-scaled.jpg');
    width: 7em;
    height: 4em;
}
.articles {
    margin-top: 1em;
    border: solid;
    border-color: #688EAB;
    background-color: #688EAB;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
}

.row-first td:nth-child(1) {
    position: relative;
    left: 0em;
    right: 0em;
    top: 0.5em;
    bottom: 0em;
}

.row-first td:nth-child(1) a{
    position: relative;
    left: 0em;
    right: 0em;
    top: 2.9em;
    bottom: 0em;
}

.row-first td:nth-child(2) {
    position: relative;
    left: 0em;
    right: 0em;
    top: 0.7em;
    right: 0em;
}

.row-first td:nth-child(3) {
    position: relative;
    left: 0em;
    right: 0em;
    top: 0.6em;
    right: 0em;
}

.row-first td:nth-child(1) h3{
    margin-left: -0.5em;
    margin-right: -1em;
}

.row-first td:nth-child(3) h3{
    margin-left: -1em;
    margin-right: -1em;
}

.row-first {
    position: relative;
    left: -0.5em;
    top: -1em;
    right: 0em;
    bottom: 0em;
}

.row-first h3 {
    margin-top: 2em;
    margin-left: 1.3em;
    font-size: 80%;
}

.row-first p {
    margin-top: 2em;
    margin-left: 0.4em;
    margin-right: 0.4em;
    font-size: 20%;

}

.row-first img {
    margin-top: 0.5em;
    margin-left: 1.3em;
    font-size: 60%;
}

.row-second {
    position: relative;
    top: -1em;
}

.row-second h3 {
    margin-top: 2em;
    margin-left: 1.3em;
    font-size: 80%;
}

.row-second p {
    margin-top: 1em;
    margin-left: 5.5em;
    font-size: 20%;
    padding-bottom: 1em;
}

td img {
    border-color: #051a2a;
    border-style: solid;
    position: relative;

}

.row-second img {
    position: relative;
    right: -1em;
    top: 0.5em;
}

.article {
    padding: 1em;
    text-align: center;
}

.article a {
    border-style: solid;
    border-color: #051a2a;
    background-color: #051a2a;
    border-radius: 2em;
    font-size: 50%;
    padding: 0.4em;
    color: white;
    position: relative;
    bottom: -2em;
}

.article img {
    border-radius: 0.5em;
    border-color: #051a2a;
    border-style: solid;
}

.article h3 {
    border-style: solid;
    border-right: none;
    border-left: none;
    border-top: none;
    margin-bottom: 1em;
    padding-bottom: 1em;
    text-align: center;
}

td img {
    border-radius: 0.5em;
}

/* Creativity */
.creativity {
    border-style: solid;
    border-color: #688EAB;
    background-color: #688EAB;
    border-radius: 0.5em;
    padding-top: 1em;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: -4em;
    margin-top: 1em;
}

.creativity img {
    width: 100%; 
    max-width: 27em;
    max-height: 10em; 
    height: 11em; 
    border-radius: 0.5em;
    border-color: #051a2a;
    border-style: solid;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

.creativity h2{
    font-size: 120%;
}
.creativity p{
    font-size: 20%;
}

.mini-one img{
    content: url('https://assets-global.website-files.com/6100d0111a4ed76bc1b9fd54/616fb657512895ebe4f0e1fb_close-up-man-writing-code-laptop%20(1).jpg');
    width: 27em;
    height: 10em;
}

.mini-two img{
    content: url('https://static.promediateknologi.id/crop/0x0:0x0/0x0/webp/photo/radarsemarang/2022/08/progra.jpg');
    width: 1em;
    height: 1em;
}

.mini-three img{
    content: url('https://glints.com/id/lowongan/wp-content/uploads/2020/02/programmer-eyeem.jpeg');
    width: 1em;
    height: 1em;
}

.mini-four img{
    content: url('https://www.dicoding.com/blog/wp-content/uploads/2020/04/internship-rendi-photo-backend.png');
    width: 1em;
    height: 1em;
}

.mini-four{
    margin-bottom: 1em;
}

footer {
    position: relative;
    border-style: solid;
    border-color: #396180;
    background-color: #396180;
    border-radius: 0.5em;
    padding: 1.5em;
    margin-top: 1em;
    width: 100%;
}

footer form {
    text-align: left;
}

footer form label {
    display: block;
    margin-bottom: 0.5em;
    color: #fff;
}

footer form input[type="text"],
footer form select,
footer form input[type="radio"] {
    width: 100%;
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 1em;
}

footer form input[type="radio"] {
    width: 100%;
    padding: 4em;
    position: relative;
    bottom: -2em;
}

footer form button {
    background-color: #051a2a;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 0.5em;
    margin-bottom: 1em;
}

footer form button:hover {
    background-color: #000000;
    color: #fff;
}

@keyframes hoverAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

p:hover {
    animation: hoverAnimation 0.5s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.content-first,
.content-second {
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

aside {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.1);
}

nav ul 
{
  display  :flex;
  flex-direction: row;
  text-align : center;
}
nav ul li 
{
  list-style-type: none;
  font-size : 17px;
  margin-inline : auto;
  display : inline-block;
}

nav ul li a 
{
  color: white;
  text-align: center;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  position: relative;
  margin-left : -10vmin;
  top : 4.5px;
}

nav ul li a:hover 
{
  text-decoration: none;
}

nav ul li a::before 
{
  content: "";
  top: 1.7em;
  left: 50%;
  right: 50%;
  width: 0%;
  position : absolute;
  height: 4px;
  background-color: #00d9ff;
  transition: all 0.5s ease-in-out;
  text-decoration-thickness: 4px;
}

nav ul li a:hover::before 
{
  width: 100%;
  left: 0;
  right: 0;
}


@media screen and (min-width: 794px) {

    body {
        margin: 0;
        padding: 0;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        background-image: url('https://www.theglobeandmail.com/resizer/v2/N6BYYJH7JNF4BO4QB327X5ONXE?auth=34d6f01c767918dc32ecbaac20c075673db5b7838390a224f2502b7332f37889&width=600&quality=80');
        color: white;
    }

    .page-wrapper {
        max-width: calc(49rem - 3em);
        margin: 2em auto;
        margin-top: -0.5em;
        position: relative;
    }

    abbr {
        text-decoration: solid;
    }

    a {
        text-decoration: none;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    :root {
        --golden-ratio: 1.618;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #396180;
        padding: 1em 0;
        animation: slideDown 0.5s ease forwards;
        z-index: calc(3);
    }

    .nav-logo-title {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-logo-title img {
        max-width: 3em;
        margin-right: 1em;
        margin-bottom: 1em;
        margin-top: 1em;
    }

    .nav-logo-title a {
        color: #fff;
        text-decoration: none;
        font-size: 150%;
        font-weight: bold;
    }

    ul {
        list-style: none;
        text-align: center;
        padding: 0;

    }

    ul li {
        display: inline-block;
        margin: 0 10px;
        border-bottom: 1% solid transparent;
    }

    ul li a {
        color: #fff;
        text-decoration: none;
        font-size: 16px;
        padding-bottom: 5px;
    }

    ul li a:hover {
        background-color: #4e7ea4;
        text-decoration: underline;
    }

    /* /* HEADER JUDUL */
    #header {
        border: solid;
        border-color: #688EAB;
        padding-top: 1em;
        margin-top: 0;
        padding-bottom: 2em;
        text-align: center;
        background-color: #688EAB;
        position: relative;
        bottom: -8em;
        margin-bottom: 9em;
        border-radius: 10px;
    }

    .header-texts {
        max-width: 55em 0;
        padding-left: 1em;
        padding-right: 1em;
        margin: 1em auto;
        opacity: 0;
        animation: fadeIn 1s ease forwards;
    }

    .header-texts h1 {
        color: #345a83;
        font-size: 36px;
    }

    .header-texts h3 {
        color: #a6c1d5;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .header-texts p {
        color: #ffffff;
        font-size: 16px;
        padding-left: 1em;
        padding-right: 1em;
    }

    /* FIRST CONTENT */
    .content-first,
    .content-second {
        flex: 1px;
    }

    .content-first {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        border-style: solid;
        border-color: #688EAB;
        line-height: 150%;
        padding: 1em;
        background-color: #688EAB;
        width: 97%;
       
        padding: 2em;
        
        box-sizing: border-box;
    }

    .content-second {
        border-bottom-right-radius: 10px;
        border-bottom-left-radius: 10px;
        border-style: solid;
        border-color: #688EAB;
        line-height: 150%;
        padding: 1em;
        background-color: #688EAB;
        width: 97%;
        padding: 1em;
        box-sizing: border-box;
    }

    .content-first h2 {
        color: #345a83;
        font-size: 200%;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }

    .content-second h2 {
        color: #345a83;
        font-size: 200%;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }

    .content-first p,
    .content-second p {
        font-size: 90%;
        line-height: 1.5em;
    }

    .content-second h4 {
        font-size: 90%;
    }

    /* Aside */
    .content-aside {
        display: flex;

    }

    aside {
        border: solid;
        border-color: #688EAB;
        background-color: #688EAB;
        border-radius: 10px;
        padding: 30px;

    }

    aside h2 {
        margin-bottom: 20px;
    }

    aside ul {
        margin-left: -10px;
        list-style: none;
        text-align: left;

    }

    aside ul li {
        margin-bottom: 10px;
    }


    /* Article */
    .articles {
        margin-top: 1em;
        border: solid;
        border-color: #688EAB;
        background-color: #688EAB;
        border-radius: 10px;
        display: flex;
        flex-wrap: wrap;
        padding: 1em;
    }

    .row-first td:nth-child(1) {
        position: relative;
        left: 0em;
        right: 0em;
        top: -0.5em;
        right: 0em;
    }

    .row-first td:nth-child(1) a{
        position: relative;
        left: 0em;
        right: 0em;
        top: 2.1em;
        right: 0em;
    }

    .row-first td:nth-child(1) img{
        position: relative;
        left: 4em;
        right: 0em;
        top: 0em;
        right: 0em;
    }

    .row-first td:nth-child(2) {
        position: relative;
        left: 0em;
        right: 0em;
        top: -0.6em;
        right: 0em;
    }

    .row-first td:nth-child(2) img{
        position: relative;
        left: 4em;
        right: 0em;
        top: 0em;
        right: 0em;
    }

    .row-first td:nth-child(3) {
        position: relative;
        left: 0em;
        right: 0em;
        top: -0.6em;
        right: 0em;
    }

    .row-first td:nth-child(3) img{
        position: relative;
        left: 4.5em;
        right: 0em;
        top: 0em;
        right: 0em;
    }

    .row-first {
        position: relative;
        left: -0.5em;
        top: -1em;
        right: 0em;
        bottom: 0em;
    }

    .row-first h3 {
        margin-top: 2em;
        margin-left: 1.3em;
        font-size: 80%;
    }

    .row-first p {
        margin-top: 2em;
        margin-left: 0.4em;
        margin-right: 0.4em;
        font-size: 20%;

    }

    .row-first img {
        margin-top: 0.5em;
        margin-left: 1.3em;
        font-size: 60%;
    }

    .row-second {
        position: relative;
        top: -1em;
    }

    .row-second h3 {
        margin-top: 2em;
        margin-left: 1.3em;
        font-size: 80%;
    }

    .row-second p {
        margin-top: 1em;
        margin-left: 5.5em;
        font-size: 20%;
        padding-bottom: 1em;
    }

    td img {
        border-color: #051a2a;
        border-style: solid;
        position: relative;

    }

    .row-second img {
        position: relative;
        right: -1em;
        top: 0.5em;
    }

    .article {
        padding: 1em;
        text-align: center;
    }

    .article a {
        border-style: solid;
        border-color: #051a2a;
        background-color: #051a2a;
        border-radius: 2em;
        font-size: 50%;
        padding: 0.4em;
        color: white;
        position: relative;
        bottom: -2em;
    }

    .article img {
        width: 11em;
        height: 8em;
        border-radius: 0.5em;
        border-color: #051a2a;
        border-style: solid;
    }

    .article h3 {
        border-style: solid;
        border-right: none;
        border-left: none;
        border-top: none;
        margin-bottom: 1em;
        padding-bottom: 1em;
        text-align: center;
    }

    td img {
        width: 5em;
        height: 4em;
        border-radius: 0.5em;
    }

    .creativity {
        border-style: solid;
        border-color: #688EAB;
        background-color: #688EAB;
        border-radius: 0.5em;
        padding-top: 1em;
        padding-left: 1em;
        padding-right: 1em;
        padding-bottom: -4em;
        margin-top: 1em;
    }
    
    .creativity img {
        width: 100%; 
        max-width: 39em;
        max-height: 14em; 
        height: 11em; 
        border-radius: 0.5em;
        border-color: #051a2a;
        border-style: solid;
        margin-bottom: 0.5em;
        margin-top: 0.5em;
    }
    
    .creativity h2{
        font-size: 170%;
    }
    .creativity p{
        font-size: 90%;
    }
    
    .mini-one img{
        content: url('https://assets-global.website-files.com/6100d0111a4ed76bc1b9fd54/616fb657512895ebe4f0e1fb_close-up-man-writing-code-laptop%20(1).jpg');
        width: 27em;
        height: 10em;
        position: relative;
        left: 1.5em;
        bottom: -3.4em;
    }

    .mini-one h2, .mini-one p{
        float: right;
        position: relative;
        bottom: 8.1em;
    }

    .mini-one p{
        margin-right: 4em;
        margin-left: 29em;
        bottom: 15em;
    }
    .mini-one h2{
        margin-left: 13em;
        position: relative;
        left: 2.2em;
    }
    
    .mini-two img{
        content: url('https://static.promediateknologi.id/crop/0x0:0x0/0x0/webp/photo/radarsemarang/2022/08/progra.jpg');
        width: 20.5em;
        height: 18em;
        float: right;
        position: relative;
        bottom: 6em;
        left: -1.5em;
    }

    .mini-two h2{
        line-height: 1.3em;
        margin-right: 15em;
        position: relative;
        left: 1.5em;
    }

    .mini-two p{
        margin-right: 29em;
        position: relative;
        left: 3.1em;

    }

    .mini-two h2{
        position: relative;
        bottom: 4.5em;
    }

    .mini-two p{
        position: relative;
        bottom: 7.5em;
    }

    
    .mini-three img{
        content: url('https://glints.com/id/lowongan/wp-content/uploads/2020/02/programmer-eyeem.jpeg');
        position: relative;
        left: 3em;
        bottom: -5.5em;
    }

    .mini-three h2, .mini-three p{
        float: right;
        position: relative;
        bottom: 8.1em;
    }

    .mini-three p{
        margin-right: 4em;
        margin-left: 29em;
        bottom: 16em;
    }
    .mini-three h2{
        margin-left: 14em;
        position: relative;
        left: 1.3em;
        bottom: 9em;
    }
    
    .mini-four img{
        content: url('https://www.dicoding.com/blog/wp-content/uploads/2020/04/internship-rendi-photo-backend.png');
        width: 20.5em;
        height: 18em;
        float: right;
        position: relative;
        bottom: 5em;
        left: -1.5em;
    }
    
    .mini-four{
        margin-bottom: 1em;
    }

    .mini-four h2{
        line-height: 1.3em;
        margin-right: 15em;
        position: relative;
        left: 1.5em;
    }

    .mini-four p{
        margin-right: 29em;
        position: relative;
        left: 3.1em;

    }

    .mini-four h2{
        position: relative;
        bottom: 4.5em;
    }

    .mini-four p{
        position: relative;
        bottom: 7.5em;
    }

    footer form button:hover {
        background-color: #000000;
        color: #fff;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .content-first,
    .content-second {
        animation: slideUp 0.5s ease forwards;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    aside {
        opacity: 0;
        animation: fadeIn 1s ease forwards;
    }

    img {
        transition: transform 0.3s ease;
    }

    img:hover {
        transform: scale(1.1);
    }


}

.articles img:first-child {
    content: '';
    display: block;
}