body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
}

.link-voltar {
    position: fixed;
    top: 20px;
    left: 20px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    text-decoration: none;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;

    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
}

.link-voltar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.link-voltar:active {
    transform: scale(0.96);
}

header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 12px;
    border: none;
    cursor: pointer;
    background: #e0e3ea;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: bold;
}

.tab-button.active {
    background: #2a5298;
    color: white;
}

.tab-content {
    display: none;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.content-text {
    flex: 1;
}

.content-text h2 {
    margin-top: 0;
    color: #2a5298;
}

.content-image {
    flex: 1;
}

.content-image img {
    width: 100%;
    border-radius: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 768px) {
    .tab-content.active {
        flex-direction: column;
    }
}

/*|===============|Conversão de numero em binario|===============|*/
.calculator {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.calculator input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.calculator button {
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #2a5298;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.calculator button:hover {
    background: #1e3c72;
}

.storage-converter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.storage-converter input,
.storage-converter select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.storage-converter button {
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #2a5298;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.storage-converter button:hover {
    background: #1e3c72;
}

.text-converter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

/*|===============|Conversão de texto em binario|===============|*/
.text-converter input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.text-converter button {
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #2a5298;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.text-converter button:hover {
    background: #1e3c72;
}