/* ================== Body Styles ================== */
body {
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

/* ================== Navbar Styles ================== */
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-link {
    font-size: 1rem;
    position: relative;
    color: #fff !important;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #1abc9c !important;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #1abc9c;
    transition: width .3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* ~~~~~~~~~~~~~ Custom Button Styles ~~~~~~~~~~~~~ */
.btn-custom {
    background-color: #212529;
    color: white;
    border: none;
}

.btn-custom:hover {
    background-color: #17a589;
    color: white;
}

/* ================== Interface Section ================== */
.interface {
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(195,214,255,1) 42%, rgba(135,172,255,1) 100%);
    padding-top: 80px;
}

.interface h1 {
    color: #011e4b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 3rem;
}

.interface p {
    color: #555;
}

.interface_div{
    margin-top: 0px;
    padding-top: 0px;
}
/* ~~~~~~~~~~~~~ Section Styles ~~~~~~~~~~~~~ */
.encryption-section, .team-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.encryption-section h2, .decryption-section h2, .team-section h2 {
    color: #011e4b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.decryption-section {
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(195,214,255,1) 42%, rgba(135,172,255,1) 100%);
    padding-top: 60px;
    padding-bottom: 60px;
}

.lead {
    color: #555;
}

/* ~~~~~~~~~~~~~ Explanation Field Styles ~~~~~~~~~~~~~ */
.explanation {
    margin-top: 20px;
    padding: 20px;
    background-color: #f5f7fa;
    border-left: 5px solid #1abc9c;
    border-radius: 5px;
    animation: fadeIn 0.5s;
    min-height: 255px;
}

.key-display {
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    margin-top: 5px;
    padding: 10px;
    background: linear-gradient(135deg, #1abc9c, #16a085);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.key-display:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* ~~~~~~~~~~~~~ Fade In Animation ~~~~~~~~~~~~~ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s;
}

/* ~~~~~~~~~~~~~ Output Textarea Styles ~~~~~~~~~~~~~ */
.output-textarea {
    background-color: #e9ecef;
    cursor: not-allowed;
    user-select: none;
}

/* ================== Card Styles for Team Members ================== */
.card {
    background: linear-gradient(90deg, rgba(255,255,255,1) 30%, rgba(195,214,255,1) 100%, rgba(135,172,255,1) 100%);
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 80px;
}

.card-body{
    height: 80px;
}

.card-title {
    color: #011e4b;
    font-weight: 600;
    display: flex;
    justify-content: baseline;
}

/* ================== Footer Styles ================== */
footer {
    background-color: #172a46;
}

footer p, footer a {
    color: #fff;
}

.social-icons a {
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #1abc9c;
}

/* ================== Responsive Adjustments ================== */
@media (max-width: 992px) {

    h1{
        font-size: 2.5rem !important;
    }
    .navbar-nav .nav-link {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .interface h1 {
        font-size: 2.5rem;
    }

    .navbar-brand{
        font-size: 1.25rem;
    }

}

@media (min-width: 600px) {
    .interface_div{
        margin-top: 40px;
        padding-top: 50px;
    }
}

/* ================== Social Media Icon Styles ================== */
.social-icon img {
    transition: transform 0.3s, filter 0.3s;
}

.social-icon:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* ~~~~~~~~~~~~~ Key Change Button Styles ~~~~~~~~~~~~~ */
.key-change-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}

.key-change-button:hover {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    transform: translateY(-2px);
    cursor: pointer;
}

/* ~~~~~~~~~~~~~ Key Input Field Styles ~~~~~~~~~~~~~ */
.key-input {
    width: 100%;
    max-width: 250px;
    margin: 10px auto;
    padding: 8px;
    border: 2px solid #1abc9c;
    border-radius: 5px;
}

.key-input label {
    font-weight: bold;
    color: #011e4b;
}

.key-input input {
    width: 100%;
    padding: 6px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.key-input button {
    margin-top: 10px;
    padding: 8px 12px;
    background: #212529;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.key-input button:hover {
    background: #17a589;
    cursor: pointer;
}

/* ================== Key Container Styles ================== */
.key-container {
    display: flex;
    align-items: center; 
    justify-content: center; 
    margin-top: 10px;
}

.key-container .key-display,
.key-container .key-change-button {
    font-weight: bold;
    color: #ffffff ;
    text-align: center;
    font-size: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #1abc9c, #16a085);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 250px;
    margin: 0 5px; 
    transition: all 0.3s ease; 
}

.key-container .key-display:hover,
.key-container .key-change-button:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); 
    cursor: pointer;
}

/* ================== Key Input Container Styles ================== */
.key-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #1abc9c, #16a085);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    margin: 20px auto;
    transition: all 0.3s ease; 
}

.key-input-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.key-input-container button {
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    margin-top: 20px;
    padding: 10px;
    background: linear-gradient(135deg, #1abc9c, #16a085);
    border: none;
    border-radius: 10px;
    width: auto;
    transition: all 0.3s ease; 
}

.key-input-container button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.key-input {
    width: 100%;
    margin-top: 10px;
}

.key-input label {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.key-input input {
    width: 100%;
    padding: 6px;
    margin-top: 5px;
    border: none;
    border-radius: 4px;
}

.save_key_button{
    border: 1.5px solid #61c4b0 !important;
   
}

