body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

a {
    color: #007bff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #0056b3;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

a:hover::after {
    visibility: visible;
    transform: scaleX(1);
}

.quote-container {
    max-width: 800px;
    margin: 5px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 5px solid #007bff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}
.quote-header {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}
.quote-content {
    line-height: 1.6;
    color: #333;
}
.code-highlight {
    background-color: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #000;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    color: white;
}

.url-container {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
}

.url-highlight {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-left: 10px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor {
    width: 2px;
    height: 24px;
    background-color: #000;
    display: inline-block;
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

h1, h2, h3 {
    color: #000;
}

nav {
    background-color: #333;
    padding: 10px 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 5px 10px;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

nav ul li a:hover {
    background-color: #555;
    color: #fff;  /* Явно указываем, что цвет текста должен оставаться белым при наведении */
}

nav ul li a:hover::after {
    visibility: visible;
    transform: scaleX(1);
}

.placeholder-img {
    max-width: 100%;
    height: auto;
    border: 2px solid #000;
    margin: 20px 0;
    border-radius: 10px;
}

.cta-button {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #218838;
}

.highlight-box {
    background-color: #ffe6e6;
    border: 2px dashed #ff0000;
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.code-card {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.code-card:hover {
    transform: translateY(-5px);
}

.code-header {
    background-color: #f8f9fa;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.code-label {
    background-color: #28a745;
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.reward {
    color: #28a745;
    font-weight: bold;
}

.code-body {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.code {
    font-size: 1.2em;
    font-weight: bold;
    word-break: break-all;
}

.copy-btn {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: auto;
}

.copy-btn:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    header .container {
        padding: 0;
    }
    .url-container {
        margin: 10px auto;
        max-width: 90%;
    }
    header h1 {
        font-size: 24px;
        margin: 10px 0;
    }
    .container {
        width: 95%;
    }
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 5px 0;
    }
    .url-highlight {
        font-size: 18px;
    }
    .code {
        font-size: 16px;
    }
    .copy-btn {
        position: static;
        display: block;
        margin-top: 10px;
        transform: none;
    }
    .code-grid {
        grid-template-columns: 1fr;
    }
}