:root {
  background-color: #fff;
  font-size: 62.5%;
}

* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Hamburger icon toggle*/
#nav-toggle {
  position: absolute;
  top: -100px;
  display: none;
}

nav .icon-burger {
  display: none;
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
}

nav .icon-burger .line {
  width: 30px;
  height: 5px;
  background-color: #e3c0f9;
  margin: 5px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

/*Text*/
h1 {
  font-size: 5rem;
  color: #333;
  padding-top: 20px;
  margin-bottom: 1rem;
}

h1 > span {
  font-size: 2rem;
  font-weight: 500;
}

h2 {
  font-size: 2rem;
  margin-bottom: 4rem;
  font-weight: 700;
}

/*Coding Tittle Image*/
.coding {
  width: 100%;
  height: auto;
  padding-top: 80px;
  padding-bottom: 30px;
}

/*What is coding?*/
/* Container Styles */
.content-container {
  display: flex;
  align-items: center;
}

/* Gift Image Styles */
.gift-image {
  margin-right: 20px;
  margin-bottom: 30px;
}

/* Text Container Styles */
.text-container {
  text-align: center;
}

/* Typing Text Effect */
.text-container .typing-text {
  white-space: pre-wrap;
  letter-spacing: 2px;
  animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
  border-right: 2px solid #ffaa22;
  color: #ffaa22;
  font-size: 2rem;
  font-family: 'Courier New', monospace;
  font-weight: 650;
  text-align: center;
  max-width: 100%;
  padding: 15px;
  margin-bottom: 30px;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* What is coding-tittle */
.text-container h1 {
  font-size: 4rem; 
  color: #fff; 
  text-shadow:
    3px -3px 0 #ffaa22,
    -3px 3px 0 #fcd51a;
}

@media screen and (max-width: 768px) {
  .content-container {
    flex-direction: column;
  }
  
  .gift-image {
    margin-right: 0;
    margin-bottom: 30px;
  }

  .text-container .typing-text {
    font-size: 1.8rem; 
  }

  .text-container h1 {
    font-size: 3.5rem;
  }

  .gift-image img {
    width: 100%;
  }
}

/*More Information*/
.content-container2 {
  display: flex;
  flex-wrap: wrap;
  background-color: #e3c0f9;
  padding: 20px;
  margin-bottom: 30px;
  text-align: justify;
  font-size: 2rem;
}

/* Column Styles */
.column2 {
  flex: 1;
  padding: 10px;
  box-sizing: border-box;
}

.content-container2 p {
  color: #333;
  font-size: 1.5rem;
  padding: 20px;
}

/* Smaller Screens */
@media screen and (max-width: 768px) {
  .content-container {
    flex-direction: column;
  }

  .content-container2 p {
    font-size: 1.2rem;
    padding: 10px;
  }

  .column2 {
    flex: 1; 
    margin-bottom: 10px;
  }
}

/*Basics of Coding*/
/*Image Tittle*/
#basics-coding {
  width: 100%;
  height: auto;
  padding-top: 0px;
  padding-bottom: 0px;
}

.basics-coding-text p {
  font-size: 1.5rem;
  text-align: center;
  padding-bottom: 30px;
}

/* HTML section */
.html-section {
  background-image: url('Images/coding-background.png');
  border-radius: 25px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 20px;
  margin-bottom: 30px;
}

/* HTML content */
.html-content {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 25px;
  background-size: cover;
  padding: 20px;
}

.html-content h1 {
  font-size: 4rem;
  color: #ffaa22;
  text-decoration: underline 4px;
}

.html-content h2 {
  font-size: 2rem;
  line-height: normal;
  color: #ffaa22;
}

.html-content p{
  font-size: 1.5rem;
  color: #fff;
}

/* CSS section */
.css-section {
  background-image: url('Images/css-background.png');
  border-radius: 25px;
  background-size: cover;
  background-position: left;
  position: relative;
  padding: 20px;
  margin-bottom: 30px;
}

/* CSS content */
.css-content {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 25px;
  background-size: cover;
  padding: 20px;
}

.css-content h1 {
  font-size: 4rem;
  color: #00edff;
  text-decoration: underline 4px;
}

.css-content h2 {
  font-size: 2rem;
  line-height: normal;
  color: #00edff;
}

.css-content p{
  font-size: 1.5rem;
  color: #fff;
}

/* JS section */
.js-section {
  background-image: url('Images/js-background.png');
  border-radius: 25px;
  background-size: cover;
  background-position: left;
  position: relative;
  padding: 20px;
  margin-bottom: 30px;
}

/* JS content */
.js-content {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 25px;
  background-size: cover;
  padding: 20px;
}

.js-content h1 {
  font-size: 4rem;
  color: #fcd51a;
  text-decoration: underline 4px;
}

.js-content h2 {
  font-size: 2rem;
  line-height: normal;
  color: #fcd51a;
}

.js-content p{
  font-size: 1.5rem;
  color: #fff;
}

/* Database Management Systems section */
.dms-section {
  background-image: url('Images/dms-background.jpg');
  border-radius: 25px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 20px;
  margin-bottom: 30px;
}

/* DMS content */
.dms-content {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 25px;
  background-size: cover;
  padding: 20px;
}

.dms-content h1 {
  font-size: 4rem;
  color: #e3c0f9;
  text-decoration: underline 4px;
}

.dms-content h2 {
  font-size: 2rem;
  line-height: normal;
  color: #e3c0f9;
}

.dms-content p{
  font-size: 1.5rem;
  color: #fff;
}

/* Web Frameworks section*/
.frameworks-section {
  background-image: url('Images/frameworks-background.jpg');
  border-radius: 25px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 20px;
  margin-bottom: 30px;
}

/* Web Frameworks content */
.frameworks-content {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 25px;
  background-size: cover;
  padding: 20px;
}

.frameworks-content h1 {
  font-size: 4rem;
  color: #1cf4d0;
  text-decoration: underline 4px;
}

.frameworks-content p{
  font-size: 1.5rem;
  color: #fff;
}

/* Responsive Design and Media Queries section*/
.mq-section {
  background-image: url('Images/css-background.png');
  border-radius: 25px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 20px;
  margin-bottom: 30px;
}

/* Styles for the Web Frameworks content */
.mq-content {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 25px;
  background-size: cover;
  padding: 20px;
}

.mq-content h1 {
  font-size: 4rem;
  color: #ff78e6;
  text-decoration: underline 4px;
}

.mq-content p{
  font-size: 1.5rem;
  color: #fff;
}


/* Main Container Styles */
.main-container {
  display: flex;
  justify-content: center;
  border-radius: 25px;
  align-items: center;
  flex-direction: column;
  background-image: url('Images/resources-background.png');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  position: relative;
  padding: 30px;
}

/* Resource Container Styles */
.resource-container {
  color: #fff;
  padding: 20px;
  padding-bottom: 20px;
  border-radius: 25px;
  cursor: pointer;
  margin: 20px;
  transition: background-color 0.3s;
  max-width: 800px;
  width: 100%;
}

.resource-container:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.resource-container h1{
  text-align: center;
  color: #fff;
}
.resource-container p {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 30px;
  margin-left: 30px;
  margin-right: 30px;
  text-align: justify left;
}

/* Resource Container Background Colors */
.resource-container:nth-child(1) {
  background-color: #ffaa22;
}

.resource-container:nth-child(2) {
  background-color: #fcd51a;
}

.resource-container:nth-child(3) {
  background-color: #ffaa22;
}

.resource-container:nth-child(4) {
  background-color: #fcd51a;
}

.resource-container:nth-child(5) {
  background-color: #ffaa22;
}

.resource-container:nth-child(6) {
  background-color: #fcd51a;
}

.resource-container:nth-child(7) {
  background-color: #ffaa22;
}


/* Link Styles */
.resource-container a {
  color: #fff;
  text-decoration: underline;
}

/*Take the quiz link*/
.image-link {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  padding-top: 30px;
  padding-bottom: 30px;
}

.image-link:hover,
.image-link:focus {
  transform: scale(1.03);
  cursor: pointer;
}

/* General (menu-footer-hamburger icon)*/
body {
  align-items: center;
  padding: 40px;
  margin: 0;
  background-color: #fff; 
}

.container {
  padding: 150px 0 0 150px;
}

.logo-nav {
  height: 55%;
  float: left;
  display: flex;
  position: absolute;
  top: 19px;
  left: 22px;
}

#logo-nav {
  height: 50px;
  width: auto;
  display: flex;
  position: fixed;
  margin-top: 18px;
  margin-left: 22px;
}

nav {
  font-family: 'Poppins', sans-serif;
  color: #333333;
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  top: 0;
  height: 110px;
  background-color: #fff;
}

nav .links {
  float: right;
  padding-top: 0px;
  padding-right: 30px;
  margin-left: 40px;
  width: 40%;
  height: 75%;
  display: flex;
  justify-content: right;
  align-items: center;
}

nav .links li {
  list-style: none;
}

nav .links a {
  display: block;
  padding-top: 15px;
  padding-right: 22px;
  padding-bottom: 15px;
  padding-left: 60px;
  font-size: 1.6rem;
  font-weight: lighter;
  color: #333333;
  text-decoration: none;
}

nav .links a:hover {
  display: block;
  padding-top: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
  padding-left: 60px;
  font-size: 1.7rem;
  font-weight: 600;
  color: #ec5fd2;
  text-decoration: none;
}

/* Footer */
.footer-basic {
  margin-top: 0px;
  padding: 40px 0;
  background-color: #fcd51a;
}

.footer-basic ul {
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-basic li {
  padding: 0 10px;
}

.footer-basic ul a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.footer-basic ul a:hover {
  opacity: 1;
  color: #fff;
}

.footer-basic .social {
  text-align: center;
  padding-bottom: 15px;
  color: #333;
}

.footer-basic .social > a {
  font-size: 16px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  border: 1px solid #333;
  margin: 0 8px;
  color: inherit;
  opacity: 0.80;
}

.footer-basic .social > a:hover {
  opacity: 0.7;
  border: none;
  background-color: #ffaa22;
  transition: 0.3s ease-in-out;
}

.footer-basic .copyright {
  margin-top: 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0;
}

/* Media Queries */
/* Medium-sized screens */
@media screen and (max-width: 1200px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 3rem;
  }

  p {
    font-size: 1.3rem;
  }

  .btn {
    font-size: 1.5rem;
    padding: 1.5rem 0;
  }

  /* Hamburger icon */
  nav .icon-burger {
    display: block;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
  }

  nav .icon-burger .line {
    width: 30px;
    height: 5px;
    background-color: #e3c0f9;
    margin: 5px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
  }
}

/* Small screens */
@media screen and (max-width: 810px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  p {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 1.3rem;
    padding: 1.3rem 0;
  }

  nav .links {
    padding-right: 10px; 
  }

  nav .logo {
    float: none;
    width: auto;
    justify-content: center;
  }

  nav .links {
    float: none;
    position: fixed;
    z-index: 9;
    left: 1%;
    top: 110px;
    width: 80%;
    height: 100%;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    line-height: 75px;
    padding: 0px;
    background-color: #e3c0f9;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    display: none;
  }

  nav .links a {
    font-size: 1.5rem;
  }

  nav :checked ~ .links {
    bottom: 0;
    display: block;
    align-items: center;
  }
/* Hamburger icon */
nav .icon-burger {
  display: block;
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
}

nav .icon-burger .line {
  width: 30px;
  height: 5px;
  background-color: #e3c0f9;
  margin: 5px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}
}

  nav :checked ~ .icon-burger .line:nth-child(1) {
    transform: translateY(10px) rotate(225deg);
  }

  nav :checked ~ .icon-burger .line:nth-child(3) {
    transform: translateY(-10px) rotate(-225deg);
  }

  nav :checked ~ .icon-burger .line:nth-child(2) {
    opacity: 0;
  }

/* Extra Small screens*/
@media screen and (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  .btn {
    font-size: 1.2rem;
    padding: 1rem 0;
  }

  nav .links {
    padding-right: 5px;
  }

    /* Hamburger icon*/
    nav .icon-burger {
      display: block;
      position: absolute;
      right: 5%;
      top: 50%;
      transform: translateY(-50%);
    }
  
    nav .icon-burger .line {
      width: 30px;
      height: 5px;
      background-color: #e3c0f9;
      margin: 5px;
      border-radius: 5px;
      transition: all 0.3s ease-in-out;
    }
  }