@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
body{
    margin: 0px;
    margin-top: 77px;
    font-size: 20px;
    font-family: 'Segoe UI', sans-serif;
    background-color: rgb(250, 250, 255);
}

table{
margin: auto;
width: 80%;
border-radius:10px;
overflow: hidden;
}

th, td{
padding:10px;
text-align:center;
}

th {
background-color:rgb(128, 0, 0);
font-weight:bold;
color:white;
} 

tr:nth-child(even){
background-color:rgba(128, 0, 0, 0.5);
}
h1{
color:rgb(128, 0, 0);
text-align: center;
}
p{
text-align: center;
border-radius:10px;
margin:20px auto;
    
}

#add-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    }

.navbar{
    position: fixed;
    z-index: 2;
    top: 0px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: rgb(128, 0, 0);
}
.navbar > :nth-child(2){
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.navbar a{
    color: rgb(255, 255, 255);
    text-decoration: none;
    background-color: rgb(128, 0, 0) ;
    font-size: 20px;
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.navbar a:hover {
    background-color: rgb(100, 0, 0);
}
.active{
    text-decoration: underline !important;
}
.navbar img{
    width: 60px;
    padding: 10px;
}
#links{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    height: max-content;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
}

#footer {
    text-align: start;
    font-size: small;
    text-align: center;
}
.academics-main h1{
    color:  rgb(0, 48, 135);;
    text-align: center;
}
.accordion {
    background-color: rgb(128, 0, 0);
    color: rgb(255, 255, 255);
    cursor: pointer;
    padding: 18px;
    width: 80%;
    border: none;
    font-family: inherit;
    text-align: left;
    outline: none;
    font-size: 20px;
    transition: 0.4s;
}
  
.academics-main .activate, .accordion:hover {
    background-color: rgb(100, 0, 0);
}
  
.accordion:after {
    content: '\002B';
    color: rgb(255, 255, 255);
    font-weight: bold;
    float: right;
    margin-left: 5px;
}
  
.academics-main .activate:after {
    content: "\2212";
}
  
.panel {
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    width: 80%;
    background-color: rgba(128, 0, 0, 0.1);
    margin-bottom: 20px;
}
.panel h2{
    color: rgb(128, 0, 0);
}
.academics-main table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;

}
.academics-main table, .academics-main th, .academics-main td {
    border: 1px solid black;
}
.academics-main th, .academics-main td {
    padding: 8px;
    text-align: left;
}
@media (max-width: 768px) {
    /* Navbar Dropdown */
    #links{
        display: none;
        position: absolute;
        top: 65px;
        right: 0;
        z-index: 5;
        height: 0;
        overflow: auto;
        animation: dropAnimation 0.5s ease-out;
    }

    #links.show {
        display: flex;
        flex-direction: column;
        height: 300px;
    }        

    .hamburger {
        display: flex;
        padding: 10px;
        margin-right: 20px;
        border: 1px solid rgb(255, 255, 255);
        border-radius: 5px;
    }
    .hamburger:hover{
        background-color: rgb(100, 0, 0);
    }
    

    @keyframes dropAnimation {
        from{
            height: 0;
        }
        to{
            height: 300px;
        }
    }
}

@media (max-width: 1200px) {
    .navbar a {
        padding: 10px;
        text-align: center;
        font-size: 20px;
    }
}
@media (max-width: 320px) {
    .gallery-grid {
        display: block
    }
    .gallery-item {
        margin-bottom: 10px;
    }
}
/* General styles for the mode toggle button */
.mode-toggle {
    background-color: maroon;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
  }
  .mode-toggle img{
    width: 20px;
  }
  
  .mode-toggle:hover {
    background-color: #a00000;
  }
  
  /* Default light mode styles */
  body {
    background-color: #ffffff;
    color: #000000;
  }
  
  .navbar {
    background-color: maroon;
    color: white;
  }
  
  .navbar a {
    color: white;
  }
  
  .mode-toggle img {
    width: 20px;
    height: 20px;
  }
  
  /* Dark mode styles */
  body.dark-mode .mode-toggle {
    background-color: #121212;
    color: #ffffff;
  }
  
  body.dark-mode .navbar {
    background-color: #1e1e1e;
  }
  
  body.dark-mode .navbar a {
    color: #ffffff;
  }
  
  body.dark-mode .mode-toggle img {
    filter: invert(1); /* Invert the icon color for better visibility */
  }
  