@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&display=swap');

:root{
    --body-bg-base-color: rgb(2,0,36);
    --body-bg-grad-color:  linear-gradient(180deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
    --body-bg-gradiente-color: linear-gradient(180deg,  hsl(273, 75%, 66%), hsl(240, 73%, 65%));
    --principal-bg-color:  hsl(240, 5%, 91%);

    --telaPrinc-bg-color: rgb(135, 135, 229);
    --conversor-bg-grad-color: rgba(255, 255, 255, 0.829);
    --conversor-text-primary-color: rgb(229, 224, 224);
    --textshadow-color: black;
    --input1-boxshadow-color:white;
    --input2-boxshadow-color:black;
    --border-color:rgb(66, 65, 65);
    --label-hover-color:grey;

    --text-primary-color: hsl(238, 29%, 16%);
    --text-veryDark-color: hsl(237, 12%, 33%);
    --text-dark-color: hsl(240, 6%, 50%);

    --text-max-color: rgb(30, 105, 30);
    --text-min-color: red;
    --text-h2-color:yellow;
    --resultado-bg-color:rgba(255, 255, 255, 0.537);
}

body.light{
    --body-bg-base-color: rgb(2,0,36);
    --body-bg-grad-color:  linear-gradient(180deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
    --body-bg-gradiente-color: linear-gradient(180deg,  hsl(273, 75%, 66%), hsl(240, 73%, 65%));
    --principal-bg-color:  hsl(240, 5%, 91%);

    --telaPrinc-bg-color: rgb(135, 135, 229);
    --conversor-bg-grad-color: rgba(255, 255, 255, 0.829);
    --conversor-text-primary-color: rgb(229, 224, 224);
    --textshadow-color: black;
    
  
    --border-color:rgb(66, 65, 65);
    --label-hover-color:grey;

    --text-primary-color: hsl(238, 29%, 16%);
    --text-veryDark-color: hsl(237, 12%, 33%);
    --text-dark-color: hsl(240, 6%, 50%);
    --text-second-color: hsl(237, 12%, 33%);
    --text-maxMin-color: black;
    --text-max-color: rgb(30, 105, 30);
    --text-min-color: rgb(194, 13, 13);
    --text-h2-color:yellow;
    --resultado-bg-color:rgba(255, 255, 255, 0.537);

    --border-bottom-color: none;
}

body{
    --body-bg-gradiente-color: url(../imagens/design11-01_generated.jpg);
    --principal-bg-color:  hsla(240, 4%, 91%, 0.102);
    --text-primary-color: rgb(229, 224, 224);
    --border-bottom-color: 3px solid rgb(177, 119, 12);
    --text-veryDark-color: hsl(237, 12%, 33%);
    --text-dark-color: hsl(238, 29%, 16%);
    --text-second-color: rgb(229, 224, 224);
    --text-maxMin-color: white;
    
    
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 100%;
}

body{
    background: var(--body-bg-gradiente-color);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;    
}

.toggle-mode{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 1em;
    row-gap: 0;
    margin-top: 1rem;
    font-size: 1em;
    font-weight: 700;
    color: var(--text-second-color);
    margin-right: 2em;
    
  }  
  
  .toggle-mode input[type=checkbox]{
    -webkit-appearance: none;
    background-color: var(--principal-bg-color); 
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 50px;
    height: 26px;
    padding: 5px;
    position: relative;     
    /* border: 1px solid var(--principal-bg-color); */
  }
  
  .toggle-mode input[type=checkbox]::before {
    content: '';
    top:2px;
    left:2px;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--body-bg-gradiente-color);  
    position: absolute;
    transform: translateX(0px);
    transition: transform 0.2s linear;  
}
  
  .toggle-mode input[type=checkbox]:checked::before{
    transform: translateX(24px);
    /* border: 1px solid red; */
  }

.posicao{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 900px;   
}

.parallax{
    display: flex;
    align-items: center;
    justify-content: center;    
}

.mobile{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    position: absolute;
    margin-left: 4rem;
    margin-right: 4rem;
    margin-top: 18em;   
    width: 285px;
    height: 264px;   
     /* border: 1px solid red; */
}

#woman{
    position: relative; 
    padding-bottom: 3rem;
    z-index: 10;
}

#pattern{
    display: flex;   
    position: absolute;
    width: 100%;
    z-index: 8; 
}

#tela-principal{
    background-color: var(--principal-bg-color);
    margin-left: 2rem;
    margin-right: 2rem;
    border-radius: 20px;
    padding-top: 8rem;
    position: relative;
    margin-top: 9em;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-content: center;
}

.conversao{
    margin-bottom: 2rem;
}

h1 {
    color: var(--text-primary-color);
    border-radius: 10px;
    margin-left: 8px;
    margin-right: 8px;  
    text-align: center;  
}

.valorEmReal{
    -webkit-opperance:none;
    font-family: 'Kumbh Sans', sans-serif;
    color:var(--text-veryDark-color);
   
}


.form-group{
    text-align: center;
    word-spacing: 0.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark-color);
    font-family: 'Kumbh Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conteudo{
    width: 100%;  
}

.form-group button{
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem; 
    cursor: pointer; 
    font-family: 'Kumbh Sans', sans-serif;
    color:var(--conversor-text-primary-color);  
}

/* .form-group #btnConverter:hover{
    background-color:var(--text-max-color);
} */

.form-group .limpar:hover{
    background-color:var(--text-min-color);
}
.real{
    color: var(--text-second-color); 
}

#valorEmReal{
    border:none;
    border-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    text-align: center;
    /* box-shadow: 0 0 3px var(--input1-boxshadow-color); */
    width: 60%;
    height: 2rem;
    font-family: 'Kumbh Sans', sans-serif;
    /* border: 1px solid red; */
    margin-left: 0.5rem;
}

textarea:focus, input:focus {
    box-shadow: 0 0 0 0;
    outline: 0;
}

#btnLimpar{
    background-color: white;
    color: black;
    font-size: 1.3rem;
    padding: 4px 5px;
    width: 2.2rem;
    height: 32px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

img{
    color:red;
   transform: scale(0.8);
}

div.form-group:nth-child(3), input label{
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 1.5rem;
    /* border: 1px solid red; */   
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px; 
    margin-top: 2rem;   
}

 input label{
    /* border: 1px solid red; */
    border-radius: 10px;
    cursor: pointer;  
    background-color: transparent;
    width: 80px;
    height: 40px;    
    align-items: center;
    justify-content: center;
    z-index: 10;
     
}

label{
    cursor: pointer;
}

.moeda{
   background-color:var(--text-veryDark-color);  
   cursor: pointer;  
   padding-left: 0;
   padding-right: 0;
   width: 80px;
   height: 30px;
}



input.radio{
    display: none;   
}

.moeda:hover{
    background-color:var(--label-hover-color);
}

.moeda:focus{
    background-color: var(--text-max-color);
}

/* #btnConverter, #btnLimpar{
    margin-right: 0.8rem;
    background-color: var(--text-max-color);
} */



/* #btnLimpar:hover{
    background-color: var(--text-min-color);
} */

.infoCotacao{
    /* border: 1px solid red; */
    border-top: 2px solid var(--text-second-color);
    border-bottom: 2px solid var(--text-second-color);
    
    padding: 1rem 1rem 1rem;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    margin-left: 2rem;
    margin-right: 2rem;
    
}

.centro{
    color: var(--text-primary-color);    
}   

h2 {
    color: var(--text-primary-color);
    text-shadow: 0.1rem 0.1rem 0.2rem var(--boxshadow-color);
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1rem;    
}

p {
    color: var(--text-second-color);
    margin: 0.5rem 1rem;
    margin-bottom: 0;
    font-size: 1.1rem;    
}

#date{
    font-weight: 700;
    color: var(--text-second-color);
}

#maxvalue {
    font-weight: 700;
    color: var(--text-maxMin-color);
}

#minvalue {
    font-weight: 700;
    color: var(--text-maxMin-color);
}

#aviso{
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;    
}

.resultado{
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: 2rem;
    height: 4.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    background-color: var(--resultado-bg-color);
    color:var(--text-dark-color);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;   
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center; 
}

@media only screen and (min-width:414px) {
    
   .infoCotacao{
    margin-bottom: 20px;
   }
}

@media only screen and (min-width:800px) {
    
    .posicao{
        display: flex;
        flex-direction: row;   
        margin-top: 0; 
        margin-bottom: 0;
        padding-top: 0;  
        padding-bottom: 0; 
        /* border: 1px solid red; */
    }

    .infoCotacao{
        
        margin-right: 10px;
        /* border: 1px solid red; */
        padding-left: 0;
        padding-right: 0;
    }
    
    h1{
        /* border: 1px solid red; */
        padding-left: 0;
        padding-right: 0;       
    }

    .mobile{
        position: absolute;
        z-index: 10;
        margin-left: 20rem;
        margin-right: 0;
        margin-top: 0;
    }

    .form-group{
       margin-left: 5rem;
       margin-right: 5rem;
    }

    div.form-group:nth-child(1){
        width: 60%;
        margin-left: auto;
        margin-right: auto;  
    }

  
    #tela-principal{
        /* border: 1px solid red; */
        margin: 30px;
        margin-left: 140px;
        position: relative;
        width: 100%;
        /* padding-left: 10rem; */
        padding-top: 4rem;
       
    }

    #valorEmReal{
        width: 80%;
    }

    .resultado{
        width: 430px;
        height: 72px;    
    }

    .conversao{
        display: flex;
        flex-direction: column;
        align-items: center;
        /* border: 1px solid red; */
    }

 }

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

    .bloco-principal{
        display: flex;
        flex-direction: row;
        align-items: center;
        align-content: center;
        justify-content: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    
    .resultado{
        border-bottom:var(--border-bottom-color);
    }

    .conversao{
        /* width: 515px; */
        width: 32rem;
    }

    .infoCotacao{
        margin-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 8px;
        background-color:var(--resultado-bg-color);
        border: none;
        border-bottom:var(--border-bottom-color);
        /* width: 271px; */
        width: 17rem;
    }

    h2{
        padding-left: 15px;
        padding-right: 15px;
    }

    #date{
        text-align: center;
    }
 }