:root {
    --color-background: #f5f5f5;
    --color-text: #333;
    --color-box-default: #ffffff; 
    --color-border: #e0e0e0;
    --color-box-shadow: rgba(0, 0, 0, 0.1);
    --color-alpha: #6760a3; 
    --color-beta: #28a745;
    --color-charlie: red;
    --color-hover: #e0e0e0;
    --color-table-header: #2196f3;
    --color-table-row-light: #f8f9fa;
    --color-table-row-alternate: #e9ecef;
    --color-table-row-hover: #e0e0e0;
    --color-ciilock-lightBlue : #09a2dd;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    text-align: center;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 4rem;
}

.header {
    padding: 20px 40px;
    background: linear-gradient(135deg, #2196f3, #21cbf3);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.header-text p {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 300;
}

.header-logo img {
    width: 220px;
    height: auto;
    border-radius: 8px;
}

main{
    margin-top: 4rem;
}

.title{
    margin: 3rem;
    color: var(--color-table-header);
    text-transform: capitalize;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color:var(--color-table-header);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.level {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 10px 0;
}

.box {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 20px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s, opacity 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-align: left;
    height: auto;
    padding-bottom: 15px;
    min-width: 220px;
    position: relative;
    opacity: 0.75;
}

.box-div{
    display: flex;
    flex: 1;
    margin: 1rem;
    gap: 2rem;
}

.box.active {
    transform: scale(1.15);
    opacity: 1 !important ;
}

.alpha {
    border-left: 5px solid var(--color-alpha);
}

.box.beta {
    border-left: 5px solid var(--color-beta);
}

.box.charlie {
    border-left: 5px solid var(--color-charlie);
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.level-2 {
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 3rem;
}

.level-2 .box {
    flex: 1 1 30%;
    align-items: center;
    justify-items: center;
    max-width: 320px;
    min-width: 220px;
}

@media (max-width: 768px) {
    .level-2 .box {
        flex: 1 1 45%;
    }
}

@media (max-width: 480px) {
    .level-2 .box {
        flex: 1 1 100%;
    }
}

.table-div {
    display: none;
    margin-top: 3rem;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    max-width: 80vw;
}

.table-div h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--color-text);
}

#table-alpha {
    border-top: 4px solid var(--color-alpha);
}

.table-alpha {
    border-top: 4px solid var(--color-alpha);
}

.table-beta {
    border-top: 4px solid var(--color-beta);
}

#table-beta-a {
    border-top: 4px solid var(--color-beta);
}

.table-charlie {
    border-top: 4px solid var(--color-charlie);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

th, td {
    padding: 12px;
    border: 1px solid var(--color-border);
    text-align: left;
}

th {
    background-color: var(--color-table-header);
    color: white;
    text-transform: uppercase;
}

td {
    background-color: var(--color-table-row-light);
    color: var(--color-text);
}

tr:nth-child(even) td {
    background-color: var(--color-table-row-alternate);
}

tr:hover td {
    background-color: var(--color-table-row-hover);
}

@media (max-width: 768px) {
    .level, .level-2 {
        flex-direction: column;
        align-items: center;
    }

    .box {
        flex: 1 1 45%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .level, .level-2 {
        flex-direction: column;
        align-items: center;
    }

    .box {
        flex: 1 1 100%;
    }
}

.modern-link {
    color: var(--color-table-header);
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 5px;
    background-color: transparent;
    border: 1px solid transparent;
    transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.modern-link:hover {
    color: #0056b3;
    border-color: #0056b3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modern-link:focus {
    outline: none;
    color: #004085;
    border-color: #004085;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes pulsate {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

#showAllButton {
    z-index: 5;
    position: fixed;
    bottom: 80px;
    right: 80px;
    padding: 10px 20px;
    background-color: var(--color-table-header);
    color: #fff;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    cursor: pointer;
    animation: pulsate 1.5s infinite ease-in-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#showAllButton:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

#showAllButton:active {
    transform: scale(0.95);
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 500px;
    height: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card.faded {
    opacity: 0.4;
    transform: scale(0.95);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

.card-content {
    flex-grow: 1;
    width: 100%;
}

.card-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 1rem;
    color: #666666;
    border-top: 0.8rem;
}

.card-action {
    margin-top: 10px;
    width: 100%;
}

.card-action a {
    color: var(--color-table-header);
    text-decoration: none;
    font-weight: bold;
}

.card-action a:hover {
    text-decoration: underline;
}

.box .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.box .card-description {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.box:hover {
    background-color: var(--color-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin: 10px 20px;
    font-size: 14px;
    color: #666666;
    gap: 5px;
}

.breadcrumb a {
    text-decoration: none;
    color: #007BFF;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: #333333;
    font-weight: bold;
}

.floating-card {
    position: fixed;
    bottom: 50px;
    left: 60px;
    width: 250px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
    overflow-y: auto;
    max-height: 90vh;
    display: none;
}

#selectionList {
    list-style-type: none;
    padding: 0;
}

#selectionList li {
    margin: 10px 0;
}

#selectionList li a {
    text-decoration: none;
    color: #007BFF;
    cursor: pointer;
}

#selectionList li a:hover {
    text-decoration: underline;
}

.symptom{
    font-weight: 600;
}

@media (max-width: 1024px) {
    .header-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .header-logo {
        margin-bottom: 20px;
    }

    .box-div{
        display: block;
    }
}

@media (max-width: 550px) {
    .card {
        width: 80%;
    }

    #showAllButton {
        bottom: 80px;
        right: 38%; 
    }
}

.rectangleBeta {
    position: absolute;
    width: 200px;
    height: 150px;
    border-left: 3px solid var(--color-beta);
    border-bottom: 3px solid var(--color-beta);
    z-index: -3;
    left:20%;
    top : 470px;
}

.link-action {
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  opacity: 0.55;
}

.link-action:hover {
  opacity: 1;
  text-decoration: underline;
}

.highlightAlpha{
    color: var(--color-alpha);
}
.highlightBeta{
    color: var(--color-beta);
}
.highlightCharlie{
    color: var(--color-charlie);
}

.landscape-warning {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
}

.landscape-warning .card-warning {
    position: relative;
    background-color: white;
    padding: 20px 30px;
    border-top: 8px solid var(--color-table-header);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    align-items: center;
    text-align: center;
    max-width: 80vw;
}

.landscape-warning .card-warning p {
    align-items: center;
    font-size: 18px;
    color: var(--color-table-header);
    margin: 0;
    font-weight: 600;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.3rem; 
    font-weight: 600;
    cursor: pointer;
    color: var(--color-table-header);
    transition: color 0.2s;
    z-index: 5;
}

.close-btn:hover {
    color: #333;
}

@media (min-width: 500px) {
    .landscape-warning {
        display: none;
    }
}