body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 50px 20px;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

body.light {
    background-color: #fff;
    color: #222;
}

body.dark {
    background-color: #121212;
    color: #ddd;
}

.switch-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.switch-btn {
    background: #007bff;
    border: none;
    color: white;
    padding: 10px 25px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
    transition: background-color 0.3s, box-shadow 0.3s;
    user-select: none;
}

.switch-btn:hover {
    background: #0056b3;
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.6);
}

.ip-box {
    background: inherit;
    padding: 30px 40px;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    font-size: 1.3em;
    max-width: 420px;
    color: inherit;
    border: 1px solid currentColor;
    text-align: left;
}

.line {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.flag {
    width: 36px;
    height: 26px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

button.copy-btn {
    margin: 30px auto 0;
    display: block;
    padding: 12px 30px;
    font-size: 1em;
    background: #ffa500;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.6);
    user-select: none;
    text-align: center;
    max-width: 200px;
    width: 100%;
}

button.copy-btn:hover {
    background: #ff7f00;
    box-shadow: 0 6px 15px rgba(255, 127, 0, 0.8);
}

footer {
    margin-top: 60px;
    font-size: 0.9em;
    color: inherit;
}

a.social {
    color: #0088cc;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
    transition: color 0.3s;
}

a.social:hover {
    color: #005f8a;
    text-decoration: underline;
}

.icon-orange {
    color: #ffa500;
    margin-right: 10px;
    min-width: 20px;
    font-size: 1.5em;
}

.isp-icon {
    font-size: 1.4em;
    vertical-align: middle;
    margin-right: 6px;
}


/* Анимация появления букв заголовка */

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-letter {
    display: inline-block;
    opacity: 0;
    animation-name: fadeUp;
    animation-fill-mode: forwards;
    animation-duration: 0.4s;
    animation-timing-function: ease-out;
}


/* Особый стиль для пробелов */

.title-letter.space {
    display: inline-block;
    width: 0.35em;
    animation: none;
    opacity: 1;
}


/* Адаптивность для мобильных устройств */

@media (max-width: 480px) {
    body {
        padding: 30px 15px;
    }
    .ip-box {
        padding: 20px 25px;
        font-size: 1.1em;
        max-width: 100%;
    }
    .switch-container {
        flex-direction: column;
        gap: 15px;
    }
    .switch-btn {
        width: 100%;
        padding: 12px 0;
        font-size: 1.1em;
    }
    button.copy-btn {
        max-width: 100%;
        font-size: 1.1em;
    }
    .line {
        justify-content: flex-start;
    }
}