body {
    margin: 0;
    font-family: Arial, sans-serif;
    /*display: flex;*/
}


/* 🟢 Main Content Area */
.content {
    margin-left: 150px; /* Pushes content to the right of the sidebar */
    margin-top: 10px; /* Avoids overlap with the top navigation */
    padding: 20px;
    flex-grow: 1;
    font-size: 25px;
    width: 70%;
}
 

/* 🟢 Clouds */
.cloud-container {
    background: rgba(127, 255, 255, 1.0);
    margin-left: 0px; /* Same width as sidebar */
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0px;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}

.cloud {
    position: absolute;
    box-shadow: 10px 10px rgba(0, 0, 0, 0.2);
}

#cloud1 {
    background: rgba(255, 255, 255);
    width: 300px;
    height: 100px;
    border-radius: 150px;
    top: 20%;
    left: 80%;
}

#cloud1:after, #cloud1:before {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255);
}

#cloud1:after {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: -50px;
    left: 50px;
}

#cloud1:before {
    width: 170px;
    height: 150px;
    border-radius: 50%;
    top: -90px;
    right: 40px;
}

#cloud2 {
    background: rgba(240, 240, 240);
    width: 200px;
    height: 70px;
    border-radius: 100px;
    top: 60%;
    left: 10%;
}

#cloud2:before {
    content: '';
    position: absolute;
    background: rgba(240, 240, 240);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: -40px;
    right: 10px;
}

#cloud4 {
    background: rgba(255, 255, 255, 0.812);
    width: 150px;
    height: 50px;
    border-radius: 75px;
}







body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
  }
  
  .sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #333;
    z-index: 1000;
  }
  
  .logo-container {
    text-align: center;
    background-color: #222;
    padding: 10px;
  }
  
  .logo-container img {
    height: 50px; /* Adjust size as needed */
  }
  
  .topnav {
    overflow: hidden;
    background-color: #333;
  }
  
  .topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
  }
  .topnav a:hover, .dropdown:hover .dropbtn {
    background-color: #ddd;
    color: black;
  }
  .topnav a.active {
    background-color: #04AA6D;
    color: white;
  }
  
  .topnav .icon {
    display: none;
  }
  
  @media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {display: none;}
    .topnav .dropdown {display: none;}
    .topnav a.icon 
    /*.topnav.responsive .dropdown*/{
      float: right;
      display: block;
    }
    .content {
      margin-left: 10px; /* Pushes content to the right of the sidebar */
      margin-top: 10px; /* Avoids overlap with the top navigation */
      padding: 20px;
      flex-grow: 1;
  }
  }
  
  @media screen and (max-width: 600px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive .icon {
      display: block;
      position: absolute;
      right: 0;
      top: 0;
    }
    .topnav.responsive a, 
    .topnav.responsive .dropdown {
      float: none;
      display: block;
      text-align: left;
    }
    
    /* Fix dropdown content in responsive mode */
    .topnav.responsive .dropdown-content {
      display: none; /* Hide by default */
      position: relative; /* Keep it inside the flow */
      width: 100%; /* Ensure it takes full width */
      box-shadow: none; /* Remove shadow for a flat design */
    }
  
    .topnav.responsive .dropdown:hover .dropdown-content {
      display: block; /* Show when hovered */
    }
  }
  .topnav img.logo {
      width: 70px;
      height: 70px;
      margin-right: 10px;
  }
  .content {
    padding: 16px;
  }
  
  
  .dropdown {
    float: left;
    overflow: hidden;
  }
  
  .dropdown .dropbtn {
    font-size: 16px;  
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
  }
  
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  .dropdown-content a:hover {
    background-color: #ddd;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }


  /*card fliping*/
  .flip-card {
    width: 100px;  /* Increased size */
    height: 100px;
    perspective: 1000px;  /* Creates the 3D effect */
    cursor: pointer;
    display: inline-flex;  /* Keeps it in line with text */
    vertical-align: middle; /* Aligns with text */
    position: relative; /* Ensures better positioning */
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    transform-origin: center; /* Keeps the card centered while rotating */
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}
/*
.flip-card-front {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    border: 2px solid black;
    border-radius: 10px;
    background-color: lightgray;  Default background 
    padding: 5px;
    box-sizing: border-box; Prevents padding from affecting size 
}*/


.flip-card-front {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    white-space: nowrap;
    overflow: hidden;
    border: 2px solid black;
    border-radius: 10px;
    background-color: lightgray;
    padding: 5px;
    box-sizing: border-box;
}


.flip-card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    white-space: nowrap;
    overflow: hidden;
    border: 2px solid black;
    border-radius: 10px;
    background-color: lightgray; /* Default background */
    padding: 5px;
    box-sizing: border-box; /* Prevents padding from affecting size */
}

.flip-card-back {
    background: lightgreen;  /* Back side */
    transform: rotateY(180deg);
}
/* Style for navigation buttons */
.navigation-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px; /* Add some space above the buttons */
    margin-bottom: 20px;
}

.navigation-buttons button {
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    font-size: 16px;
    background-color: rgb(152, 251, 129);
}


/* Keep kanji red in specific sentences */
.kanji {
  color: red;
  font-weight: bold;
  font-size: 30px;
}

.red{
  color:red;
  font-weight: bold;
}
table {
  background-color: rgba(255, 255, 255, 0.853);
  border-collapse: collapse;
  width: 90%;
}

table, th, td {
  border: 2px solid black;
  /*text-align: center;*/
  padding: 20px;
}

table td {
  font-size: 24px; /* Increases font size */
}

/* Ensure inner tables fill the parent cell */
td > table {
  width: 100%; /* Makes the inner table expand fully */
  border-collapse: collapse;
}

/* Keep text aligned properly */
td {
  padding: 10px; /* Keeps padding for other tables */
}




#innerTable {
  padding: 0;
  width: 100%;
  height: 100%;
  vertical-align: top; /* Important if you want it aligned at the top */
}

#innerTable1 {
  width: 100%;
  height: 100%;
  border: none;
}

#innerTable1 td, 
#innerTable1 th {
  border: 1px solid black; /* Change color if needed */
}


#innerTable1 td:nth-child(1){
  width: 25%;
  font-size: 25px;
}

#kanjiTable1, 
#kanjiTable1 tr, 
#kanjiTable1 td {
  height: 100%;
}


/* Apply red color to first column in only kanjiTable1 */
#kanjiTable1 td:nth-child(1) {
  color: red;
}

#kanjiTable1 td:nth-child(2) {
  text-align: left;
}
#kanjiTable4 td:nth-child(1), td:nth-child(2) {
  text-align: center;
}

/* Apply red color to first column in only kanjiTable2 */
#kanjiTable2 td:nth-child(1) {
  color: red; /* Example: you can change the color */
}