body {
    font-family: 'Titillium Web', sans-serif;
    background-image: url('https://people.ufpr.br/~jefer/doutorado/metaverses/ra/imagens/fundo-preto.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
}

.container {
    text-align: center;
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Dosis', sans-serif;
    font-size: 2.5rem;
    color: #1dd3f8;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    margin-right: 10px;
    width: 80px;
    cursor: pointer;
}

#binary-counter {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.bit {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin: 0 5px;
    background-color: #444;
    border-radius: 5px;
    border: 2px solid #888;
    transition: background-color 0.3s;
}

.bit.flip {
    animation: flip 0.5s ease-in-out;
}

#next-number, #explain, #bncc {
    padding: 10px 20px;
    font-family: 'Dosis', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 10px;
    background-color: #1dd3f8;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#next-number:hover, #explain:hover, #bncc:hover {
    background-color: #ffa400;
}

#decimal-number {
    margin-top: 20px;
    font-size: 1.5rem;
}

@keyframes flip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

/* Modal CSS */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    color: black;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Elementos Gráficos */
.rocket {
    position: absolute;
    bottom: 35;
    right: 0%;
    width: 100px;
    animation: float 4s infinite ease-in-out;
}

.astronaut {
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 100px;
    animation: float 6s infinite ease-in-out;
}

.ovni {
    position: absolute;
    top: 10%;
    left: 99%;
    width: 100px;
    transform: translateX(-50%);
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-family: 'Dosis', sans-serif;
}

.signature {
    color: #ffa400;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}
