* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Rubik';
    font-weight: 400;
    font-style: normal;
    src: url('https://fonts.gstatic.com/s/rubik/v21/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-B4iFV0U1.woff2') format('woff2');
}

@font-face {
    font-family: 'Rubik';
    font-weight: 700;
    font-style: normal;
    src: url('https://fonts.gstatic.com/s/rubik/v21/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-NYiFV0U1.woff2') format('woff2');
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: scroll;
    position: relative;
    font-family: 'Rubik', sans-serif;
}

body::before {
    content: "";
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    filter: blur(5px);
    z-index: -1;
}

.App {
    position: relative;
    min-height: 100vh;
    overflow: auto;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 20px auto;
    font-family: 'Rubik', sans-serif;
}

@media (min-width: 1024px) {
    .container {
        width: 500px;
    }
}

.logo {
    border-radius: 50px;
    color: #000;
    background-color: #fff;
    border: 1px solid white;
    box-shadow: 5px 0 #8dcdff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.logo-img {
    width: 250px;
    padding: 10px 16px;
}

.select-row {
    display: flex;
    width: 250px;
    justify-content: space-between;
}

.label-wrapper {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    align-items: center;
}

label {
    font-size: 16px;
    text-decoration: underline solid white;
    color: #fff;
    background-color: transparent;
    padding: 10px 0;
    box-sizing: border-box;
    text-align: center;
}

.info-label {
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    background-color: transparent;
    padding: 10px 0;
    box-sizing: border-box;
}

.custom-select,
.small-custom-select {
    min-width: 250px;
    height: 50px;
    padding: 10px;
    font-size: 16px;
    border-radius: 50px;
    color: #000;
    background-color: #fff;
    border: 1px solid white;
    box-shadow: 5px 0 #8dcdff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    font-family: 'Rubik', sans-serif;
    text-align: center;
    text-align-last: center;
    cursor: pointer;
}

.small-custom-select {
    width: 110px;
    min-width: 110px;
}

.custom-select:focus,
.small-custom-select:focus {
    border-color: #fff;
}

.custom-select option {
    padding: 10px;
}

.sum-input {
    min-width: 250px;
    height: 50px;
    padding: 10px;
    font-size: 16px;
    border-radius: 50px;
    background-color: #fff;
    border: 1px solid white;
    box-shadow: 5px 0 #8dcdff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    font-family: 'Rubik', sans-serif;
    text-align: center;
    box-sizing: border-box;
    color: #000;
}

.sum-input[type="number"] {
    -moz-appearance: textfield;
}

.sum-input[type="number"]::-webkit-inner-spin-button,
.sum-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

.sum-input:focus {
    border-color: #fff;
}

.result-container {
    display: flex;
    align-items: center;
    position: relative;
}

.result-text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    height: 50px;
    margin: 0;
    padding: 10px;
    font-size: 16px;
    border-radius: 50px;
    background-color: #fff;
    box-shadow: 5px 0 #8dcdff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    font-family: 'Rubik', sans-serif;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    color: #000;
}

.orange-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    height: 50px;
    padding: 10px;
    margin-top: 39px;
    background: #ff7300;
    border: none;
    border-radius: 50px;
    box-shadow: 5px 0 #ffab7b;
    color: #fff;
    font-size: 18px;
    font-family: 'Rubik', sans-serif;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.orange-button:hover {
    background-color: #ffab7b;
    box-shadow: 5px 0 #ff7300;
}

.orange-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-button {
    animation: pulse 1.5s infinite ease-in-out;
}

.hint-text {
    font-family: 'Rubik', sans-serif;
    font-style: italic;
    font-weight: 200;
    margin: 30px 0 0;
    text-align: center;
    font-size: 18px;
    color: #fff;
}

.hint-text p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    height: 50px;
    padding: 10px;
    margin: 0;
    font-size: 18px;
    color: #fff;
    border-radius: 50px;
    background-color: #f4740b;
    box-shadow: 5px 0 #ffab7b;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    font-family: 'Rubik', sans-serif;
    text-align: center;
    box-sizing: border-box;
}

/* Spinner для анимации загрузки */
.spinner {
    width: 60px;
    height: 60px;
    background: #ff7300;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 5px 0 #ffab7b;
    transition: all 0.3s ease;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Зеленая кнопка для успешных операций */
.green-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    height: 50px;
    padding: 10px;
    margin-top: 39px;
    background: #388e3c;
    border: none;
    border-radius: 50px;
    box-shadow: 5px 0 #4caf50;
    color: #fff;
    font-size: 18px;
    font-family: 'Rubik', sans-serif;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.green-button:hover {
    background-color: #4caf50;
    box-shadow: 5px 0 #388e3c;
}

@media (max-width: 600px) {
    .select-row {
        flex-direction: column;
    }
    
    .container {
        padding: 20px;
    }
    
    .logo-img {
        width: 200px;
    }
    
    .custom-select,
    .small-custom-select,
    .sum-input,
    .result-text,
    .info-text,
    .orange-button,
    .green-button {
        min-width: 100%;
        width: 100%;
    }
}
