* {
    margin: 0px;
    padding: 0px;
    -webkit-tap-highlight-color: transparent;
}


/* Для Chrome, Safari, Edge и других браузеров на основе WebKit */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@font-face {
    font-family: 'suisse_intlregular';
    src: url('fonts/suisseintl-regular-webfont.woff2') format('woff2'),
         url('fonts/suisseintl-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    flex-direction: column;

    font-family: 'suisse_intlregular';
    background-color: black;
    color: white;
}

section {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    flex-direction: column;

    padding: 30px;
    width: 100%;
    height: 100vh;
}

.menu {
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;

    width: 100%;
}

h1 {
    text-align: center;
    font-size: 3.2vw;
    font-weight: 400;
    letter-spacing: -0.1vw;
}

h2 {
    text-align: center;
    font-size: 2vw;
    font-weight: 400;
}

p {
    text-align: center;
    font-size: 1.5vw;

    position: relative;
    word-wrap: break-word;
}

.gray {
    opacity: 50%;
}

.button {
    background-color: #6100fe;
    color: white;
    text-decoration: none;

    font-size: 1.3vw;
    stroke: none;

    padding: 15px 25px 12px 25px;
    margin-top: 15px;
    border-radius: 100px;
    border: 0;

    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #3d098f;
}

.button:focus {
    outline: 4px solid #6100fe;
}

.main-wrapper {
    display: flex;
    box-sizing: border-box;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;
}

.main-block {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    flex-direction: column;
}

.code-block {
    display: flex;
    box-sizing: border-box;
}

input {
    background-color: #2A2A2A;
    box-sizing: border-box;
    border: 0;
    
    width: 450px;
    height: 80px;

    border-radius: 25px;
    padding-left: 25px;

    font-size: 18px;
    color: white;

    outline-color: white;
}

.arrow {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    background-color: white;

    border-radius: 25px;
    
    width: 80px;
    height: 80px;

    padding-left: 23px;
    margin-left: 25px;

    border-width: 2px;
    border-style: solid;
    border-color: #2A2A2A;
    background-color: transparent;
}

.text-block {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    flex-direction: column;

    max-width: 60vw;
    margin-top: 30px;
}



#key {
    word-break: break-all; /* Позволяет переносить текст в любом месте */
    overflow-wrap: anywhere; /* Позволяет тексту переноситься при необходимости */
    max-width: 100%; /* Ограничивает ширину родительским элементом */
    white-space: normal; /* Разрешает перенос строк */
    display: inline-block; /* Поддерживает перенос строк внутри блока */
}

.cards {
    display: flex;
    box-sizing: border-box;
    flex-direction: row;
    justify-content: space-between;

    width: 100%;
    height: 100%;
    max-height: 400px;
}

.card {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    background-color: white;
    color: black;

    width: 30vw;
    height: 100%;

    border-radius: 35px;
    padding: 15px;
}

.cards-wrapper {
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;

    margin: 50px 0;
}

.error-message {
    color: red;
    font-size: 16px;
    margin-top: 10px;
    text-align: center;
    visibility: hidden;
}



/* Стили для контейнера уведомлений */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Стили для отдельного уведомления */
.toast {
    padding: 15px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 15px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Класс для отображения уведомления */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Дополнительные стили для успешного уведомления */
.toast.success {
    background-color: #49994b; /* Зеленый цвет */
}

/* Дополнительные стили для ошибки */
.toast.error {
    background-color: #CE1F1F; /* Красный цвет */
}

.toast::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    background-size: cover;
}

/* Иконка для успешного уведомления */
.toast.success::before {
    background-image: url('media/success-icon.png'); /* Путь к вашей иконке */
}

/* Иконка для ошибки */
.toast.error::before {
    background-image: url('media/error-icon.png'); /* Путь к вашей иконке */
}