
/*----------------------------------------------
------------------------------------------------
0. CSS Reset
------------------------------------------------
----------------------------------------------*/
:root {
    --bg-color: #E5E5E5;
    --dark-blue-300: #0A3871;
    --dark-blue-400: #072861;
    --light-blue100: #F3F5FC;
    --negro: #050407;
    --violethover:#e8e5f5;
    --violetlight:#594b88 ;
    --violetdark: #312559;
    
    --bg:#E5E5E5;
    --violet:#d7d2eb ;
    --blancotextarea:#2401840f;
    --blancoresult:#2401840f;
    --violetaselect:#a08fd281;
    --violetadark:#060211ce;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    outline-style: none;
}

html {
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    box-sizing: border-box;

}

a {
	outline: none;
	text-decoration: none;
    letter-spacing: 1px;
    
}
h1 {
    cursor:default;
    -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none;
}
h2 {
    cursor: default;
    -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none;
}
a:visited {
    color:#443449
}
a:hover {
    color: #312559;
}



/*----------------------------------------------
------------------------------------------------
1. Universal Styles
------------------------------------------------
----------------------------------------------*/
body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #efefed 0%, #eeeee4 20%, #f7f7e9 100%);
    gap: 1rem;
    background-image: url('./assets/nnnoise2.svg');
    background-repeat: repeat;
    padding: 1rem;
    height: 100vh;
}

@media only screen and (min-width: 1024px) {
    body {
        flex-direction: row;
        justify-content: center;
    }
}

.body__container {
    display: flex;
    flex-direction: column;
    position: relative;  
    gap: 1rem;
    
}
@media only screen and (min-width: 1024px) {
    .body__container {
        padding: 1rem;
        width: 60%;
        justify-content: space-between;

    }
}

/*----------------------------------------------
------------------------------------------------
2. Logo Container
------------------------------------------------
----------------------------------------------*/

.body__logo-container {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap:.5rem
}

.body__logo-container img {
    width:60px;
    height: auto;
}

.logo__title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.body__logo-container h1 {
    font-size: 24px;
    font-family: 'IBM Plex Mono', sans-serif;
    color: var(--negro);
}
.body__logo-container h2 {
    font-size: 13px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    color: var(--negro);
}
.body__logo-container p {
    font-size: 13px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    color: var(--negro);
}

@media only screen and (min-width: 1024px) {
    .body__logo-container h1 {
        font-size: 40px;
    }
    .body__logo-container h2 {
        font-size: 24px;
    }
    .body__logo-container p {
        font-size: 24px;
    }
    .body__logo-container {
        flex-grow: 1;
    }
    .body__logo-container img {
        width:95px;
    }
}
@media only screen and (min-width: 1224px) {
    
    .body__logo-container h1 {
        font-size: 50px;
    }
    
}
@media only screen and (min-width: 1440px) {
    .body__logo-container {
        flex-grow: .6;
    }
    .body__logo-container img {
        width:120px;
    }
    .body__logo-container h1 {
        font-size: 62px;
    }
    .body__logo-container h2 {
        font-size: 34px;
    }
    .body__logo-container p {
        font-size: 34px
    }
}
/*----------------------------------------------
------------------------------------------------
Input textarea
------------------------------------------------
----------------------------------------------*/

.body__input-container {
    display: flex;
    justify-content: center;
     max-width: 100%;
    /* height: 23vh; */
   
}

.input__textarea {
    padding: 10px;
    border: 0;
    border-radius: 15px;
    width: 80%;
    max-height: 25rem;
    resize: none;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 20px;
    background-color:var(--blancotextarea);
    color: var(--negro);
    white-space: pre-wrap;
    word-wrap: break-word;
    animation: fadein .4s;
    box-shadow: 0px 24px 32px -8px rgba(0, 0, 0, 0.131);
}
@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media only screen and (min-width: 1024px) {
    .body__input-container {
        max-width: 100%;
        /* height: 40%; */
        flex-grow: 10;
    }
    .input__textarea {
        max-height: 100%;
    }
}



/*----------------------------------------------
------------------------------------------------
Advice text
------------------------------------------------
----------------------------------------------*/
.body__advice-container {
    display: flex;
    flex-direction: row;
    justify-content:center;
    align-items: center;
    gap: 4px;
}
.advice__inner {
    display: flex;
    /* align-items: center; */
    gap:8px;
    max-width: 30%;
}
.advice__inner p {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 10px;
}
.advice__select {
    border:none;
    height: fit-content;
    padding: 8px;
    background-color: var(--violetaselect);
    color: var(--negro);
    border-radius: 7px;
    font-size: 15px;
    width: 35vw;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
}
.advice__select:hover {
    background-color: #1c1c19;
    color: var(--violetaselect);
}

@media only screen and (min-width: 1024px) {
    .body__advice-container {
        flex-grow: 0.1;
        align-items: center;
    }
    .advice__inner {
        max-width: 35%;
    }
    .advice__select {
        width: 20vw;
    }
}

/*----------------------------------------------
------------------------------------------------
Cipher button
------------------------------------------------
----------------------------------------------*/

.body__btns-container {
    display: flex;
    justify-content: center;
}

.btns__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 24px;
} 

.cipher-btn__encriptar {
    width: 70vw;
    height: 67px;
    background: var(--violetadark);
    border-radius: 24px;
    border: 1px solid var(--violetdark);
    box-shadow: 0px 6px 21px -2px rgba(0, 0, 0, 0.25);
    color: #e5e3ed;
    font-size: 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    letter-spacing: 1px;
    transition-property: all;
    transition-duration: 100ms;
    transition-timing-function: ease-in;
    cursor: pointer;
    z-index: 99;
}

.cipher-btn__encriptar:hover {
    background-color: #171813;
    color: #e5e3ed;
    border:2px solid #dadcca;
}
.cipher-btn__encriptar:active {
    background-color: #6d6e64;
}

@media only screen and (min-width: 1024px) {

    .cipher-btn__encriptar {
        width: 40vw;
    }
    .body__btns-container {
        align-items: center;
        flex-grow: 1.3;
    }
}
/* .cipher-btn__desencriptar {
    width: 70vw;
    height: 67px;
    color: var(--negro);
    background-color: #e9e9e5;
    border-radius: 24px;
    border: 1px solid var(--violet);
    box-shadow: 0px 6px 21px -2px rgba(0, 0, 0, 0.25);
    font-size: 18px;
    font-family: 'Tommy';
    letter-spacing: 1px;
    transition-property: all;
    transition-duration: 100ms;
    transition-timing-function: ease-in;
    cursor: pointer;
    z-index: 100000;
}
    
.cipher-btn__desencriptar:hover {
    background-color: #fbfbfb;
    color: var(--bg-color);
    border: 3px solid #e0dfd7;
}
.cipher-btn__desencriptar:active {
    background-color: #6d6e64;
} */


/*----------------------------------------------
------------------------------------------------
RESULT
------------------------------------------------
----------------------------------------------*/

.body__result-container {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
    height: 100%;

 }

.body__result-inner {
    padding: 1rem;
    height: 100%;
}

.result__empty, .result__response {
    background-color:var(--blancoresult);
    box-shadow: 0px 24px 32px -8px rgba(0, 0, 0, 0.131);
    border-radius: 15px;
    padding: 20px;
    gap:2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: auto hidden;
    height: 100%;
}
.result__text-container {
    max-width: 100%;
    overflow: auto;
}
.result__empty h2, .text-cipher {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 20px;
    opacity: 1;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.result__empty img{
    max-width: 100%;
    width: 33vw;
    opacity: 0.8;
}


.result__response {
    display: none;
}

.result__response img {
    padding-top: 2rem;
    max-width:20vw;
    opacity: 0.8;
}

.result__btn-copy {
    width: 80%;
    min-height: 67px;
    color: var(--violetdark);
    background-color: var(--light-blue100);
    border-radius: 24px;
    border: 1px solid var(--dark-blue-300);
    margin-top: 2rem;
    font-size: 18px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;

}

.result__btn-copy:active {
    background-color: var(--violet);
}
.result__text-container {
/*     overflow: auto;
    overflow-x: hidden; */
    display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
    max-width: 90%; 
    
/*     white-space: pre-wrap;
    word-wrap: break-word;
     overflow-wrap: break-word;
    text-overflow: ellipsis;
     */
}
.text-cipher {
    animation: fadein .4s;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 200;
    font-size: 24px;
    text-align: left;
    overflow-wrap: break-word;
    overflow-x: hidden;
}

@media only screen and (min-width: 1024px) {
    .body__result-container {
        padding: 2rem;
        padding-top: 15vh;
        padding-bottom: 15vh;
        width: 40%;
        height: 100%;
    }
    .result__empty, .result__response {
        height: 100%;
        max-height: max-content;
        padding: 20px;
        justify-content: space-between;
        height: 100%;
    }
    .body__result-inner {
        padding: 0rem;
        height: 100%;
    }
    .result__response img, .result__empty img {
        max-width:14vw;
        padding-top: 0rem;
    }
    .result__text-container {
        display: flex;
        min-height: 27%;
    }
    .result__btn-copy {
        width: 80%;
        height: 67px;
        margin-top: 0rem;
    }
}