h1 {
    font-weight: 600;
}

textarea {
    border-radius: 12px;
    background-color: #252525;
    box-shadow: 0 0 0 3px #393939;
    color: #FFFFFF;
    border: 5px solid transparent;
    width: calc(100% - 20px); /* Subtract margin from width */
    max-width: 600px;
    padding: 10px;
    box-sizing: border-box;
    margin: 0 auto; /* Center the textarea */
    display: block; /* Make margin auto work */
}

hr {
    border-bottom: 5px solid #FFFFFF;
    margin-top: 5px;
    width: 90%;
}

#submitBtn {
    background-color: #069E2D;
    color: #FFFFFF;
    border-radius: 4px;
    padding: 5px ;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

#submitBtn:disabled {
    opacity: 0.6;
    cursor: default;
}

#AIResponseArea {
    background-color: #252525 ;
    width: 70%;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    padding: 0 10px; /* Add horizontal padding */
}

#AIResponseArea.active {
    max-height: none;
    opacity: 1;
    padding: 25px 15px; /* Maintain horizontal padding */
    animation: slideDown 0.5s ease-out;
}


#AIResponseArea h3 {
    margin-top: 0;
    color: white;
}

.aiUl {
    padding-left: 20px;
    list-style-type: none; 
}

.aiUl li {
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    padding-left: 20px; /* Add some padding for custom bullet points */
}

.aiUl li::before {
    content: "•"; /* Add custom bullet point */
    position: absolute;
    left: 0;
    color: white;
}

.threatLevelContainer {
    display: flex;
    flex-direction: column; /* Stack label and blocks vertically */
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    width: 100%;
}

.threatLabel {
    margin-bottom: 10px;
    white-space: nowrap;
    text-align: center;
}

.threatBlocks {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    margin: 0 auto;
}

.block {
    width: 25px;
    height: 25px;
    background-color: #ddd;
    border: 1px solid #999;
    margin: 0 1px; /* Reduce horizontal margin */
    flex-shrink: 0; /* Prevent blocks from shrinking */
}

.lowThreat {
    background-color: #4CAF50;
}

.mediumThreat {
    background-color: #FFC107;
}

.highThreat {
    background-color: #F44336;
}

#userAck {
    text-align: center;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    #AIResponseArea {
        width: 90%;
        padding: 15px 10px;
    }

    .threatBlocks {
        max-width: 100%;
        overflow-x: auto; /* Allow horizontal scrolling if needed */
        padding-bottom: 10px; /* Add space for potential scrollbar */
    }

    .block {
        width: 20px; /* Slightly smaller blocks on mobile */
        height: 20px;
    }

    textarea {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        margin: 0 10px;
    } 

    dialog {
        width: 80%;
        max-width: 700px; 
    }

    .aiUl li {
        margin-bottom: 1rem;
    }
}

.loader-container {
    margin-top: 40px;
    position: static;
    justify-content: center;
    align-items: center;
    display: none;
}

.bouncing-dots {
    display: flex;
    justify-content: space-between;
    width: 60px;
}

.dot {
    width: 15px;
    height: 15px;
    background-color: #FF5C35;
    border-radius: 50%;
    animation: bounce 1.5s infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}