/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color:azure;
  }
  
  /* Header */
  header {
    display: flex;
    height: 3em;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(192, 204, 203, 0.4);
  }
  header .logo {
    display: flex;
    width: fit-content;
    align-items: center;
    height: 100%;
    font-size: 24px;
    font-weight: bold;
  }
  .logo img{
    margin: 0 10px;
    width: 2.718em;
    height: 2.718em;
    border-radius: 50%;
}
  
  header nav {
    display: flex;
    gap: 20px;
  }
  
  header nav, a {
    color: black;
    text-decoration: none;
    font-size: 16px;
  }
  
  header nav a:hover {
    text-decoration: underline;
  }
  
  /* Main Container */
  .main-container {
    display: flex;
    flex: 2;
    padding: 20px;
    width: 90vw;
    max-width: 100vw;
    margin: 0 auto; /* Center the container */
    position: relative;
  }
  
  /* Main Content */
  .main-content {
    flex: 1;
    padding: 20px;
    text-align: center;
    margin: auto; /* Space for the ads section */
  }
  
  .main-content h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
  }
  
  .main-content .topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
  }
  
  .main-content .topics .topic {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .main-content .topics .topic:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .main-content .topics .topic h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
  }
  
  .main-content .topics .topic p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
  }
  
  /* App Section */
  .app-section {
    margin-top: 60px;
    text-align: center;
  }

  .app-section h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
  }

  .app-section .app-logo {
    margin-bottom: 20px;
  }
  
  .app-logo{
    margin: 0 10px;
    width: 2.718em;
    height: 2.718em;
    border-radius: 50%;
  }
  
  .app-section .app-stores {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .app-section .app-stores img {
    margin: 0 10px;
    height: 2.718em;
    cursor: pointer;
  }
  
  /* Ads Section */
  .ads-section {
    height: 450px;
    right: 50px; /* 50px margin from the right */
    top: 100px; /* Adjust based on header height */
    width: 200px; /* Fixed width for ads */
    padding: 20px;
    background-color: white;
    border-left: 1px solid #ddd;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
  }
  
  .ads-section h2 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
  }
  
  .ads-section .ad {
    margin-bottom: 20px;
    text-align: center;
  }
  
  .ads-section .ad img {
    max-width: 100%;
    border-radius: 8px;
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    margin-top: auto;
  }

  #abt{
    width: 70%;
    padding: 20px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    font-size: large;
    font-style: oblique;
  }

  
@media only screen and (max-width: 600px) {
  body{
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
  }
  .logo img{
    margin: 0 3px;
    width: 2em;
    height: 2em;
    border-radius: 50%;
}

  header nav {
    display: flex;
    gap: 10px;
  }
  
  header nav, a {
    color: black;
    text-decoration: none;
    font-size: 15px;
  }
  .main-container {
   flex-direction: column;
    position: relative;
  }
  .main-content {
    flex: 1;
    padding: 20px;
    text-align: center;
    margin: 0; /* Space for the ads section */
  }
  .ads-section {
    height: 100px;
    position: relative;
    margin: 0 auto 30px auto;
  }
}