body {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 250;
    padding: 250;
}

/* languageSwitcher {
        width: 50px;
    } */

header {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start; /* Выровнять по верхнему краю */
            justify-content: space-between;
            width: 100%;
            max-width: 800px;
            height: 200px;
            margin: 0 auto;
        }

        .left-space {
            width: 100px;
            flex-shrink: 0;
/*             border: 5.67px solid red; */
            box-sizing: border-box;
        }

        .title {
            flex: 1;
            min-width: 100px;
            text-align: center;
            font-size: 16pt;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            white-space: nowrap;
/*             border: 5.67px solid green; */
            box-sizing: border-box;
        }

        .language-container {
            width: 150px;
            flex-shrink: 0;
            display: flex;
            align-items: center; /* Выровнять по центру */
            justify-content: flex-start;
            /* border: 5.67px solid blue; */
            box-sizing: border-box;
            padding-top: 50px; /* Отступ по высоте */
        }

        .language-icon {
            font-size: 30px;
			margin-left: 5px;
			margin-right: 10px; /* Отступ между иконкой и селектором */
            filter: grayscale(100%); /* Чёрно-белый эффект */
            height: 100%; /* Высота иконки равна высоте селектора */
        }

        .language-switcher {
		  appearance: none; /* Сброс нативного стиля */
  -webkit-appearance: none; /* Для Safari */
  font-family: 'Yanone Kaffeesatz', sans-serif;
		height: 30px;
		border: none;
		border-bottom: 2px solid lightgray;
		margin-top: 4px;
            width: 100%;
        }

        @media (max-width: 800px) {
            .header {
                flex-direction: column;
                height: auto;
                align-items: center;
            }
            .left-space {
                display: none; /* Прячем пустой блок при сжатии */
            }
            .title {
                font-size: 4vw; /* Пропорционально уменьшаем текст */
            }
            .language-container {
                width: auto;
                padding-top: 0; /* Убираем отступы сверху */
            }
        }

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

input {
    font-family: 'Yanone Kaffeesatz', sans-serif;
	width: 100%;
    max-width: 256px;
    padding: 8px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid lightgray;
    outline: none;
    background-color: transparent;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    border-bottom: 2px solid black;
}

input:not(:placeholder-shown) {
    border-bottom: 2px solid white;
}

#input-section, #qr-section {
    max-width: 272px;
    width: 100%;
   
		border: 1px solid black;
    
}

input, select {
    font-family: 'Yanone Kaffeesatz', sans-serif;
	width: 100%;
    margin: 5px 0;
    padding: 8px;
}

#qrcodeCanvas {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 256px;
    height: 256px;
}

footer {
    max-width: 512px;
    width: 100%;
    margin: auto;
    text-align: center;
}

button {
    padding: 10px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}`;

.error-message {
    color: red;
    font-size: 12px;
    display: block;
}

#qr-container {
            position: relative;
            width: 400px;
            height: 400px;
            margin: 20px auto;
            display: flex;
            justify-content: center;
            align-items: center;
            border: 2px solid black; /* Черная граница толщиной 2 пикселя */
        }

        #qr-code {
            max-width: 100%;
            max-height: 100%;
        }

        .input-container {
            margin-bottom: 10px;
        }

        input[type="text"] {
            padding: 0;
            font-size: 16px;
            width: 200px;
            box-sizing: border-box;
            font-family: 'Yanone Kaffeesatz', sans-serif;
        }

        #blue-rectangle {
            background-color: blue;
            color: white;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
            overflow: hidden;
            padding: 0;
        }

        #text-field {
            background-color: #ADD8E6;
            font-family: 'Yanone Kaffeesatz', sans-serif;
            text-align: center;
            box-sizing: border-box;
            white-space: nowrap;
            padding: 0;
            margin: 0;
            border: none;
            outline: none;
        }

        .info {
            font-size: 14px;
            margin-top: 10px;
        }
		
		.custom-select {
      position: relative;
      width: 100%;
      user-select: none;
    }

    .custom-select .selected {
      padding: 4px 30px 4px 8px;
      border: none;
      border-bottom: 2px solid lightgray;
      cursor: pointer;
      position: relative;
      font-size: 18px;
    }

    .custom-select .selected::after {
      content: "▼";
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 12px;
      color: gray;
    }

    .custom-select .options {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: white;
      border: 1px solid lightgray;
      z-index: 10;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .custom-select.open .options {
      display: block;
    }

    .custom-select .option {
      padding: 6px 8px;
      cursor: pointer;
      font-size: 16px;
    }

    .custom-select .option:hover {
      background-color: #f0f0f0;
    }

    /* Просто демонстрация */
    .language-output {
      margin-top: 20px;
      font-size: 20px;
    }