* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

:root {
    --header-height: 120px;
    --window-width: 90%; 
    --window-max-width: 1400px;
    --window-height: 80vh;
    --header-bg: rgba(15, 35, 65, 0.85); 
    --window-bg: rgba(246, 250, 255, 0.37);
    --content-padding: 2rem;
    --window-top-margin: 50px;
}

body {
    min-height: 100vh;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
    padding: 0;
    justify-content: flex-start;
    align-items: center;
    padding-top: var(--window-top-margin);
    overflow: auto !important;
    height: auto !important;
    user-select: none;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-decoration: none !important;
}
h3{
    color: rgba(58, 0, 231, 0.603);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    position: relative;
    text-decoration: none !important;
    border-bottom: none !important;
    background-image: none !important;
    display: inline-block;
    transition: all 0.3s ease;
}
h3:hover{
    transform: scale(1.05);
    color:rgb(58, 0, 231);
    text-decoration: none !important;
}
h3 a, a h3 {
    text-decoration: none !important;
    border-bottom: none !important;
}
html, body {
    overflow: hidden;
    height: auto !important;
    height: 100%;
    margin: 0;
    padding: 0;
}
.window-container {
    position: relative;
    width: var(--window-width); 
    max-width: var(--window-max-width);
    height: var(--window-height);
    background: var(--window-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 100;
    margin: 0 auto;
    overflow: visible;
}

.content-container {
    flex: 1;
    overflow-y: auto; 
    overflow-x: hidden;
    min-height: 0;
    width: 100%; 
    padding: 20px; 
    display: flex;
    flex-direction: column;
    
}
#content-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.content-wrapper {
    
    flex: 1;
    min-height: min-content;
    display: flex;
    flex-direction: column;
    overflow: visible;
}
.text-content {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.content-container::-webkit-scrollbar {
    width: 10px;
}

.main-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 1rem;
    position: relative;
    height: var(--header-height);
}

/*Logo*/
.nav-brand {
    position: center;
    left: auto;
    top: auto;
    transform: none;
    z-index: 1000;
    padding: 0;
    order: 2;
    flex: 0 1 auto;
    order: 2;
}

.nav-brand img {
    max-width: 100px;
    max-height: 100px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-brand:hover img {
    transform: scale(1.05);
}
.nav-item {
    position: relative;
}
.nav-link {
    white-space: nowrap;
}
.sber-donate-btn {
    background: linear-gradient(135deg, #2321a0d0 0%, #4745cfd0 100%);
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
}

.sber-donate-btn:hover {
    background: linear-gradient(135deg, #1a8030 0%, #156828 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.dropdown {
    display: none;
    position: absolute;
    
    min-width: 200px;
   
    z-index: 1000;
    border-radius: 4px;
    padding: 10px 0;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: #1bf0f0b0;
}

.category-navigation {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: center;
}
.category-navigation a {
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 30px;
    background: rgba(15, 35, 65, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.category-navigation a:hover {
    background: rgba(74, 111, 165, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.category-navigation.left-categories{
    order: 1;
    justify-content: flex-end;
    margin-right:2rem;
    flex:1;
}
.category-navigation.right-categories{
    order: 3;
    justify-content: flex-start;
    margin-left: 2rem;
    flex:1;
}

#canvas-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}
#canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
}


/* Social Links */
.header-social-links {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 15px;
}

.header-social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
    background: rgba(10, 25, 47, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-social-links a:hover {
    transform: translateY(-3px);
    background: rgba(10, 25, 47, 0.8);
}

/* Donation Pages */
.success-message, .error-message {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.success-actions, .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.success-actions a, .actions a {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.error-details {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.retry-options {
    text-align: left;
    background: rgba(241, 196, 15, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #f1c40f;
}

.retry-options ul {
    padding-left: 1.5rem;
    margin: 1rem 0 0;
}

.retry-options li {
    margin-bottom: 0.5rem;
}

/*forms*/
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0f2341;
}
.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .main-nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
        height: auto;
        flex-wrap: wrap;
    }

    .category-navigation {
        width: 100%;
        justify-content: center !important;
        margin: 10px 0 !important;
        flex-wrap: wrap;
        row-gap: 8px;
	position: relative;
	z-index: 1001;
	
    }


    .category-navigation.left-categories,
    .category-navigation.right-categories {
        order: 4;
        justify-content: center;
        margin: 0 !important;
    }

    .nav-brand {
        order: 2;
        margin: 10px auto;
    }

    .category-navigation a {
        padding: 0.6rem 1.2rem;
        margin: 0 4px 6px;
        font-size: 0.9rem;
    }

    .nav-brand img {
        max-width: 80px;
        max-height: 80px;
    }

    .dropdown {
        display: none;
        position: relative;
        width: 100%;
        box-shadow: none;
    .category-navigation.left-categories,
    .category-navigation.right-categories {
        order: 4;
        justify-content: center;
        margin: 0 !important;
    }

    .dropdown.active {
        display: block;
    }

    .sber-donate-container {
	order: 5;
	width: 100%;
	text-align: center;
	margin: 15px 0;
   }
}

@media (max-width: 768px) {
    :root {
        --window-top-margin: 30px;
        --header-height: 100px;
    }

    .header-social-links {
        flex-direction: column;
        top: 15px;
        right: 10px;
        gap: 10px;
    }

    .category-navigation a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin: 0 3px 5px;
    }
}

@media (max-width: 576px) {
    :root {
        --window-width: 95%;
        --window-top-margin: 20px;
    }

    /* Horizontal scrolling navigation */
    .category-navigation {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        scrollbar-width: thin;
        -ms-overflow-style: none;
    }
    
    .category-navigation::-webkit-scrollbar {
        display: none;
    }

    .category-navigation a {
        flex-shrink: 0;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin: 0 4px;
    }

    .window-container {
        height: 85vh;
    }

    .nav-brand img {
        max-width: 70px;
        max-height: 70px;
    }

    h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .category-navigation a {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .header-social-links {
        top: 10px;
        right: 5px;
    }
    
    .header-social-links a {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}
