* {
  margin: 0;
  padding: 0;
}

body {
  font-weight: bold;
}

.main {
  min-height: 100vh;
  height: 100%;
  width: 100%;
  background: var(--bg-colour);
  font-family: Times-New-Roman, serif;
  position: relative;
}

nav {
  width: 84%;
  margin: auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  margin-top: 1%;
  width: 100px;
}

.burger {
  display: none;
  cursor: pointer;
}

nav ul {
  flex: 1;
  text-align: center;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin-left: 10px;
  margin-right: 20px;
  font-size: 25px;
  text-align: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--secondary-colour);
  display: inline-block;
  transition: all 0.2s;
}

nav ul li a span {
  text-decoration: none;
  color: var(--secondary-colour);
  display: inline-block;
  transition: all 0.2s;
}

nav ul li a:hover {
  color: #3d49b9;
  transform: scale(1.05);
}

nav ul li a:hover span {
  color: #3d49b9;
  transform: scale(1.45);
}

.active {
  color: #4551c1;
}

#icon {
  border: 3px solid var(--secondary-colour);
  border-radius: 55px;
  margin-right: 40px;
  width: 30px;
  cursor: pointer;
  transform: scale(1);
  transition: all 0.2s;
}

#icon:hover {
  transform: scale(1.2);
}

.nav {
  margin-top: 1%;
}

.lang-box a:hover {
  color: #3d49b9;
}

.en {
  display: flex;
  justify-content: space-between;
  width: 140px;
}

.ar {
  display: flex;
  justify-content: space-between;
  width: 140px;
}

.en:before {
  background-image: url("https://flagsapi.com/GB/flat/32.png");
  content: "";
  display: block;
  width: 32px;
  height: 32px;
}

.ar:before {
  background-image: url("https://flagsapi.com/SA/flat/32.png");
  content: "";
  display: block;
  width: 32px;
  height: 32px;
}

.info {
  margin-left: 8%;
  margin-top: 15%;
}

.info h1 {
  font-size: 70px;
  color: var(--secondary-colour);
  margin-bottom: 20px;
}

span {
  color: #3d49b9;
}

.info p {
  color: var(--secondary-colour);
  line-height: 22px;
}

.info a {
  background: var(--secondary-colour);
  padding: 10px 18px;
  text-decoration: none;
  color: var(--primary-colour);
  display: inline-block;
  margin: 30px 0;
  border-radius: 5px;
}

.img-box {
  width: 30%;
  height: 80%;
  position: absolute;
  bottom: 0;
  right: 0px;
}

.img-box img {
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(-50%);
  transition: bottom 1s, left 1s;
}

.img-box:hover .back-img {
  bottom: 40px;
}

.img-box:hover .maina-img {
  left: 40px;
}

.butt {
  transform: scale(1.2);
  transition: all 0.2s;
}

.butt:hover {
  transform: scale(1.35);
}

.social-links {
  margin-left: 8.25%;
  margin-top: 5px;
}

.social-links a {
  font-size: 30px;
  color: var(--secondary-colour);
  margin-right: 25px;
  display: inline-block;
  transition: all 0.2s;
}

.social-links a:hover {
  color: #3d49b9;
  transform: scale(1.3);
}

:root {
  --primary-colour: #efefef;
  --secondary-colour: #212121;
  --bg-colour: #efefef;
  --accordion-bg: #efefef;
}

.dark-theme {
  --primary-colour: #212121;
  --secondary-colour: #efefef;
  --bg-colour: #636363;
  --accordion-bg: #969696;
}

.body {
  margin-left: 8%;
  margin-top: 5%;
}

.body h1 {
  font-size: 60px;
  color: var(--secondary-colour);
  margin-bottom: 20px;
}

.body h2 {
  font-size: 30px;
  color: var(--secondary-colour);
  margin-bottom: 20px;
}

.body p {
  color: var(--secondary-colour);
  font-size: 22px;
  line-height: 22px;
}

.body p a {
  color: #2134dd;
}

.body p a:hover {
  color: #3d49b9;
  font-size: 25px;
}

.body ul {
  color: var(--secondary-colour);
  font-size: 22px;
  line-height: 22px;
}

.ph {
  margin-left: 7%;
}

.body a {
  font-size: 27px;
  cursor: pointer;
  color: var(--secondary-colour);
}

.body a:hover {
  color: #3d49b9;
  font-size: 30px;
}

.body ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 15px;
  font-size: 25px;
}

.body img {
  display: block;
  border: 5px solid #212121;
  border-radius: 10px;
}

.arr {
  font-size: 30px;
  color: var(--secondary-colour);
}

.arr:hover {
  color: #3d49b9;
  font-size: 30px;
}

.iel {
  width: 55%;
  height: 45%;
}

.jav {
  width: 65%;
  height: 85%;
}

.accordion {
  margin-left: 5%;
  width: 80%;
}

.accordion li {
  color: #2134dd;
  list-style: none;
  width: 100%;
  margin: 20px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 6px 6px 10px -1px #3d49b9, -6px -6px 10px -1px #3d49b9;
  background-color: var(--accordion-bg);
}

.accordion li img {
  display: inline-block;

  margin-left: 90px;
  margin-top: 30px;
  max-width: 90%;
  max-height: 600px;
  border: 10px solid #212121;
  border-radius: 10px;
}

.accordion li .calc {
  margin-left: 475px;
}

.accordion li .conv {
  margin-left: 400px;
}

.accordion li label {
  display: flex;
  align-items: center;
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

label::before {
  content: "+";
  margin-right: 10px;
  font-size: 24px;
  font-weight: 600;
}

input[type="checkbox"] {
  display: none;
}

.accordion .content {
  margin: 0 auto;
  padding: 0 10px;
  line-height: 26px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s, padding 0.5s;
}

.accordion .content h3 {
  color: var(--secondary-colour);
}

.accordion .content h2 {
  color: #212121;
}

.accordion .content h3 a {
  color: var(--secondary-colour);
}

.accordion input[type="checkbox"]:checked + label + .content {
  max-height: 100%;
  padding: 10px 10px 20px;
}

.accordion input[type="checkbox"]:checked + label::before {
  content: "-";
}

.accordion h1 {
  line-height: 1;
}

.container {
  padding-right: 0px;
  padding-left: 0px;
  margin-right: 0px;
  margin-left: 0px;
  color: var(--secondary-colour);
  font-size: 25px;
  line-height: 30px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  grid-template-rows: 0.00001fr 0.00001fr 0.00001fr 0.00001fr 0.00001fr 0.00001fr;
  gap: 15px;
}

.row {
  padding-right: 0px;
  padding-left: 0px;
  padding-bottom: 2px;
  margin-right: 0px;
  margin-left: 0px;
  text-align: left;
}

.col {
  padding-top: 5px;
}

/* Adjust img-box for medium screens (max-width: 1280px) */
@media (max-width: 1280px) {
  .img-box {
    width: 20%;
    height: 80%;
    position: absolute;
    margin-left: 5%;
  }

  .calc {
    margin-right: 25%;
  }

  .conv {
    margin-right: 15%;
  }
}

/* Full-screen menu styles */
.burger-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  background-color: var(--bg-colour); /* Matches the original background */
  color: var(--primary-colour);
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}

.burger-menu.active {
  display: flex;
}

/* Ensure burger menu items are aligned to the left */
.burger-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.burger-menu ul li {
  margin: 15px 0;
  font-size: 25px;
  text-align: left; /* Align text to the left */
  display: flex;
  justify-content: flex-start; /* Ensure items are aligned to the left */
  align-items: center; /* Align items vertically */
}

.burger-menu ul li a {
  text-align: left; /* Ensure text inside links is aligned to the left */
  text-decoration: none;
  color: var(--secondary-colour);
  flex: 1; /* Push the "X" button to the right */
}

.burger-menu ul li span {
  margin-left: auto; /* Ensure the "X" button stays on the far right */
}

/* Ensure span and text have the same color when active */
.burger-menu ul li a.active,
.burger-menu ul li a.active span {
  color: #4551c1; /* Matches the active color */
}

/* Style the burger menu button */
.burger {
  color: var(--secondary-colour); /* Match the list items' color */
  font-size: 30px;
  cursor: pointer;
}

/* Hide the default nav on smaller screens */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .burger {
    display: block;
    cursor: pointer;
  }

  .img-box {
    width: 15%;
    height: auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .accordion {
    width: 90%;
  }
  .accordion li {
    width: 90%;
  }
  .accordion li img {
    max-width: 80%;
    max-height: 300px;
    padding: 0;
    margin: 0;
  }
}
