.header {
    background-color: #007BFF;
    color: white;
    padding: 20px;
    text-align: center;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}
.formula {
    background-color: #f0f0f0;
    padding: 15px;
    border-left: 4px solid #3498db;
    font-size: 1.1em;
    overflow-x: auto;
    text-align: center;
    margin: 15px 0;
}

.component-box {
    background-color: #e8f4fc;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #3498db;
}
.key-metrics {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}
.component-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1em;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #3498db;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}
h1 {
    color: #ffffff;
    text-align: center;
}
h2 {
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}
.content {
    max-width: 900px;
    margin: 0 auto;
}


.highlight {
    background-color: #f8f9fa;
    padding: 10px;
    border-left: 4px solid #3498db;
    margin: 10px 0;
}
.navbar {
    background-color: #390099;
    color: #ffffff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container1 {
    padding: 20px;
    text-align: center;
}
.control-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 20px auto;
    gap: 30px;
    padding: 0 20px;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    background-color: #ffffff;
    height: 3px;
    width: 25px;
    margin: 5px 0;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
}

.profile-icon img {
    height: 30px;
    border-radius: 50%;
}

.main-banner {
    background-color: #9e0059;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.topic-buttons button {
    margin: 10px;
    padding: 15px 25px;
    background-color: #ff5400;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.topic-buttons button:hover {
    background-color: #ffbd00;
}

.recommended {
    padding: 40px;
    text-align: center;
}
.resource-cards {
    display: flex;
    flex-wrap:wrap;
    justify-content: space-around;
    gap: 20px;
}


.card {
    background-color: #ff0054;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 350px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s;
}
.card:hover {
    transform: scale(1.05);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}
.main-content {
    margin-left: 200px; /* Adjust based on the side panel width */
    padding: 20px;
  }
  .main-content h2 {
    color: #390099;
}

.main-content h3 {
    color: #ff5400;
}
.recommended1 {
    width: 80%;
padding: 20px;
background: #ffffff;
border-radius: 0;
box-shadow: none;
margin: 0 auto; /* Centers the element horizontally */
}

.recommended1 h2 {
    color: #390099;
}

.recommended1 h3 {
    color: #ff5400;
}

.recommended1 ul {
    margin-left: 20px;
    list-style-type: disc;
}
.recommended1 img {
    display: block;
    height: auto;
    margin: 10px auto;
    max-width: 100%; /* Ensures the image never overflows its container */
}

/* Optimized for First Image */
.recommended1 img.img1 {
    width: auto; /* Let the image scale naturally */
    max-width: 400px; /* Prevents image from getting too large */
}

/* Optimized for Second Image */
.recommended1 img.img2 {
    width: auto; /* Removes redundant width constraints */
    max-width: 500px; /* Prevents oversized images */
}

.button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
  }
  
  .button:hover {
    background-color: #0056b3;
  }




.footer-container {
    background-color: #390099;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.subscribe input[type="email"] {
    padding: 10px;
    border-radius: 5px;
    border: none;
}

.subscribe button {
    padding: 10px;
    background-color: #ff5400;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.subscribe button:hover {
    background-color: #ffbd00;
}
.chart-container {
    max-width: 600px;
    margin: 20px auto;
}
.theory {
    margin-bottom: 30px;
}

.side-panel {
    position: fixed;
    width: 200px;
    background-color: #f1f1f1;
    top: 0;
    left: 0;
    height: 100%;
    padding: 10px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}
  .side-panel a {
    display: block;
    color: black;
    padding: 8px;
    text-decoration: none;
  }

  .side-panel a:hover {
    background-color: #ddd;
    color: black;
  }
  .question {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.options label {
    display: block;
    margin: 5px 0;
}
.submit-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.submit-button:hover {
    background-color: #0056b3;
}
.result {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}
.feedback {
    margin-top: 10px;
    color: #d9534f;
}
.plot {
    max-width: 100%;
    height: auto;
}

.theory-container, .simulator-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}


.section-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 0;
}

.theory-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.theory-card {
    flex: 1 1 300px;
    border-left: 4px solid #3498db;
    padding-left: 15px;
    margin-bottom: 15px;
}
.theory-card:hover {
    transform: scale(1.05);
}
.theory-card h3 {
    color: #2980b9;
    margin-top: 0;
}
.theory-card a {
    text-decoration: none;
    color: inherit;
}
.simulator-interface {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.simulator-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.control-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}


  @media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .theory-content {
        flex-direction: column;
    }
    
    .simulator-controls {
        flex-direction: column;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #390099;
        width: 100%;
        position: absolute;
        top: 50px;
        left: 0;
        padding: 10px;
    }

    .nav-links.active {
        display: flex;
    }
    .side-panel {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 10px;
    }
    .main-content {
        margin-left: 0;
        padding: 10px;
    }
    .question {
        padding: 10px;
    }
    .plot {
        width: 100%;
        
    }
}

