/* button to random generate text */
.random-cipher-btn {
    padding-top: 0px;  
    border: none;
    background: none;
}

/* pointer when hovering over the randon generator btn */
.random-cipher-btn:hover {
    cursor: pointer;
}

.random-cipher-btn img {
    width: 25px;  
    height: auto;  
    display: block;  
    margin-top: 5px;  
    margin-bottom: 6px;  
}

/* page layout for the plain and cipher text */
.outer-content-container {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 40px; 
}

.inner-content-container {
    display: flex;
    width: 40%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
}

/* cipher name container */
.cipher-name {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 0.2rem solid #000000;
    border-radius: 3rem;
    background: #ECE7FF;
    font-size: 3.2rem;
}

/* boxes that contain the text area for the ciphers */
.cipher-textarea-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    padding: 25px 25px 0 25px;
    margin: 1rem 0;
    border: 0.2rem solid #000000;
    border-radius: 3rem;
    background: #3EB4C8;
    position: relative;
}

/* styling for the title of the container */
.cipher-textarea-container-title {
    width: 30%;
    position: absolute;
    top: -10px;
    background: #ffffff;
    padding: 1rem;
    border: 0.2rem solid #000000;
    border-radius: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
}

/* styling text area where text input will go */
.cipher-textarea {
    display: block;
    resize: none;
    width: 100%;
    padding: 1.5rem 1rem;
    border: 0.2rem solid #000000;
    outline: none;
    box-shadow: none;
    border-radius: 1.5rem;
    font-size: 1.6rem;
}

.cipher-textarea:focus {
    border: 0.2rem solid #000000;
    outline: none;
    box-shadow: none;
}

/* Styling the encrypt and decrypt button */
.cipher-btn-container {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cipher-btn {
    width: 25%;
    padding: 1rem;
    font-size: 1.5rem;
    border-radius: 3rem;
    background-color: #553bc8;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));
    border: 1px solid #553bc8;
    color: #ffffff;
    font-weight: bold;
}

.cipher-btn:hover {
    cursor: pointer;
}

.cipher-btn:active {
    background-image: none;
    box-shadow: rgba(46, 54, 80, 0.125) 0 3px 5px inset;
}

/* Styling the Key input value for ciphers rail fence and caesar */
.cipher-input-container {
    position: fixed;
    right: 10%;  
    top: 50%;
    width: 200px;
    padding: 10px;
    background-color: #ECE7FF;
    border: 2px solid purple;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cipher-input {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* styling arrow icons */
#arrows {
    display: flex;
    width: 20%;
    align-items: center;
    justify-content: space-between;
}

/*responsive arrow icons*/
.arrow-img {
    width: 40%;
    height: auto;
}

#left-arrow {
    rotate: -40deg;
}

#right-arrow {
    rotate: 120deg;
}


/* cipher learn more images */
.responsive-img {
    max-width: 100%; 
    height: auto;  
}

@media (max-width: 768px) {

    .outer-content-container {
        flex-direction: column;
        align-items: center;
        justify-content: center; 
    }

    .inner-content-container {
        width: 92%; 
        flex-direction: column;
        align-items: center;
    }
        
    .cipher-name {
        font-size: 1.2rem; 
        padding: 0.8rem; 
        width: 100%;
    }

    .cipher-textarea-container-title {
        font-size: 1.2rem; 
        padding: 0.8rem; 
    }


    .cipher-textarea {
        font-size: 1.4rem; 
    }

    .cipher-btn {
        width: 45%; 
        font-size: 1.2rem; 
        padding: 1rem; 
    }

    .cipher-input-container {
        position: fixed;
        width: 100px;
        right: 50%;  
        top: 50%; 
        padding: 2%;
        transform: translate(215%, 170%); 
        font-size: 11px;
        z-index: 0;
    }
    
    .cipher-input {
        width: 100%;
        padding: 1px;
        font-size: 12px;
        border: 1px solid #ccc;
    }


}

@media (max-width: 328px) {

    .cipher-input-container {
        position: fixed;
        width: 100px;
        right: 50%;  
        top: 50%; 
        padding: 2%;
        transform: translate(140%, 270%); 
        font-size: 11px;
        z-index: 0;
    }
}