/* Reset some default styles */
*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    user-select: none;
}
body,
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Top navigation bar */
.top-nav {
    min-height: 50px;
    background-color: #333;
    color: white;
    padding: 10px 20px;
}

/* Logo styles */
.logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
}

/* Desktop navigation links */
.nav-links {
    display: flex;
}

.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;
}

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;
  }
  footer{
    background-color: black;
    text-align: center;
    color: white;
  }
  .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 */
}

.prenextbtndiv button {
    padding: 10px;
    background-color: white;
    border: none;
    box-shadow: 0px 0px 2px rgb(57, 40, 40);
    border-radius: 5px;
    width: 90px;
}

/* 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: fixed;
        top: 15px;
        right: 15px;
        z-index: 2;
    }

    .bar {
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 4px 0;
        transition: 0.3s;
    }

    .menu-btn.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .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;
      }
      

}


@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;
    }
}

