* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none; 
}

body, html {
    height: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #0e0e0e;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    margin-top: -20px; 
}

.logo img {
    width: clamp(100px, 25vw, 199px);
    margin-top: -139px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    text-shadow: 0px 0px 10px white; 
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: white; 
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.container {
    background-image: url('../img/4060492.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 999;
    padding: 20px;
}

.overlay-text {
    text-align: center;
    color: white;
    margin-left: 0;
    margin-top: 13px;
    position: relative;
    width: 100%;
    padding: 0 10px;
}

.new-text {
    font-size: clamp(2rem, 15vw, 7rem);
    opacity: 0.09; 
    letter-spacing: clamp(0.5rem, 3vw, 1.5rem);
    word-break: break-word;
}

.enden-text {
    font-size: clamp(1.2rem, 7vw, 2.5rem);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.904);
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: clamp(0.2rem, 2vw, 0.6rem);
    text-shadow: 0px 0px 20px white;
    white-space: nowrap;
}

.circle-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 20px;
    padding: 10px;
}

.circle-image img {
    border-radius: 50%;
    width: clamp(90px, 20vw, 85px);
    height: clamp(90px, 20vw, 85px);
    object-fit: cover;
}

.circle-image p {
    margin-top: 8px;
    color: white;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    text-align: center;
}

.avatar-container {
    background-color: #0e0e0e; 
    padding: clamp(15px, 3vw, 20px);
    z-index: 998;
    line-height: 1.8;
    color: #ddd;
    flex: 1;
    width: 100%;
}

.avatar-right {
    flex: 1;
    text-align: right;
    margin-top: 10px;
    padding: 0 15px;
    font-size: clamp(0.8em, 2vw, 0.9em);
    line-height: 1.8;
    color: #ddd;
}

.avatar-title {
    text-align: center; 
    margin-bottom: 20px; 
    color: white;
    text-transform: uppercase;
    letter-spacing: clamp(0.1rem, 1vw, 0.3rem);
    text-shadow: 0px 0px 20px white;
    font-size: clamp(1rem, 3vw, 1.5rem);
}

.avatar-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.avatar-item {
    text-align: center; 
    position: relative; 
}

a {
    text-decoration: none; 
    color: inherit; 
}

a:hover {
    text-decoration: underline; 
}

.social-buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.social-buttons button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin: 5px;
    transition: transform 0.2s, box-shadow 0.3s;
}

.social-buttons button:hover {
    transform: scale(1.1); 
}

.social-buttons img {
    width: clamp(25px, 5vw, 30px);
    height: clamp(25px, 5vw, 30px);
}

.description {
    margin-top: 10px;
    padding: 0 15px;
    text-align: center;
    font-size: clamp(0.8em, 2vw, 0.9em);
    line-height: 1.8;
    color: #ddd;
}

.badge {
    background-color: #3333338f;
    color: white;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: clamp(0.65em, 1.5vw, 0.8em);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    text-align: center;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.lang-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 10px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    flex-wrap: wrap;
}

.lang-btn {
    background-color: #fff;
    color: #333;
    border: 2px solid #ccc;
    border-radius: 25px;
    padding: clamp(8px, 2vw, 10px) clamp(15px, 3vw, 20px);
    margin: 5px;
    font-size: clamp(12px, 2vw, 14px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.story-container {
    padding: clamp(15px, 3vw, 20px);
    width: 100%;
}

.story-title {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    text-align: center;
    margin-bottom: 30px;
}

.stories {
    display: flex;
    justify-content: center; 
    gap: clamp(10px, 2vw, 15px);
    flex-wrap: wrap;
    width: 100%;
}

.story {
    position: relative;
    width: clamp(100px, 20vw, 120px);
    height: clamp(160px, 33vw, 200px);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.media-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(30px, 7vw, 40px);
    height: clamp(30px, 7vw, 40px);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.media-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    border-radius: 50%;
}

.story:hover {
    transform: scale(1.05);
}

.story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-footer {
    position: absolute;
    bottom: 5px;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: clamp(10px, 2vw, 12px);
    padding: 3px 0;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.438);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(9px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 9999;
    padding: 20px;
}

.fullscreen.active {
    visibility: visible;
    opacity: 1;
}

.fullscreen img, .fullscreen video {
    max-width: 95%;
    max-height: 95%;
    border-radius: 10px;
    width: auto;
    height: auto;
}

.close-btn {
    position: absolute;
    top: clamp(5px, 2vw, 7px);
    right: clamp(15px, 5vw, 35px);
    font-size: clamp(20px, 4vw, 24px);
    color: white;
    padding: 10px;
    z-index: 10000;
    cursor: pointer;
}

#warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    text-align: center;
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.8);
    padding: clamp(20px, 4vw, 30px);
    border-radius: 15px;
    color: white;
    display: none; 
    max-width: 90%;
    width: 400px;
}

#warning h2 {
    margin: 0;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

#warning p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #ccc;
}

#warning .loading-gif {
    width: clamp(60px, 15vw, 80px);
    height: auto;
    margin-top: 15px;
    animation: shake 1s ease-in-out infinite;
}

@keyframes shake {
    0% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.background-container {
    position: relative;
    width: 100%;
}

.blur {
    filter: blur(5px);
    pointer-events: none;
    z-index: 1;
}

body.no-scroll {
    overflow: hidden;
}

.download-section {
    padding: clamp(20px, 4vw, 40px);
    max-width: 800px;
    margin: 20px auto;
}

.download-title {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    text-align: center;
    margin-bottom: 30px;
    color: white;
    text-transform: uppercase;
    letter-spacing: clamp(0.1rem, 1vw, 0.3rem);
}

.download-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: clamp(15px, 3vw, 20px);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.download-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.download-item h3 {
    color: white;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 15px;
    font-weight: normal;
}

.code-container {
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    padding-right: 80px;
    margin-top: 10px;
}

.code-text {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Courier New', monospace;
    font-size: clamp(11px, 2vw, 12px);
    word-break: break-all;
    line-height: 1.6;
    user-select: text;
    -webkit-user-select: text;
}

.copy-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: clamp(5px, 1vw, 8px) clamp(10px, 2vw, 15px);
    border-radius: 8px;
    cursor: pointer;
    font-size: clamp(10px, 2vw, 12px);
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.copy-btn.copied {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.footer {
    text-align: center;
    padding: 20px;
    color: #ddd;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 15px;
    }

    .avatar-container,
    .avatar-right {
        text-align: center;
    }

    .overlay-text {
        margin-left: 0;
    }

    .circle-image {
        position: relative;
        bottom: 0;
        margin-top: 20px;
    }

    .stories {
        gap: 10px;
    }

    .story {
        width: clamp(90px, 25vw, 110px);
        height: clamp(140px, 40vw, 180px);
    }

    .lang-btn-container {
        top: 10px;
        right: 5px;
    }
}

@media (max-width: 480px) {
    .new-text {
        letter-spacing: 0.3rem;
    }

    .enden-text {
        letter-spacing: 0.2rem;
        font-size: clamp(1rem, 8vw, 1.5rem);
    }

    .badges {
        gap: 5px;
    }

    .badge {
        font-size: 0.65em;
        padding: 3px 8px;
        min-width: 60px;
    }

    .social-buttons {
        gap: 5px;
    }

    .stories {
        gap: 8px;
    }

    .story {
        width: clamp(80px, 28vw, 100px);
        height: clamp(130px, 45vw, 160px);
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1920px;
        margin: 0 auto;
    }

    .avatar-container {
        max-width: 1920px;
        margin: 0 auto;
    }
}