@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
:root {
  --primary-color: #55dde0;
  --secondary-color: #006d77;
  --third-color: #edf6f9;
  --button-color: #ffddd2;
  --fifth-color: #e29578;
}
body,
html {
  margin: 0;
  padding: 0;
  font-family: "Open Sans";
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  background-color: rgba(0, 0, 0, 0.6);
  background-blend-mode: multiply;
  color: #ffffff; /* Menyesuaikan warna teks agar tetap terlihat */
}
.profile-header,
header {
  background: linear-gradient(to right, #edf6f9, var(--primary-color));
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
header,
.register-section,
.login-section,
#newtonLabWrapper,
.quiz-container,
.laws-section {
  background-color: rgba(0, 0, 0, 0.6); /* Background dengan opacity 60% */
  border-radius: 0px; /* Opsi: Tambahkan radius untuk tampilan lebih baik */
  padding: 0px;
}
.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
}
.logo-icon {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}
.logo-text h1 {
  color: var(--secondary-color);
  margin: 0;
  font-size: 24px;
}
.logo-text p {
  margin: 0;
  color: var(--secondary-color);
  font-size: 14px;
}
#gayaGesek {
  background-color: #edf6f9;
  padding: 20px;
}
#gayaGesek h2 {
  font-size: 30px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}
#gayaGesek h3 {
  font-size: 25px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  margin-left: 50px;
}
#gayaGesek p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--secondary-color);
}
.law-text.teori {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 10px;
  max-width: 600px;
  align-items: left !important;
  align-content: left !important;
  text-align: left !important;
}
.law-text.teori p,
.law-text.teori ul {
  font-size: 16px;
  color: #ffffff !important;
}
.law-text.teori p {
  margin-bottom: 0px;
}
.law-text.teori ul {
  list-style-type: disc;
}
.law-text.teori p sub {
  font-size: 14px;
}
.law-text.teori ul li {
  margin-bottom: 5px;
}
.logo-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.logo-link:hover {
  color: inherit;
  text-decoration: none;
}
.hero {
  position: relative;
  text-align: center;
  color: #ffffff; /* Warna teks */
}

.hero img {
  width: 100%; /* Sesuaikan ukuran gambar dengan lebar kontainer */
  max-width: 1200px; /* Tetapkan ukuran maksimum untuk gambar */
  height: auto; /* Pastikan rasio aspek tetap */
  margin: 0 auto; /* Pusatkan gambar */
  display: block;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(
    0,
    0,
    0,
    0.6
  ); /* Latar belakang transparan untuk teks */
  padding: 20px;
  border-radius: 10px;
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 30px;
  margin-top: 0px;
  color: var(--button-color);
}
.hero p {
  color: var(--button-color);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.simulation-container {
  background-color: var(--background-color);
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 800px;
}
.controls {
  margin-bottom: 20px;
}
.control-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.control-item label {
  flex: 1;
  color: var(--text-color);
}
.control-item input {
  flex: 2;
  margin: 0 20px;
}
.control-item span {
  flex: 0 0 50px;
  text-align: right;
  color: var(--text-color);
}
.results {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 5px;
  color: var(--text-color);
}
.simulation-area {
  background-color: rgba(255, 0, 0, 0.1);
  height: 200px;
  position: relative;
  overflow: hidden;
}
.simulation-area div {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  top: 75px;
}
.hero {
  text-align: center;
}
.content {
  background-color: rgba(0, 109, 119, 0.8);
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 800px;
  margin-bottom: 20px;
}
.content h2 {
  color: #55dde0;
  font-size: 24px;
  position: relative;
}
.content p {
  color: #edf6f9;
  position: relative;
  font-size: 18px;
}
.icon {
  width: 80px;
  height: auto;
  margin-top: 10px;
}
.laws-section {
  display: flex;
  flex-direction: column;
  align-items: left;
  padding: 10px;
  background-color: var(--third-color);
  align-content: left !important;
  text-align: left !important;
}
.law-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0px 0;
  max-width: 1500px;
}
.law-item.law-left {
  flex-direction: row;
}
.law-item.law-right {
  flex: 0 0 200px;
  padding: 0 20px;
}
.law-text {
  flex: 1;
  padding: 0 20px;
}
.law-text h3 {
  font-size: 30px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}
.law-text p {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  margin-right: 50px;
}
.teori {
  margin-left: 50px;
}
.law-image {
  width: 500px;
  height: auto;
}
.box-container {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  margin: 0 auto;
  max-width: 1100px;
  text-align: center;
  gap: 50px;
}
.box {
  background-color: #006d77;
  color: #edf6f9;
  padding: 20px;
  border-radius: 10px;
  width: 30%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-decoration: none;
}
.box:hover {
  transform: scale(1.05);
}
.box-pic {
  width: 135px;
  height: auto;
  margin-bottom: 20px;
}
.box-icon {
  width: 130px;
  margin-bottom: 20px;
  border-radius: 10px;
}
h3 {
  font-size: 26px;
  margin-top: 55px;
  margin-bottom: 10px;
}
p {
  font-size: 16px;
  line-height: 1.5;
}
.box:hover video {
  outline: none;
  border: none;
}
#simulationCanvas {
  background-color: #ffffff;
  border: 2px solid #2f4858;
  margin-top: 20px;
  width: 100%;
  height: auto;
}

.controls,
.output {
  background-color: #33658a;
  color: #f6ae2d;
  padding: 15px;
  margin-top: 20px;
  border-radius: 5px;
}

.start-button {
  background-color: transparent;
  color: var(--secondary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}
.start-button:active {
  color: var(--fifth-color-color);
}
.start-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--third-color);
}
.learn-more-button {
  background-color: var(--button-color);
  color: var(--secondary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 150px;
}
button:hover {
  background-color: var(--fifth-color);
  color: var(--third-color);
  border: none;
}
#newtonLabWrapper {
  #newtonLab {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 20px;
    max-width: 1000px;
    margin: 50px auto;
    text-align: center;
  }
  h2 {
    color: var(--button-color);
    font-size: 32px;
  }
  .controls {
    background-color: var(--secondary-color);
    text-align: left;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--button-color);
  }
  button {
    background-color: var(--button-color);
    color: var(--button-text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 0px;
    margin-right: 100px;
  }
  button:hover {
    background-color: var(--fifth-color);
    color: var(--third-color);
    border: none;
  }
  #simulationCanvas {
    background-color: #ffffff;
    border: 2px solid #000000;
    margin-top: 20px;
    width: 100%;
    height: 200px;
  }
  .output {
    margin-top: 20px;
    background-color: var(--secondary-color);
    color: var(--button-color);
    padding: 15px;
    border-radius: 10px;
  }
  .control-item input[type="number"] {
    max-width: 50px;
    padding: 5px;
    font-size: 16px;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 10px;
  }
  .control-item input[type="range"] {
    max-width: 450px;
    padding: 5px;
    font-size: 16px;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 10px;
  }
}
#newtonQuizWrapper .quiz-container {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 20px;
  max-width: 1000px;
  margin: 50px auto;
  text-align: left;
}
#newtonQuizWrapper h1 {
  text-align: left;
  color: var(--button-color);
  font-size: 2rem;
  margin-bottom: 30px;
}
#newtonQuizWrapper h3 {
  color: var(--button-color);
  font-size: 1.2rem;
}
#newtonQuizWrapper label {
  display: block;
  margin: 8px 0;
  font-size: 1rem;
  color: var(--button-color);
  margin-left: 40px;
}
#newtonQuizWrapper input[type="text"],
#newtonQuizWrapper select {
  width: 100px;
  padding: 8px;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}
#newtonQuizWrapper button[type="button"] {
  display: block;
  width: 150px;
  margin: 20px auto;
  padding: 10px;
  background-color: var(--fifth-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}
#newtonQuizWrapper button[type="button"]:hover {
  background-color: #ff7a66;
}
#newtonQuizWrapper .question {
  margin-bottom: 20px;
}
#newtonQuizWrapper .options {
  display: flex;
  flex-direction: column;
}
#newtonQuizWrapper .options label {
  margin-bottom: 5px;
  font-size: 1rem;
}
#newtonQuizWrapper #scoreDisplay {
  text-align: center;
  margin-top: 20px;
  font-size: 1.2rem;
  color: var(--button-color);
}

@media (max-width: 768px) {
  #newtonQuizWrapper .quiz-container {
    width: 95%;
  }
  #newtonQuizWrapper h1 {
    font-size: 1.5rem;
  }

  .law-item {
    flex-direction: column !important;
  }
  .law-text {
    padding: 0;
    margin-bottom: 0px;
    align-items: left !important;
    align-content: left !important;
    text-align: left !important;
  }
  .law-image {
    display: none;
  }

  header {
    flex-direction: column;
    align-items: left;
    text-align: left;
    position: fixed;
    margin-bottom: 20px;
  }
  body {
    padding-top: 200px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-text h1 {
    font-size: 20px;
  }

  .button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .box-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .box {
    width: 250px;
  }

  .law-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .law-image {
    width: 80%;
    margin-bottom: 20px;
  }

  .control-item {
    flex-direction: column;
    align-items: stretch;
  }

  #newtonQuizWrapper .quiz-container {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 20px;
    max-width: 420px;
    margin: 50px 10px;
    text-align: left;
  }

  #newtonLabWrapper {
    #newtonLab {
      background-color: var(--secondary-color);
      padding: 30px;
      border-radius: 20px;
      max-width: 1000px;
      margin: 50px 10px;
      text-align: left;
    }
    h2 {
      color: var(--button-color);
      font-size: 32px;
    }
    .controls {
      background-color: var(--secondary-color);
      text-align: left;
      margin-bottom: 20px;
      font-size: 18px;
      color: var(--button-color);
    }
    button {
      background-color: var(--button-color);
      color: var(--button-text-color);
      border: none;
      padding: 10px 20px;
      border-radius: 10px;
      cursor: pointer;
      font-size: 16px;
      margin-top: 0px;
      margin-right: 100px;
    }
    button:hover {
      background-color: var(--fifth-color);
      color: var(--third-color);
      border: none;
    }
    #simulationCanvas {
      background-color: #ffffff;
      border: 2px solid #000000;
      margin-top: 20px;
      width: 100%;
      height: 100px;
    }
    .output {
      margin-top: 20px;
      background-color: var(--secondary-color);
      color: var(--button-color);
      padding: 15px;
    }

    .control-item {
      flex-direction: column;
    }

    .control-item input[type="number"] {
      max-width: 50px;
      padding: 5px;
      font-size: 16px;
      text-align: left;
      border: 1px solid #ccc;
      border-radius: 5px;
    }
    .control-item input[type="range"] {
      max-width: 450px;
      padding: 5px;
      font-size: 16px;
      text-align: left;
      border: 1px solid #ccc;
      border-radius: 5px;
      margin-left: 10px;
    }
  }

  #newtonQuizWrapper .quiz-container {
    width: 95%;
    padding: 20px;
  }

  #newtonQuizWrapper h1 {
    font-size: 1.5rem;
  }

  .start-button,
  button {
    padding: 10px 15px;
    font-size: 14px;
  }
}

.alert-box {
  background-color: #e59866;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 1em;
  text-align: center;
}

/* Update login button styling */
.login-button {
  background-color: var(--button-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.login-button:hover {
  background-color: #e29578;
}

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.2)
  );
  z-index: 1;
}

.hero-section .content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 20px;
  color: #fff;
}

.hero-section .content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-section .content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-section .start-button {
  background-color: #ffddd2;
  color: #006d77;
  padding: 10px 20px;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.hero-section .start-button:hover {
  background-color: #e29578;
}

/* Login Page Specific Styles */
.login-header {
  background: linear-gradient(
    to right,
    var(--third-color),
    var(--primary-color)
  );
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-back-button {
  background-color: var(--button-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  border: none;
}

.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding-top: 100px;
}

.login-box {
  background-color: var(--secondary-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  color: #ffffff;
  text-align: center;
}

.login-box h2 {
  color: var(--button-color);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.login-box label {
  display: block;
  font-size: 1rem;
  margin: 15px 0 5px;
  text-align: left;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100% !important;
  padding: 10px !important;
  font-size: 1rem !important;
  border-radius: 5px !important;
  border: none !important;
  margin-bottom: 10px !important;
  box-sizing: border-box !important;
}

.login-link {
  color: var(--button-color);
  font-size: 0.9rem;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

.login-button {
  background-color: var(--button-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.login-button:hover {
  background-color: #e29578;
}

/* Register Page Specific Styles */
.register-header {
  background: linear-gradient(
    to right,
    var(--third-color),
    var(--primary-color)
  );
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.register-back-button {
  background-color: var(--button-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  border: none;
}

.register-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding-top: 100px;
  margin-top: 20px;
}

.register-box {
  background-color: var(--secondary-color);
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 90%; /* Adjusts to fit smaller screens */
  max-width: 600px; /* Sets the maximum width to 600px */
  color: #ffffff;
  text-align: center;
}

.register-box h2 {
  color: var(--button-color);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.register-box label {
  display: block;
  font-size: 1rem;
  margin: 15px 0 5px;
  text-align: left;
}

.requirement-text {
  text-align: left;
  font-size: 0.9rem; /* Adjust font size as needed */
  color: #ffffff; /* Use a color that matches your theme */
  margin-top: 5px;
  margin-bottom: 10px;
}

.register-box input[type="text"],
.register-box input[type="email"],
.register-box input[type="password"] {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  margin-bottom: 10px;
}

.register-link {
  color: var(--button-color);
  font-size: 0.9rem;
  text-decoration: none;
}

.register-link:hover {
  text-decoration: underline;
}

.register-button {
  background-color: var(--button-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.register-button:hover {
  background-color: #e29578;
}

/* Profile Section */
.profile-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.profile-box {
  background-color: #006d77;
  padding: 50px;
  border-radius: 15px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 250px;
  margin-bottom: 50px;
}

.profile-icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.profile-icon {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #ffffff;
}

.profile-form {
  width: 100%;
}

.username-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.username-section label {
  font-size: 1.2rem;
}

.change-button {
  background-color: #ffddd2;
  color: #006d77;
  padding: 5px 15px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

hr {
  border: 0.5px solid #ffffff;
  width: 100%;
  margin: 20px 0;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

label {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
}

input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: none;
  border-radius: 5px;
}

.password-requirements {
  font-size: 0.9rem;
  color: #ffddd2;
  margin-top: 5px;
}

.change-password-button {
  background-color: #ffddd2;
  color: #006d77;
  padding: 10px 20px;
  margin-top: 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.logout-button {
  background-color: #ffddd2;
  color: #006d77;
  padding: 10px 20px;
  margin-top: 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.profile-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-bottom: 30px; /* Adds spacing below the profile box */
}

.profile-box {
  width: 600px; /* Increase width to make it wider */
  max-width: 90%; /* Ensure it is responsive on smaller screens */
  background-color: #005f5f; /* Background color */
  border-radius: 10px;
  padding: 20px;
  text-align: left; /* Align text to the left */
  margin-bottom: 20px; /* Adds spacing at the bottom of the box */
}

.username-section,
.password-section {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #005f5f; /* Match the box color */
  border-radius: 8px;
}

.username-section h3,
.password-section h3 {
  font-weight: bold;
  margin-bottom: 10px;
}

.username-section label,
.password-section label {
  display: block;
  margin-bottom: 5px;
}

.input-box {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.change-button {
  background-color: #ffc6b6;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.profile-icon-container {
  margin-bottom: 20px;
}

.profile-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #fff;
}

.change-password-button {
  background-color: #ffc6b6;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.alert-box {
  margin-top: 10px;
  padding: 10px;
  background-color: #ffdddd;
  border-left: 6px solid #f44336;
  margin-bottom: 20px;
}

.alert {
  margin: 0;
  font-weight: bold;
}
