.navbar {
    background-color: #153448;
}
.navbar-brand img {
    max-height: 40px;
    margin-right: 20px;
    padding: 10px;
}

.language-picker__form {
    display: flex;
    align-items: center;
}

.language-picker__form label {
    margin-right: 10px;
}

.navbar-container {
    display: flex;
    align-items: center;
}


#responseMessage {
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #28a745;
    border-radius: 5px;
    background-color: #d4edda;
    color: #155724;
    display: none;
}


.precision-dropdown {
    position: relative;
    display: inline-block;
}

.precision-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

.precision-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 50px;
    z-index: 1;
}

.precision-dropdown-content a {
    color: black;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
}

.precision-dropdown-content a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}


body {
    font-family: arial, helvetica, sans-serif;
    font-size: 16px;
    color: #000;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}




.navbar-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, .075);
}

.topnav {
    font-size: 11px;
    padding-top: 0px;
    padding-bottom: 10px;
}

.container {
    max-width: 600px;
    margin: 0px auto;
    background-color: #fff;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #153448;
}

h3 {
    text-align: center;
    color: #46799b;
    font-family: sans-serif;
}

.converter {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

input {
    width: 150px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 30px;
    margin: 0 10px;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

#result {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    color: #333;
    font-size: 30px;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

p {
    margin: 5px 0 8px 0;
}

#linkrefer div {
    display: inline-block;
    width: 295px;
}

#linkrefer a {
    color: #1512b6;
}

#linkpopular div {
    display: inline-block;
    width: 295px;
}

#linkpopular a {
    color: #1512b6;
}

#contentout {
    width: 990px;
    padding-top: 5px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

#content {
    padding: 0px 0px 15px 0px;
    width: 640px;
    float: left;
}


#right {
    width: 336px;
    float: right;
    text-align: center;
    width: 25%;
    padding: 0px 80px 15px 20px;
}


#othercalc {
    border: solid 1px #336699;
    margin: auto;
    text-align: left;
    width: 332px;
}

#octitle {
    background-color: #336699;
    padding: 6px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

#octitle a {
    color: #fff;
    text-decoration: none;

}

#octitle a:hover {
    text-decoration: underline;
}

#occontent {
    padding: 3px 6px;
    font-size: 14px;
}

#occontent a {
    display: inline-block;
    width: 158px;
    padding: 3px 0px;
}

#ocother {
    background-color: #ddd;
    padding: 6px;
    text-align: center;
    font-size: 15px;
    color: #bbb;
}

@media (max-width:1140px) {
    #contentout {
        width: 1000px;
    }

    #content {
        width: 640px;
        float: left;
        padding-left: 10px;
    }
}

@media (max-width:720px) {
    #contentout {
        width: auto;
        padding: 8px;
    }

    #content {
        float: none;
        width: auto;
        padding: 0px;
    }

    #right {
        width: auto;
        float: none;
    }
}

#footer {
    padding: 30px;
    clear: both;
    text-align: center;
    line-height: 200%;
    border-top: 1px solid #ddd;
    background: #eee;
    font-size: large
}

#footer a {
    padding: 8px 5px;
    text-decoration: none;
    color: #333
}

#footer a:hover {
    color: #fff;
    background: #666
}

h5 {
    font-size: .9em;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 2px;
    background: #e0e0e0;
    padding: 5px 5px 5px 10px;
}

ul {
    margin-top: 0;
    margin-bottom: 1rem;
}

li {
    text-align: left;
}

li a {
    color: #1512b6;
}

section {
    border: 2px solid #000;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

table {
    border-collapse: collapse;
    width: 50%;
    margin: 0 auto;
}

th,
td {
    border: 1px solid #ddd;
    padding: 6px;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

select {
    width: 100%;
    max-width: 300px;
    color: #333;
    background-color: #fcfeff;
}

select,
button {
    font-size: 18px;
    padding: 10px;
    margin: 10px 0;
    border-radius: 3px;
    border: 1px solid #ccc;

}

button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

#swapBtn {
    background-color: #07b9ff;
    border-radius: 3px;
    width: 80px;
}

#swapBtn:hover {
    background-color: #2f60ff;
}

.select-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.select-container select {
    margin: 0 10px;
}

.page-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 10px;
}

.page-menu a {
    text-decoration: none;
}


.page-menu-item {
    padding: 20px;
    width: 250px;
    background-color: #e5f1fd;
    color: black;
    border-radius: 4px;
    box-shadow: 2px 2px 2px 1px #d4d4fa;
    justify-self: center;
    align-self: stretch;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;

    font-family: arial, helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.page-menu-item:hover {
    background-color: #c0dffc;
    text-decoration: none;
    color: inherit;
}


form {
    max-width: 500px;
    margin: 0 auto;
}


label {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    color: green;
    font-weight: 600;
}


textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    box-sizing: border-box;
    border-radius: 10px;
}

button {
    background-color: #186dc2;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    transition: .2s linear;
}

button:hover {
    background-color: #3496f1;
    border: none;
}