html,
body {
    border: none;
    padding: 0;
    margin: 0;
}

body {
    text-align: center;
    font-family: Arial, sans-serif;
    color: white;
    background-color: #003366;
    /* Тёмно-синий фон */
    padding: 20px;
}

h1 {
    color: #f5f5f5;
}


#test {
    margin-top: 2em;
    /* margin-bottom: 12em; */
}

div.testArea {
    display: inline-block;
    width: 16em;
    height: 12.5em;
    position: relative;
    box-sizing: border-box;
}

div.testArea2 {
    display: inline-block;
    width: 14em;
    height: 7em;
    position: relative;
    box-sizing: border-box;
    text-align: center;
}

div.testArea div.testName {
    position: absolute;
    top: 0.1em;
    left: 0;
    width: 100%;
    font-size: 1.4em;
    z-index: 9;
}

div.testArea2 div.testName {
    display: block;
    text-align: center;
    font-size: 1.4em;
    color: #e1e1e1;
}

div.testArea div.meterText {
    position: absolute;
    bottom: 1.55em;
    left: 0;
    width: 100%;
    font-size: 2.5em;
    z-index: 9;
}

div.testArea2 div.meterText {
    display: inline-block;
    font-size: 2.5em;
}

div.meterText:empty:before {
    content: "0.00";
}

div.testArea div.unit {
    position: absolute;
    bottom: 2em;
    left: 0;
    width: 100%;
    z-index: 9;
}

div.testArea2 div.unit {
    display: inline-block;
}

div.testArea canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

div.testGroup {
    display: block;
    margin: 0 auto;
}

#shareArea {
    margin-top: 2em;
}

#shareArea>* {
    display: block;
    width: 100%;
    height: auto;
    margin: 0.25em 0;
}

#privacyPolicy {
    position: fixed;
    top: 2em;
    bottom: 2em;
    left: 2em;
    right: 2em;
    overflow-y: auto;
    width: auto;
    height: auto;
    box-shadow: 0 0 3em 1em #000000;
    z-index: 999999;
    text-align: left;
    background-color: #FFFFFF;
    padding: 1em;
}

a.privacy {
    text-align: center;
    font-size: 0.8em;
    color: #808080;
    padding: 0 3em;
}

div.closePrivacyPolicy {
    width: 100%;
    text-align: center;
}

div.closePrivacyPolicy a.privacy {
    padding: 1em 3em;
}

@media all and (max-width:40em) {
    body {
        font-size: 0.8em;
    }
}

.button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 20px 0;
    font-size: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-default {
    color: #fff;
    background-color: #9C27B0;
}

.btn-danger {
    color: #fff;
    background-color: #F44336;
}

.styled-border {
    border: 1px solid #c6c5c7;
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
}

.bootstrap-input:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

.combo-wrapper {
    display: flex;
    align-items: center;
    width: fit-content;
}

.bootstrap-input {
    flex: 1;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    /* Закругленные углы только слева */
    margin-right: -1px;
    /* Убираем зазор между кнопкой и полем ввода */
}

.bootstrap-input-description {
    display: block;
    width: 95%;
    margin-top: 10px;
    flex: 1;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px 4px 4px 4px;
    margin-right: -1px;

}

.open-url-button {
    padding: 6px 12px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 0 4px 4px 0;
    /* Закругленные углы только справа */
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    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%;
}

.modal-content p {
    margin-bottom: 20px;
}

.modal-content button {
    margin-right: 10px;
}

.link-right {
    float: right;
}

.container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background-color: #0055A4;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
}

p {
    font-size: 18px;
    line-height: 1.6;
}

.results {
    font-size: 18px;
    text-align: center;
    padding: 20px;
    background-color: #007ACC;
    margin-top: 20px;
    border-radius: 5px;
}

div.visible {
    animation: fadeIn 0.4s;
    display: block;
}

div.hidden {
    animation: fadeOut 0.4s;
    display: none;
}

.select-bootstrap {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}


.select-bootstrap:focus {
    border-color: #f45e6f;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}