body{
    background-image: url('imagens/fundo.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    margin: 0;
    font-family: sans-serif;
    overflow: hidden;
    color: white;
    font-weight: 600;
} 

.top-bar{
    width: 100%;
    height: 40px;
    font-weight: 800;
    font-size: 22px;
    border-radius: 0px 0px 6px 6px;
    display: flex; justify-content: space-between; 
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box

}

.janela {
    display: none;
    position: absolute;
    top: 100px;
    left: 100px;
    width: 300px;
    background-color: rgba(18, 18, 20, 0.85); 
    backdrop-filter: blur(8px); 
    border-radius: 12px;
    box-shadow: 0px 8px 32px rgba(0,0,0,0.5);
    overflow: hidden;
    cursor: pointer;
}

.janela-cabeca {
    background: none;
    padding: 8px 12px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-radius: 0 0 8px 8px;
    position: relative
}

.janela-cabeca > :first-child {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.janela-conteudo {
    padding: 16px;
    box-sizing: border-box;
}

#janela-clima, #janela-bemvindo{
    user-select: none;
}

.btn-fechar {
    background-color: rgba(235, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 10px;
    height: 10px; 
    cursor: not-allowed;
}

.icone img {
    border-radius: 14px;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.icone {
    width: 80px;
    text-align: center;
    position: absolute;
    touch-action: none;
}

#btn-calc     { top: 560px; left: 20px; }
#btn-clima    { top: 460px; left: 20px; }
#btn-notas    { top: 260px; left: 20px; }
#btn-bemvindo { top: 60px; left: 20px; }
#btn-pesquisar {top: 160px; left: 20px}
#btn-musica {top: 360px; left:20px}
 
#texto-notas {
    width: 100%;
    height: 120px;
    color: white;
    border: none;
    outline: none;
    background: transparent;
}

#texto-notas::placeholder{
    color: rgba(255, 255, 255, 0.6)
}

#campo-pesquisa{
    width: 60%; padding: 8px; border-radius: 8px;
    border: none; outline: none; box-sizing:
    border-box; margin-bottom: 8px;
    text-align: center;
    display: block;
    margin: auto; 
}

#btn-fazer-pesquisa{
    width: 60%; padding: 8px; border-radius: 6px;
    border: none; background-color: rgb(23, 145, 185); color: white;
    cursor: pointer; font-weight: bold;
    margin-bottom: 10px;
    display: block;
    margin: 0 auto; 
}

#cidade{
    text-align: center
}

#temp-clima{
    text-align: center
}

/*tela de carregamento*/
#tela-carregamento {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(220, 220, 220);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 1s ease, opacity 1s ease-out; 
}

#tela-carregamento.escurecer {
    background-color: rgba(86, 86, 86, 0.9);
    backdrop-filter: blur(8px);
}

.container-bolinhas {
    position: relative;
    width: 100px;
    height: 100px;
    animation: girar 2s linear infinite 
}

.bolinha {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #bc002d;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
    transition: all 1.5s ease-in-out;
}

.bolinha1 { transform: translateY(-45px); }
.bolinha2 { transform: translate(40px, 25px); }
.bolinha3 { transform: translate(-40px, 25px); }

@keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container-bolinhas.juntar .bolinha {
    transform: translate(0, 0);
    width: 160px;
    height: 160px;
    margin-top: -80px;
    margin-left: -80px;
}

/*calculadora*/
.calc-card {
    width: 250px;
    background-color: rgba(18, 18, 20, 0.92); 
    backdrop-filter: blur(8px); 
    border-radius: 16px;
    padding-bottom: 12px;
}

#calc-screen { 
    background-color: transparent;
    color: rgb(248, 235, 255);
    width: 100%;
    padding: 10px;
    font-size: 28px;
    text-align: right;
    box-sizing: border-box;
    border: none;
    font-weight: bold;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 8px;
}

.calc-buttons button {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    border: none;
    font-size: 16px;
}

.calc-buttons button.btn-clear {
    color: rgb(255, 80, 80);
    background-color: rgba(27, 22, 41, 0.35);
}

.calc-buttons button.btn-back {
    background-color: rgba(27, 22, 41, 0.35);
    color: rgb(255, 100, 100);
}
 
.calc-buttons button.btn-op {
    background-color: rgba(27, 22, 41, 0.35);
    color: rgba(220, 198, 255, 0.9);
}

.calc-buttons button.btn-num {
    background-color: rgba(27, 22, 41, 0.35);
    color: rgb(255, 255, 255);
}

#btn-equal {
    color: rgb(255, 255, 255);
    background-color: rgb(190, 44, 44);
}

.calc-buttons button:hover {
    filter: brightness(1.2);
}

#janela-musica {
    width: 330px;
    background-color: rgba(18, 18, 20, 0.9);
    backdrop-filter: blur(10px);
}

#janela-musica .janela-conteudo {
    padding: 10px;
    box-sizing: border-box;
}

#player-musica {
    border-radius: 12px;
}

/*clima atualizado*/
#input-cidade {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    border: none;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 8px;
    text-align: center;
}

#btn-buscar-clima {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    border: none;
    background-color: rgb(23, 145, 185);
    color: white;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 15px;
}
