:root {
    /* Litabreytur */
    --background-color: #212121;
    --text-color: white;
    --primary-color: #df3da1;
    --secondary-color: #df3da1;
    --hover-color: #df3da1ff;
    --table-border-color: #df3da1ff;
    --table-hover-color: #2b2b2b;
    --link-hover-color: white;

    /* Textastærðir */
    --font-size-small: 0.75rem; /* 14px */
    --font-size-base: 0.9rem;      /* 16px */
    --font-size-medium: 1.1rem; /* 20px */
    --font-size-large: 1.5rem;   /* 24px */
    --font-size-xl: 2rem;        /* 32px */
    --font-size-xxl: 2.5rem;     /* 40px */
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0px;
    bottom: 60px;
    font-weight: bold;
    font-size: var(--font-size-base);
}

.nav-link.active {
    font-weight: bold;
    color: #ffffff !important;
}

.header {
    background-color: var(--background-color);
    padding: 0px 0;
    text-align: center;
    font-weight: bold;
    color: var(--text-color);
}

.header .title {
    font-size: var(--font-size-xxl);
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.header .title:hover {
    text-decoration: underline;
}

.header p {
    font-weight: bold;
    font-size: var(--font-size-base);
    color: #cfcfcf;
    margin-bottom: 0px;
}

.container {
    margin-bottom: 0px;
    max-width: 1200px;
    border-radius: 5px;
}
.search-bar {
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-input {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
    background-color: #ffffff;
    color: #000000;
    font-weight: bold;
    font-size: var(--font-size-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--hover-color);
    box-shadow: 0 0 5px var(--hover-color);
}

.btn-success {
    padding: 5px 15px;
    font-weight: bold;
    font-size: var(--font-size-medium);
    border-radius: 5px;
}

.stats-row {
    display: flex;
    justify-content: space-evenly;
    margin-top: 5px;
    gap: 10px;
    flex-wrap: wrap;
}

.stat-item {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 0px;
    border: 0px solid var(--primary-color);
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    flex-basis: calc(20% - 20px);
    margin-bottom: 5px;
}

.stat-item h3 {
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--font-size-medium);
}
h6 {
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--font-size-medium);
}
.center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    font-size: var(--font-size-small);
    margin: 0;
    padding: 0;
}

.responsive-logo {
    max-width: 500px;
    height: auto;
    margin: 5px;
    align-items: center;
}

.title {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    font-size: var(--font-size-large);
}
/* Sjálfgefið: inputs-outputs er ekki sýnilegt */
.inputs-outputs {
    display: none; /* Ekki sýnilegt nema skilyrði séu uppfyllt */
}
/* Þegar skjárinn er breiður */
@media screen and (min-width: 800px) {
    .inputs-outputs {
        display: flex; /* Virkja inputs-outputs */
        justify-content: space-between;
        gap: 10px;
        margin-top: 30px;
    }
    .inputs, .outputs {
        width: 48%;
        padding: 2px;
        border-radius: 5px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }
}
/* Fyrir minni skjái */
@media screen and (max-width: 800px) {
    .container {
        margin-bottom: 0px;
        max-width: 100%;
        border-radius: 5px;
    }
    .inputs-outputs {
        display: flex;
        flex-direction: column; /* Skipuleggja í lóðrétt plan */
        gap: 5px; /* Minna bil milli barna */
    }
    .inputs, .outputs {
        width: 100%; /* Breytist í fulla breidd */
        border-radius: 5px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }
    table {
        display: table;
        width: 100%; /* Full breidd fyrir taflu */
        overflow-x: auto; /* Leyfir skrun fyrir langa texta */
        border-collapse: collapse; /* Fjarlægir bil á milli fruma */
    }
    thead {
        display: table-header-group;
    }
    tbody {
        display: table-row-group;
    }
    tr {
        display: table-row;
    }
    /* Almennar reglur fyrir töflu */
    .table td, .table th {
        white-space: nowrap; /* Hindrar línubrot */
        overflow: hidden; /* Felur texta sem fer út fyrir */
        text-overflow: ellipsis; /* Sýnir "..." ef textinn er of langur */
        font-weight: normal; /* Venjulegur texti fyrir almenna dálka */
        font-size: var(--font-size-small);
        padding: 2px 2px; /* Minnsta bil innan fruma */
        max-width: 70px;
        text-align: left; /* Jafna texta til vinstri */
        border-bottom: 1px solid var(--table-border-color); /* Lína á milli raða */
    }

    /* Sérhæfðari reglur fyrir addressur */
    .table td.address, .table th.address {
        white-space: nowrap; /* Hindrar línubrot */
        overflow: hidden; /* Felur texta sem fer út fyrir */
        text-overflow: ellipsis; /* Sýnir "..." ef textinn er of langur */
        max-width: none;
        font-weight: bold; /* Sterkari texti fyrir addressur */
    }
    .table td.address2, .table th.address2 {
    white-space: nowrap; /* Hindrar textann í að brjóta línu */
    overflow: hidden; /* Felur hluta textans sem fer út fyrir */
    max-width: 150px; /* Stillanleg breidd, getur verið 50px eða meira */
    direction: rtl; /* Sýnir textann frá hægri */
    text-align: left; /* Lætur textann vera jafnað til vinstri */
    font-weight: bold; /* Sterkari texti fyrir addressur */
    padding-right: 10px; /* Smá bil til að bæta útlit */
}

    .responsive-logo {
        max-width: 75%;
        margin: 0px auto;
        font-weight: bold;
        font-size: var(--font-size-medium);
    }
    .stat-item {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 0px;
    border: 0px solid var(--primary-color);
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    flex-basis: calc(50% - 20px);
    margin-bottom: 5px;
    }
}
/* Almennar reglur fyrir töflur */
.table {
    background-color: var(--background-color);
    border-radius: 5px;
    overflow: hidden;
    font-weight: bold;
    font-size: var(--font-size-medium);
    border: 1px solid var(--table-border-color);
    margin-top: 5px;
    width: 100%;
    border-collapse: collapse; /* Fjarlægir bil á milli fruma */
}

.table th, .table td {
    padding: 0px 0px; /* Minnsta mögulega bil innan fruma */
    font-size: var(--font-size-small);
    font-weight: bold;
    border-bottom: 1px solid var(--table-border-color);
    text-align: left; /* Allt jafnað til vinstri */
    white-space: nowrap; /* Hindrar línubrot */
    overflow: hidden; /* Felur texta sem fer út fyrir */
    text-overflow: ellipsis; /* Sýnir "..." ef textinn fer út fyrir */
}

/* Vinstri jöfnun fyrir töfluhaus og gögn */
.table th.left, .table td.left, .convert-currency.left {
    text-align: left;
    padding: 2px; /* Engin óþarfa bil frá vinstri brún */
}

/* Hægri jöfnun fyrir fjárhæðir */
.table th.right, .table td.right, .convert-currency.right {
    text-align: right;
    padding: 2px; /* Engin óþarfa bil frá hægri brún */
}

/* Hausar */
.table thead th {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: bold;
    text-align: left;
    padding: 2px 2px; /* Minnsta padding fyrir haus */
}

/* Gögn */
.table tbody td {
    font-weight: bold;
    font-size: var(--font-size-small);
    padding: 2px 2px; /* Passar við hausinn */
}

/* Hover áhrif fyrir raðir */
.table tbody tr:hover {
    background-color: var(--table-hover-color);
}
a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: var(--font-size-base;
}

a:hover {
    text-decoration: underline;
    color: var(--link-hover-color);
}
