@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: linear-gradient(
    to bottom right,
    #b48cfc,
    #8b49f5,
    #a456c4,
    #b567a3,
    #dd9181,
    #ffff
  );
  --abbr: #f2bb5b;
  --primary: #adadad;
  --border: #9c72c0;
  --header: #7e67a9;
  --bb: linear-gradient(135deg, #b48cfc, #8b49f5, #a456c4);
  --ba: #f9f1fe;
  --aside: #715895;
  --td: #ffffff;
  --text: #6d549f;
  --nav: #ffcc4e;
  --act: #f7e7bd;
  --grad: linear-gradient(to right, #ffdf8d, #ffb300);
  --shad: linear-gradient(
    to right,
    rgba(255, 223, 141, 0.5),
    rgba(255, 179, 0, 0.5)
  );
  --text2: #7b5800;
  --mischka: #dbdae3;
  --medium-purple: #904ded;
  --purp: #8339ff;
  --pickled-bluewood: #2a3a49;
  --tulip-tree: #f0b348;
  --lilac-bush: #b276d1;
  --el-salva: #8b3c2f;
  --casper: #a7b6cb;
  --gold-sand: #ebbb8c;
  --crt: linear-gradient(to bottom right, #ad7ffd, #904ded);
}

* {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  list-style-type: none;
  color: black;
  opacity: 0;
  animation: fade-in 1s ease-in-out forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: white;
  background-position: center;
  background-size: cover;
  color: black;
}
section {
  background-image: var(--bg);
  top: 0;
  left: 0;
  right: 0;
  justify-content: space-between;
}
.header-texts h1,
.header-texts h3,
.header-texts p {
  color: white;
  align-items: left;
  padding: 15px;
}
.header-texts abbr {
  color: var(--abbr);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  padding-top: 10px;
}

.nav-logo-title {
  display: flex;
  justify-content: left;
  align-items: center;
  font-size: 10pt;
  margin-left: 20px;
}
.nav-logo-title a {
  background: var(--grad);
  margin-left: 5px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* text-shadow: 0 0 20px var(--act); */
  font-weight: 700;
  font-size: larger;
}
.nav-logo-title img {
  content: url(https://images.squarespace-cdn.com/content/v1/6111b81345fb3406c893d1c7/1632862774806-WD4CTS9WZBGDQM3JE68S/sanrio-logo.jpg);
  width: 125px;
  height: 80px;
}
nav ul {
  margin-right: 15px;
  display: flex;
}
nav ul li a {
  font-weight: 500;
  padding: 15px;
  color: black;
  font-size: 10pt;
}
nav li :hover {
  color: var(--gold-sand);
}
nav li :active {
  padding: 9px;
  border-radius: 10px;
  color: var(--act);
  background-color: var(--el-salva);
}
section {
  display: flex;
  padding: 15px;
}
#header {
  padding: 35px;
  align-items: center;
}
.header-texts {
  align-items: center;
  text-shadow: 0 0 30px rgb(0, 0, 0);
}
.header-texts h1 {
  margin-left: 15px;
  padding: 0;
  /* background-color: var(--ba); */
  display: inline-block;
}

.header-filler {
  margin-right: 40px;
  content: url(https://codecreator.my.id/img/learn.png);
  width: 300px;
  height: 300px;
  align-items: right;
}
.content-aside {
  display: flex;
  flex-direction: row;
  width: 100%;
}
.content {
  margin-left: 30px;
  margin-top: 15px;
  background-color: white;
  background-size: cover;
  background-position: center;
  padding: 30px;
  margin-right: -40px;
  width: 80%;
}

.content-second {
  margin-bottom: -10px;
}
.content-first h2,
.content-first p {
  padding: 7px;
}
.content-second h2 {
  margin-top: 40px;
}
.content-second h2,
.content-second h4,
.content-second p {
  padding: 7px;
}
aside h2 {
  color: var(--abbr);
}
.content-first h2,
.content-second h2 {
  color: black;
  background-image: var(--grad);
  display: inline-block;
  margin-bottom: 10px;
  margin-left: 7px;
}

aside {
  width: 20%;
  margin: 50px;
  margin-right: 120px;
}
aside ul {
  margin-top: -2px;
  padding: 15px;
  margin-left: -32px;
}
aside li {
  padding: 15px;
}
aside li a {
  color: var(--aside);
  font-size: 10pt;
  background-color: var(--ba);
  padding: 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
aside li :hover {
  transform: translate(0, 6px);
  box-shadow: 5px -5px 25px 0 #ece1ff, -5px 5px 25px 0 #ece1ff;
}
.articles {
  margin: 35px;
  align-items: center;
}

.articles table tr {
  display: flex;
  gap: 2rem;
}

.row-first {
  margin-bottom: 50px;
  align-items: center;
}

.article {
  background-color: var(--ba);
  box-shadow: 5px -5px 35px -10px #ece1ff, -5px 5px 35px -10px #ece1ff;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  padding: 45px;
  align-items: center;
}

.article h3,
.article p,
.article a {
  padding: 15px;
}
.article p {
  margin-bottom: 35px;
}
.article h3,
.article-long h3,
.content-second h4 {
  color: var(--text);
}

.article img {
  align-items: center;
  width: 100%;
  border-radius: 25px;
  margin-bottom: 20px;
}
.article:nth-child(1) img {
  content: url(https://source.unsplash.com/featured/400x200?future);
  max-width: 350px;
}
.article:nth-child(2) img {
  content: url(https://source.unsplash.com/featured/400x201?developer);
  max-width: 350px;
}
.article:nth-child(3) img {
  content: url(https://source.unsplash.com/featured/400x202?css);
  max-width: 350px;
}

.article:hover {
  transform: translateY(-15px);
  transition: 0.4s;
}
td.article a {
  color: var(--text);
  background-color: var(--td);
  font-weight: 600;
  padding: 15px;
  /* border: 5px solid white; */
  border-radius: 15px;
  margin-left: 15px;
  margin-bottom: 30px;
}

td.article a:hover {
  color: var(--text2);
  background-image: var(--grad);
  border-radius: 15px;
  /* border: 5px solid #ffdb83; */
}
.row-second {
  background-color: var(--ba);
  box-shadow: 5px -5px 35px -10px #ece1ff, -5px 5px 35px -10px#ece1ff;
  padding: 45px;
  align-items: center;
  border-radius: 50px;
  margin-bottom: 60px;
}
.row-second img {
  content: url(https://source.unsplash.com/featured/400x202?animation);
  align-items: center;
  width: 100%;
  border-radius: 25px;
}
.article-long h3,
.article-long p {
  padding: 15px;
}
.creativity {
  background-color: var(--ba);
  padding: 10px;
  border: 5px solid var(--td);
  box-shadow: 5px -5px 35px -5px #ece1ff, -5px 5px 35px -5px #ece1ff;
  border-radius: 50px;
  margin: 40px;
}
.creativity-wrapper {
  font-size: smaller;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-image: var(--crt);
  color: var(--td);
  margin: 10px;
  padding: 30px;
  gap: 2rem;
  text-align: center;
  border-radius: 50px;
}
.mini-content h2,
.mini-content p {
  color: var(--td);
  padding: 10px;
}
.creativity-wrapper img {
  max-width: 100px;
  height: auto;
  margin-bottom: 10px;
  background-color: var(--purp);
  border: 2px solid var(--ba);
  border-radius: 30px;
}
.mini-one img {
  content: url(https://codecreator.my.id/img/img1.svg);
}
.mini-two img {
  content: url(https://codecreator.my.id/img/img2.svg);
}
.mini-three img {
  content: url(https://codecreator.my.id/img/img3.svg);
}
.mini-four img {
  content: url(https://codecreator.my.id/img/img4.svg);
}
.creativity-wrapper .mini-one:hover,
.mini-two:hover,
.mini-three:hover,
.mini-four:hover {
  padding: 30px;
  background-image: var(--grad);
  border-radius: 50px;
}

.mini-content:hover h2,
.mini-content:hover p {
  color: var(--text2);
}

footer {
  padding-top: 70px;
  margin-top: 100px;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--td);
  box-shadow: 0px 0px 30px -25px var(--border);
}

.footer-logo {
  padding: 0 40px;
  flex: 40%;
}

.footer-form {
  padding: 0 40px;
  flex: 60%;
}

.footer-form input[type="text"] {
  width: 100%;
  height: 40px;
  border-radius: 0px;
  border: 1px solid var(--nav);
  padding: 10px;
  outline: none;
  margin: 10px 0;
}

.footer-form label {
  font-weight: 500;
}

.footer-form p {
  font-size: 20px;
  font-weight: 600;
}

.footer-form #gender {
  width: 100%;
  height: 40px;
  border-radius: 0px;
  border: 1px solid var(--nav);
  outline: none;
  margin: 10px 0;
}

.footer-form input[type="radio"] {
  margin: 10px 0;
}

.footer-form button {
  margin-top: 10px;
  width: 100%;
  border: 1px solid var(--nav);
  height: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--nav);
  background: transparent;
  padding: 6px;
  transition: 0.3s;
  border-radius: 5px;
}

.footer-form button:hover {
  border: 1px solid var(--el-salva);
  background: var(--el-salva);
  color: var(--act);
}

.footer-form button:focus {
  background: var(--el-salva);
}

.footer-credit {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  width: 100%;
  background: var(--grad);
  padding: 0px 30px;
  height: 80px;
}

.footer-credit h3:first-child {
  font-weight: 500;
  font-size: 10px;
  margin-right: 10px;
}

.footer-credit h3:last-child {
  font-size: 10px;
  margin-right: 10px;
}
/* end footer */

/* RESPONSIVE */

@media only screen and (max-width: 640px) {
  .page-wrapper {
    max-width: 640px;
  }

  nav {
    flex-direction: column;
  }

  .nav-logo-title img {
    width: 70px;
    height: auto;
  }

  .nav-logo-title {
    margin-bottom: 20px;
  }

  #header {
    display: flex;
    flex-direction: column;
  }

  .content-aside {
    flex-direction: column;
  }

  .content {
    padding: 10px;
  }
  aside {
    text-align: center;
    width: 100%;
    margin: 0px;
  }

  .articles {
    margin: 0px;
    margin-left: 40px;
    margin-top: 60px;
    max-width: 80%;
  }

  .row-first {
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .article {
    max-width: 100%;
    text-align: center;
  }

  .article img {
    width: 100%;
  }

  .article:nth-child(1) img {
    content: url(https://source.unsplash.com/featured/400x200?future);
    max-width: 100%;
  }
  .article:nth-child(2) img {
    content: url(https://source.unsplash.com/featured/400x201?developer);
    max-width: 100%;
  }
  .article:nth-child(3) img {
    content: url(https://source.unsplash.com/featured/400x202?css);
    max-width: 100%;
  }

  .row-second {
    display: flex;
    flex-direction: column-reverse;
    max-width: 100%;
  }

  .row-second img {
    max-width: 90%;
  }

  .row-second:hover {
    transform: translateY(-15px);
    transition: 0.4s;
  }
  
  .creativity-wrapper {
    display: flex;
    flex-direction: column;
  }

  footer {
    display: flex;
    flex-direction: column;
  }

  .footer-form {
    margin-top: 50px;
  }
}
