/* Reset some default styles */
* {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  box-sizing: border-box;
  padding: 0px;
  margin: 0px;
}

*::-webkit-scrollbar {
  width: 0px;
}
body,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Top navigation bar */
.top-nav {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  min-height: 50px;
  position: relative;
}

/* Logo styles */
.logo a {
  color: white;
  text-decoration: none;
  font-size: 24px;
}

/* Desktop navigation links */
.nav-links {
  display: flex;
  padding-top: 50px;
}

.nav-links li {
  position: relative;
  margin-right: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

/* Dropdown styles */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #544b4b;
  min-width: 200px;
  width: 100vw;
  max-width: 300px;
  z-index: 1;
}

.nav-links li:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  border: 1px solid rgb(96, 96, 111);
  color: white;
  padding: 10px;
  display: block;
  text-decoration: none;
}

rt {
  color: blue;
}

/* Rest of your styles */
/* Rest of the CSS remains the same until the mobile view media query */
.mainbody {
  width: 100vw;
  text-align: center;
}
/* Style the header */
header {
  background-color: #0077b6;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-container img {
  width: 80px;
  height: 80px;
  margin-right: 10px;
}

.header-container h1 {
  font-size: 24px;
}

/* Style the hero section */
.hero-section {
  text-align: center;
  padding: 40px 0;
}

.hero-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-section p {
  font-size: 18px;
}

/* Style the features section */
.features-section {
  display: flex;
  justify-content: space-between;
  padding: 40px;
  width: 100vw;
  overflow-x: scroll;
}

.feature {
  flex-basis: calc(33.33% - 20px);
  padding: 20px;
  margin: 10px;
  min-width: 250px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.feature h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.feature p {
  font-size: 16px;
}

/* Style the CTA (Call to Action) section */
.cta-section {
  background-color: #0077b6;
  color: #fff;
  text-align: center;
  padding: 40px 0;
}

.cta-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 20px;
}

.cta-section a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0096c7;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
}

/* Style the main content section */
.main-content {
  padding: 40px;
  background-color: #f9f9f9;
  color: #333;
}

.main-content h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.main-content h2 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 10px;
}

.main-content p {
  font-size: 16px;
  margin-bottom: 20px;
}

.main-content ul {
  list-style-type: disc;
  padding-left: 20px;
  font-size: 16px;
  margin-bottom: 20px;
}

.main-content ul li {
  margin-bottom: 10px;
}

/* Style the contact section */
.contact-section {
  text-align: center;
  padding: 40px 0;
}

.contact-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-section p {
  font-size: 18px;
  margin-bottom: 20px;
}

.contact-section a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0096c7;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
}
#downloadButton{
  padding:10px 20px;
  margin: 10px;
  background-color: white;
  border: none;
  font-size: 20px;
  border-radius: 5px;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
}
.chooselanguagediv {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
  padding: 10px;
  background-color: #565151;
}

.language-button {
  flex: 1;
  width: 100px;
  min-height: 50px;
  /* Adjust this value as needed */
  padding: 10px 20px;
  margin: 10px;
  background-color: #ffffff;
  color: #333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0px 3px 6px rgba(23, 24, 23, 0.3);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.language-button:hover {
  background-color: #f0f0f0;
  box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.2);
}

table {
  width: 80%;
  max-width: 1200px;
  table-layout: fixed;
  /* Prevent columns from expanding based on content */
  border-collapse: collapse;
  margin: 10px auto;
  /* Center-align the table horizontally */
  overflow-x: scroll;
  /* Add horizontal scrolling for smaller screens */
}

th,
td {
  width: 100%;
  /* Each column takes up 33% of the viewport width */
  overflow-wrap: break-word;
  padding: 10px;
  text-align: center;
  border: 1px solid #ccc;
}

th {
  background-color: #f9f9f9;
}

/* Style the footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
}

.footer-container {
  padding-left: 10px;
  padding-right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-left p:last-child {
  font-style: italic;
}

.footer-right p {
  font-size: 14px;
}

/* Style the Japanese sentence */
.footer-left p:last-child {
  font-size: 18px;
  font-weight: bold;
  color: #0096c7; /* Change this color to match your design */
}

/* Style the copyright notice */
.footer-right p {
  font-size: 14px;
}

/* Add a hover effect for links if needed */
a:hover {
  text-decoration: underline;
}

.prenextbtndiv {
  display: flex;
  align-items: center;
  /* Vertically center align items */
  justify-content: space-between;
  /* Space items evenly along the main axis */
  width: 100vw;
  height: 60px;
  padding: 0 20px;
  /* Add some padding on the sides */
}

/* Style the 'Next' button */
.prenextbtndiv button {
  padding: 10px 20px;
  background-color: #0077b6;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
}

.prenextbtndiv button:hover {
  background-color: #0096c7;
}
.footer-links a{
  text-decoration: none;
  color: white;
}

/* Mobile view media query */
@media screen and (max-width: 768px) {
  .nav-links {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.9);
      z-index: 1;
      overflow-y: auto;
  }

  .nav-links.active {
      display: block;
  }

  .nav-links li {
      margin: 0;
      padding: 10px;
      text-align: center;
      border: white 1px solid;
  }

  .menu-btn {
      display: block;
      position: absolute;
      top: 15px;
      right: 15px;
      z-index: 2;
  }

  .bar {
      width: 30px;
      height: 3px;
      background-color: white;
      margin: 4px 0;
      transition: 0.3s;
  }

  .menu-btn.activemenu .bar:nth-child(1) {
      transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-btn.activemenu .bar:nth-child(2) {
      opacity: 0;
  }

  .menu-btn.activemenu .bar:nth-child(3) {
      transform: rotate(45deg) translate(-5px, -6px);
  }

  .activemenu {
      display: block;
      position: fixed;
      top: 15px;
      right: 15px;
      z-index: 2;
  }

  .mainbody {
      width: 100vw;
      text-align: center;
  }

  table {
      width: 80%;
      max-width: 1200px;
      table-layout: fixed;
      /* Prevent columns from expanding based on content */
      border-collapse: collapse;
      margin: 10px auto;
      /* Center-align the table horizontally */
      overflow-x: scroll;
      /* Add horizontal scrolling for smaller screens */
  }

  th,
  td {
      width: 100%;
      /* Each column takes up 33% of the viewport width */
      overflow-wrap: break-word;
      padding: 10px;
      text-align: center;
      border: 1px solid #ccc;
  }

  th {
      background-color: #f9f9f9;
  }
  .Phrase-Translation-tbl tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ddd;
  }

  .Phrase-Translation-tbl td ,.Phrase-Translation-tbl th {
    display: block;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
  }
  .Hiragana-Katakana-Table tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ddd;
  }

  .Hiragana-Katakana-Table td, .Hiragana-Katakana-Table th {
    display: block;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
  }
}

@media screen and (max-width: 450px) {
  .mainbody {
      width: 100vw;
      max-width: 100vw;
      overflow: hidden;
      text-align: center;
  }

  table {
      width: 100vw;
      /* Use 100% width to fit the screen */
      table-layout: fixed;
      /* Prevent columns from expanding based on content */
      border-collapse: collapse;
      margin: 10px auto;
      /* Center-align the table horizontally */
      overflow-x: scroll;
      /* Add horizontal scrolling for smaller screens */
  }

  th,
  td {
      width: 100%;
      /* Each column takes up 33% of the viewport width */
      overflow-wrap: break-word;
      padding: 10px;
      text-align: center;
      border: 1px solid #ccc;
  }
  .Phrase-Translation-tbl tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ddd;
  }

  .Phrase-Translation-tbl td ,.Phrase-Translation-tbl th {
    display: block;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
  }
  .Hiragana-Katakana-Table tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ddd;
  }

  .Hiragana-Katakana-Table td, .Hiragana-Katakana-Table th {
    display: block;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
  }
}


.Phrase-Translation-tbl {
  max-width: 100%;
  overflow-x: auto; /* Add horizontal scrolling for smaller screens */
}

.Phrase-Translation-tbl table {
  width: 100%;
  border-collapse: collapse;
}

.Phrase-Translation-tbl th,
.Phrase-Translation-tbl td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #ddd;
}
.Hiragana-Katakana-Table {
  max-width: 100%;
  overflow-x: auto; /* Add horizontal scrolling for smaller screens */
}

.Hiragana-Katakana-Table table {
  width: 100%;
  border-collapse: collapse;
}

.Hiragana-Katakana-Table th,
.Hiragana-Katakana-Table td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #ddd;
}