@font-face {
    font-family: 'Poppins';
    src: url('./../assets/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins Bold';
    src: url('./../assets/fonts/Poppins/Poppins-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins Semibold';
    src: url('./../assets/fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins Bold';
}

main {
    padding: 12px;
    background-color: var(--background-darker);
    width: 100%;
    max-width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-width: 0;
}
.box {
    background-color: var(--background);
    padding: 16px;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
}

.form-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* INPUT SECTION */

.input-box {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 100%;
    margin-bottom: 12px;
}

.input-box label {
    font-family: 'Poppins Semibold';
    font-size: 14px;
    font-weight: normal;
}

.input-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    background-color: var(--background);
    gap: 8px;
    border: 1px solid var(--border-dark);
    /* padding: 8px; */
    border-radius: 4px;
    height: 40px;
}

.input-container i {
    font-size: 10pt;
    /* border-radius: 4px; */
    /* padding: 8px; */
    width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-dark);
}

.input-container input {
    border: none;
    outline: none;
    background-color: transparent;
    width: 100%;
    font-family: 'Poppins';
    font-weight: 500;
    font-size: 11pt;
}

.or-box {
    font-size: 10pt;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.or-box span {
    width: 100%;
    height: 1px;
    background-color: var(--border-dark);
}

.calculate-actions {
    width: 100%;
    display: grid;
    grid-template-rows: 50% 50%;
    gap: 8px;
    padding-block: 12px;
}

.calculate-actions button {
    height: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-dark);
}

#calculate-button {
    background-color: var(--primary);
    color: #fff;
}

#clear-button {
    background-color: var(--background);
    color: var(--primary);
}

.tips-header {
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    gap: 4px;
}

.tips {
    margin-top: 12px;
    /* display: flex;
    flex-direction: column; */
    background-color: var(--background-darker);
    padding: 12px;
    border-radius: 8px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 9pt;
}

.tips-list span {
    display: flex;
    flex-direction: row;
    gap: 4px;
    /* align-items: center; */
}

.tips-list span::before {
    margin-top: 6px;
    content: "";
    width: 5px;
    height: 5px;
    background-color: var(--primary);
    border-radius: 100%;
    opacity: 60%;
}

/* END INPUT SECTION */


/* RESULT SECTION */

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding-top: 16px;
    min-width: 0;
}

.result-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    min-width: 0;
}

.result-card .card-text {
    min-width: 0;
}

.result-card .card-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    background-color: var(--background-darker);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.binary-result {
    margin-top: 2px;
    border-radius: 8px;
    /* border: 1px solid var(--border-dark); */
    padding: 16px;
}

.binary-header {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    padding-bottom: 12px;
}

.binary-table {
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    overflow-x: auto;
}

.binary-result-row, .binary-result-row .bytes {
    display: flex;
    flex-direction: row;
}

.binary-result-row {
    gap: 12px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.binary-result-row h4 {
    width: 200px;
    flex-shrink: 0;
}

.bytes {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
}

.byte-cell {
    flex: 1;
    min-width: 0;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--border-dark);
}

.binary-table-header {
    height: 30px;
    font-size: 10pt;
}
.binary-table-header .byte-cell {
    border: none;
}

/* END RESULT SECTION */

.input-section {
    width: 24%;
    min-width: 300px;
    flex-shrink: 0;
}

.result-section {
    flex: 1;
    min-width: 0;
}

.card-text p {
    font-size: 10pt;
}

.card-text h5 {
    font-size: 12pt;
    word-break: break-word;
}