﻿

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #141418;
    color: #eee;
    user-select: none;
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 270px);
    gap: 10px;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    align-items: start; /* <-- Добавлено */
}

.project-card {
    background-color: #282c34;
    background: linear-gradient(-35deg, #000000 30%, rgb(7, 109, 234, 0.5) 80%);
    border: 1px solid #ffffff22;
    box-shadow: 0 7px 20px 5px #00000088;
    border-radius: 0.7rem;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    overflow: hidden;
    transition: 0.5s all;
    width: 250px;
    margin: 20px 20px 20px 20px;
    margin-bottom: 10px;
    height: auto;
    min-height: 270px; /* <-- Добавлено */
}

    .project-card:hover {
        /*background-color: #383c47;*/ /* Светлее основной цвет */
        box-shadow: 0 7px 50px 10px #000000aa;
        transform: scale(1.015);
        filter: brightness(1.4);
    }

    .project-card img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        margin: 15px auto 0 auto;
        display: block;
        object-fit: cover;
        background-color: #000;
    }

.card-content {
    padding: 8px 12px 0 12px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
    text-align: center;
    word-break: break-word;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

.card-author,
.card-contest {
    font-size: 0.85rem;
    color: rgb(135, 155, 176);
    margin-bottom: 0.4rem;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.15);
}

.action-bar {
    display: flex;
    gap: 6px;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .action-bar .btn,
    .action-bar .btn-details {
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 4px 8px;
        text-overflow: ellipsis;
        overflow: hidden;
        border-radius: 6px;
        text-decoration: none;
    }

.btn {
    background: rgba(80, 80, 120, 0.2);
    color: #ffffff;
    opacity: 0.85;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

.btn-details {
    background-color: #020254 ;
    color: #fff;
    font-weight: bold;
    transition: 0.3s;
}

    .btn-details:hover {
        background-color: #2d0dad;
        color: #fff;
        box-shadow: 0 0 10px rgba(67, 62, 209, 0.4);
    }

.bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

    .bg h1 {
        font-size: 20rem;
        filter: opacity(0.5);
    }

.card-author span, .card-contest span {
    color: rgb(255, 255, 255);
}


@media (max-width: 600px) {
    .project-grid {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }
}

.card-title,
.card-author span,
.card-contest span {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}





.search-wrapper {
    position: sticky;
    top: 60px; /* ниже заголовка */
    background-color: none;
    z-index: 100;
    padding: 10px 0;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

    .search-wrapper label {
        font-weight: bold;
        font-size: 16px;
        color: white;
    }

    .search-wrapper input.search {
        padding: 6px 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        width: 300px;
        font-size: 14px;
        background-color: #333;
        color: white;
    }


.glowing-text {
    font-size: 36px;
    color: #ffffff;
    position: sticky;
    top: 0;
    background-color: none;
    z-index: 100;
    padding: 10px 0;
    margin: 0;
    backdrop-filter: blur(5px);
}

.glowing-letter {
    display: inline-block;
    opacity: 0;
    animation: glowing 2s infinite, fadeIn 0.5s forwards;
}

    .glowing-letter:nth-child(1) {
        animation-delay: 0s, 0.1s;
    }

    .glowing-letter:nth-child(2) {
        animation-delay: 0.1s, 0.2s;
    }

    .glowing-letter:nth-child(3) {
        animation-delay: 0.2s, 0.3s;
    }

    .glowing-letter:nth-child(4) {
        animation-delay: 0.3s, 0.4s;
    }

    .glowing-letter:nth-child(5) {
        animation-delay: 0.4s, 0.5s;
    }

    .glowing-letter:nth-child(6) {
        animation-delay: 0.5s, 0.6s;
    }

    .glowing-letter:nth-child(7) {
        animation-delay: 0.6s, 0.7s;
    }

    .glowing-letter:nth-child(8) {
        animation-delay: 0.7s, 0.8s;
    }

    .glowing-letter:nth-child(9) {
        animation-delay: 0.8s, 0.9s;
    }

    .glowing-letter:nth-child(10) {
        animation-delay: 0.9s, 1s;
    }

    .glowing-letter:nth-child(11) {
        animation-delay: 1s, 1.1s;
    }

    .glowing-letter:nth-child(12) {
        animation-delay: 1.1s, 1.2s;
    }

@keyframes glowing {
    0% {
        text-shadow: 0 0 3px rgba(7, 109, 234, 1), 0 0 6px rgba(7, 109, 234, 1), 0 0 8px rgba(7, 109, 234, 1), 0 0 10px rgba(7, 109, 234, 1);
        opacity: 0;
    }

    50% {
        text-shadow: 0 0 6px rgba(7, 109, 234, 1), 0 0 12px rgba(7, 109, 234, 1), 0 0 16px rgba(7, 109, 234, 1), 0 0 20px rgba(7, 109, 234, 1);
        opacity: 1;
    }

    100% {
        text-shadow: 0 0 3px rgba(7, 109, 234, 1), 0 0 6px rgba(7, 109, 234, 1), 0 0 8px rgba(7, 109, 234, 1), 0 0 10px rgba(7, 109, 234, 1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}



#stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    color: white;
    opacity: 0;
    animation: twinkle 2s ease-out forwards;
    filter: drop-shadow(0 0 6px white);
}

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}


