
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    font-family: Arial, sans-serif;
    margin-left: 16%;
    margin-right: 16%;
    background-color: #f5f5f5;
}
/* When hovering over an li element */
.sidebar ul li:hover {
    background-color: gold  !important;
    color: #000;
}
footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100%;
    background-color: #f5f5f5;
    padding: 10px 0;
    text-align: right;
    font-size: 14px;
    z-index: 999;
}

ul.mainul a {
    color: white !important;
    text-decoration: none !important;
}

.sidebar ul li.select {
    background-color: gold  !important;
    color: #000;
}
.sidebar ul li:active {
    background-color: gold  !important;
    color: #000;
}
.sidebar ul li:focus {
    background-color: gold  !important;
}
.sidebar {
    width: 200px;
    background-color: #006633;
    color: white;
    padding: 20px;
    height: 100%;
    margin-top: 30px;
    border-radius: 10px;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 21px;
}

.sidebar ul {
    list-style-type: none;
}

.sidebar ul li {
    padding: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    background-color: #006633;
    padding-left: 10px;
    border: 1px solid;

}

.sidebar ul li:hover {
    background-color: #555;
}
div#resultText {
    text-transform: capitalize;
}
.content {
    flex-grow: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;

}
.textual-contant {
    text-align: justify;
    line-height: 24px;
}
.content h1 {
    text-align: center;
    margin-bottom: 20px;
}

.conversion-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.conversion-section input,
.conversion-section select {
    width: 45%;
    padding: 10px;
    font-size: 14px;
    margin: 5px 0;
}

.conversion-section button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    border-radius: 5px;
}
h1 {
    background: #006633;
    border-radius: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #fff;
    font-size: 25px;
}
.conversion-section button:hover {
    background-color: gold;
    border-color: gold;
}
.mainul li {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.mainul li.selected {
    background-color: gold;  /* Green background for selected item */
    color: #000;  /* White text */
    border-color: gold;
}

.mainul li:hover {
    background-color: #f1f1f1;  /* Light grey on hover */
}

ul.footer-ul {
    display: flex;
    list-style-type: none;
    background: lightgoldenrodyellow;
    padding: 7px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 10px;
    letter-spacing: 0.5px;
    font-size: 10px;
}

.card {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    margin: 12px 0;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid lightgray;
    position: relative;
    overflow: hidden;
    
    /* Hidden initially */
    max-height: 0;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.5s ease;
    font-size: 14px;
  }

  .card.show {
    max-height: 500px; /* You can adjust based on your text */
    opacity: 1;
    transform: scaleY(1);
  }

  .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
  }

  .trigger-btn {
    text-decoration: none;
  }

@media screen and (max-width: 768px) {
    body {
        flex-direction: column;
        margin-left: 5%;
        margin-right: 5%;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .content {
        padding: 15px;
    }

    .conversion-section {
        flex-direction: column;
    }

    .conversion-section input,
    .conversion-section select {
        width: 100%;
        margin-bottom: 10px;
    }

    .conversion-section button {
        font-size: 14px;
    }
}


/* Mobile styles */
@media only screen and (max-width: 768px) {
    .menu-content {
        display: none; /* Hide the content by default */
        flex-direction: column;
    }

    .menu-toggle {
        font-size: 24px;
        background-color: #006633;
        color: white;
        padding: 10px;
        border: none;
        cursor: pointer;
    }

    .menu-content.show {
        display: block; /* Show the content when the menu is active */
    }
}

@media only screen and (max-width: 768px) {
h1 {
    font-size: 16px;
  }
  .textual-contant {
    text-align: justify;
    line-height: 18px;
    font-size: 12px;
  }
}
@media only screen and (min-width: 600px) {
button#menuToggle {
    display: none;
}
}

ul.list {
    margin-left: 16px;
}
ol.orderlist {
    margin-left: 16px;
}
h2.heading-h2 {
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.add-article {
    background: #d3d3d35e;
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
}
.add-article a {
    color: #006633;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
}

