
  body {
    margin: 0;
    font-family: Arial, sans-serif;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }
    
    body {
    font-family: sans-serif;
    }
    
    .nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4em;
    background: #fff;
    z-index: 999;
    }
    
    .items-left {
    display: flex;
    align-items: center;
    }
    
    .items-left a {
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
    padding: 0 1em;
    font-weight: 500;
    font-size: 1em;
    }
    
    .logo-container {
      display: flex;
      justify-content: flex-end;
      flex: 1;
    }
    
    .logo {
    font-size: 1.5em;
    color: #ab1c20;
    }
    
    .content {
    width: 100%;
    background: #fff;
    position: relative;
    padding: 0 2em;
    margin-top: 100px; 
    overflow: hidden;
    }
    
    .content img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: top;
    }
    
    @media (max-width: 1024px) {
    .nav {
    height: 80px;
    }
    
    .logo {
    font-size: 1.2em;
    }
    
    .items-left a {
    padding: 0 0.5em;
    font-size: 0.9em;
    }
    
    .content {
    padding: 0 1em;
    }
    }

    @media (max-width: 768px) {
    .nav {
    padding: 1em 2em;
    height: 50px; 
    }
    
    .content {
    padding: 0 1em;
    margin-top: 50px; 
    }
    
    .items-left a {
    padding: 0 0.2em;
    font-size: 0.8em;
    }
    
    .logo {
    font-size: 1.2em;
    }
    
    .content img {
    height: 50vh;
    }
    }
    

    @media (max-width: 480px) {
    .nav {
    padding: 0 0.5em;
    height: 40px; 
    }
    
    .content {
    padding: 0 0.5em;
    margin-top: 40px; 
    }
    
    .items-left a {
    padding: 0 0.1em;
    font-size: 0.7em;
    }
    
    .logo {
    font-size: 1em;
    }
    
    .content img {
    height: 30vh;
    }
    }
    
  .Links{
      text-align: center;
      color: #ab1c20;
      margin-bottom: 50px;
      margin-top: 50px;
      padding-top: 0px;
  }
  .Linkss{
      text-align: center;
      color: #ab1c20;
      margin-bottom: 50px;
      margin-top: 50px;
  }

  .link{
      
      align-items: center;
      display: flex;
      color: #fff5e4;
      background-color: #ab1c20;
      margin: 50px;
      font-size: 23px;
      border-radius: 2px;
      display: inline-block;
      cursor: pointer;
  }
  .links-buttons {
      text-align: center;     
  }

  .link:hover{
      background-color: #fff5e4;
      color: #ab1c20;
      border-radius: 5px;
      z-index: 10;
  }






  .Percentages-button {
      text-align: center;     
  }


  .Percentages-button {
      display: flex;
      justify-content: center;
      margin-bottom: 20px;
  }

  .input-container {
      display: none;
      margin-top: 20px;
      text-align: center;
  }

  input {
      display: block;
      margin: 10px auto;
      padding: 10px;
      width: 80%;
      max-width: 300px;
      box-sizing: border-box;
  }

  button {
      margin-top: 10px;
      padding: 10px 20px;
      cursor: pointer;
      border: none;
      border-radius: 5px;
      font-size: 16px;
  }

  #result {
      margin-top: 10px;
      font-size: 18px;
      margin: 20px auto 0;
  }

  table {
      width: 100%;
      border-collapse: collapse;
      visibility: hidden; 
  }

  th, td {
      border: 1px solid black;
      padding: 8px;
      text-align: center;
  }

  th {
      background-color: #f2f2f2;
  }


  tbody tr {
      border-bottom: 1px solid black;
  }


  table, th, td {
      border: 1px solid #000;
  }


  .attendance-section {
      text-align: center;
    }
    
    .attendance-section input {
      display: inline-block;
      margin: 10px;
      padding: 10px;
      width: 20%;
      max-width: 200px;
      box-sizing: border-box;
    }
    
    .attendance-section button {
      margin: 10px;
      padding: 10px 20px;
      cursor: pointer;
      border: none;
      border-radius: 5px;
      font-size: 16px;
    }
    .attendance-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-bottom: 0;
      padding-bottom: 0;
    }
    
  #results {
      margin: 20px auto; 
      width: 80%; 
      border-collapse: collapse;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    
    #results th {
      background-color: #ab1c20; 
      color: #fff5e4; 
      padding: 10px;
      text-align: center;
      border: 1px solid #ddd;
    }
    
    #results td {
      padding: 10px;
      text-align: center;
      border: 1px solid #ddd;
    }
    
    #results th:first-child {
      border-top-left-radius: 10px;
    }
    
    #results th:last-child {
      border-top-right-radius: 10px;
    }
    
    #results tr:nth-child(even) {
      background-color: #f2f2f2; 
    }
    
    #results tr:hover {
      background-color: #f9f9f9; 
    }





    #gpaOptions {
      text-align: center;
      margin-top: 20px;
      padding: 20px;
      border: 1px solid #ddd;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    
    
    #gpaSection, #cgpaSection {
      margin-top: 20px;
      padding: 20px;
      border: 1px solid #ddd;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    
    table {
      width: 100%;
      border-collapse: collapse;
    }
    
    th, td {
      border: 1px solid #ddd;
      padding: 10px;
      text-align: center;
    }
    
    th {
      background-color: #f0f0f0;
    }
    
    .calculate {
      background-color: #ab1c20;
      color: #fff5e4;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }
    
    .calculate:hover {
      background-color: #fff5e4;
      color: #ab1c20;
    }
    
    .reset {
      background-color: #ab1c20;
      color: #fff5e4;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }
    
    .reset:hover {
      background-color: #fff5e4;
      color: #ab1c20;
    }




    
    #resultGPA, #resultCGPA {
      font-size: 24px;
      font-weight: bold;
      margin-top: 20px;
    }

    .gpa-button-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 20px;
    }
    
    #gpa-button-container button {
      margin: 10px;
      padding: 10px 20px;
      cursor: pointer;
      border: none;
      border-radius: 5px;
      font-size: 13px;
    }
    
    .gpa-actions {
      display: flex;
      justify-content: space-between;
      width: 100%;
      max-width: 300px;
    }
    
    /* Responsive Breakpoints */
    
    @media (max-width: 768px) {
      .gpa-actions {
        flex-direction: column;
      }
      
      .gpa-actions button {
        width: 100%;
        margin-bottom: 10px;
      }
    }
    
    @media (max-width: 480px) {
      .gpa-button-container button {
        padding: 10px 15px;
        font-size: 14px;
      }
    }


    .cgpa-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 20px;
    }
    
    .cgpa-container table {
      margin: 20px 0;
      width: 100%;
      max-width: 600px;
      border-collapse: collapse;
    }
    
    .cgpa-container th, .cgpa-container td {
      border: 1px solid #ddd;
      padding: 10px;
      text-align: center;
    }
    
    .cgpa-container th {
      background-color: #f0f0f0;
    }
    
    .cgpa-actions {
      display: flex;
      justify-content: space-between;
      width: 100%;
      max-width: 300px;
    }
    
    /* Responsive Breakpoints */
    
    @media (max-width: 768px) {
      .cgpa-actions {
        flex-direction: column;
      }
      
      .cgpa-actions button {
        width: 100%;
        margin-bottom: 10px;
      }
      
      .cgpa-container table {
        font-size: 14px;
      }
    }
    
    @media (max-width: 480px) {
      .cgpa-container table {
        font-size: 12px;
      }
      
      .cgpa-container th, .cgpa-container td {
        padding: 5px;
      }
    }





  #result {
    font-size: 24px;
    font-weight: bold;
    color: #333;
  }

  .average-mark {
    color: #666;
    font-size: 20px;
    margin-bottom: 10px;
  }

  .total-mark {
    color: #003300;
    font-size: 28px;
  }


  .Percentages-button {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }


  .Percentages-button button {
    margin: 10px;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    width: calc(33.33% - 20px); 
  }


  @media (max-width: 768px) {
    .Percentages-button button {
      padding: 10px 15px;
      font-size: 14px;
      width: calc(50% - 20px);
    }
  }

  @media (max-width: 480px) {
    .Percentages-button button {
      padding: 10px 10px;
      font-size: 12px;
      width: 100%; 
    }
  }







    .card-container {
      text-align: center; 
      display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    }
    
  .card {
      background-color: #fff5e4;
      border: 3px solid #ab1c20;
      border-radius: 10px;
      padding: 20px;
      width: 15%; 
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      margin: 10px; 
      vertical-align: top; 
      height: 280px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
  }
    
    .card h2 {
      color: #ab1c20;
      font-size: 24px;
    }
    
    .card button {
      background-color: #ab1c20;
      color: #fff5e4;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    
    .card button:hover {
      background-color: #e0cfb3;
      color: #ab1c20;
    }
    
    .card button:focus {
      outline: none;
      box-shadow: 0 0 5px #ab1c20;
    }
    
  
    @media (max-width: 1024px) {
      .card {
        width: 45%; 
      }
    }
    
    @media (max-width: 768px) {
      .card {
        width: 100%; 
      }
    }
    













  footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
  }

  .footer-container {
    display: flex;
    flex-direction: column;  
    align-items: center;
    gap: 40px; 
  }

  .contact-form, .share-resources {
    width: 100%;  
    max-width: 600px;  
  }

  .contact-form h3, .share-resources h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .contact-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
  }

  .contact-form button {
    background-color: #ab1c20;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .contact-form button:hover {
    background-color: #fff5e4;
    color: #ab1c20;
  }

  .share-resources button {
    background-color: #ab1c20;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .share-resources button:hover {
    background-color: #fff5e4;
    color: #ab1c20;
  }

  #submit-2{
    display: block;
    margin: 20px auto;
  }

  .result-container {
    text-align: center;
    margin-top: 20px;
  }



  @media (max-width: 768px) {
    .contact-form, .share-resources {
      max-width: 80%;
    }
    
    .contact-form input, .contact-form textarea {
      padding: 8px;
    }
    
    .contact-form button, .share-resources button {
      padding: 8px 15px;
    }
  }

  @media (max-width: 480px) {
    .contact-form, .share-resources {
      max-width: 90%;
    }
    
    .contact-form input, .contact-form textarea {
      padding: 6px;
    }
    
    .contact-form button, .share-resources button {
      padding: 6px 10px;
    }
    
    .footer-container {
      gap: 20px;
    }
  }

  @media (max-width: 320px) {
    .contact-form, .share-resources {
      max-width: 95%;
    }
    
    .contact-form input, .contact-form textarea {
      padding: 4px;
    }
    
    .contact-form button, .share-resources button {
      padding: 4px 8px;
    }
    
    .footer-container {
      gap: 10px;
    }
  }
    
    
    
