/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body */
body {
    background-color: #1a1a1a;
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    position: relative; /* Important for positioning background layers */
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Giveaway page styles */
.giveaway-bg {
    background: #12092b; /* Dark background color */
    min-height: 100vh;
    font-family: 'Gabarito', Arial, sans-serif;
    color: #fff;
    position: relative;
    overflow-x: hidden;
    text-align: center;
    padding-top: 80px;
}

/* Background Elements */
.bg-gradient, .bg-image, .bg-bottom-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensures background is behind content */
}

/* Fixing the background image opacity */
.bg-image img,
.bg-bottom-gradient img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(7px);
    opacity: 0.2; /* Ensure the background image is not blocking other elements */
}

/* Giveaway header styles */
.giveaway-header {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px;
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: 120px;
}

.giveaway-relative {
    position: relative;
}

.giveaway-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    color: #ffd21e;
}

.giveaway-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.giveaway-desc {
    color: #e5e7eb;
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Button styles */
.giveaway-btn {
    display: inline-flex;
    align-items: center;
    background: #ffd21e;
    color: #000;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 999px;
    padding: 16px 38px;
    margin-bottom: 48px;
    box-shadow: 0 8px 32px 0 #ffd21e55;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 2;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
}

.giveaway-btn:hover {
    background: #ffe270;
    color: #000000;
    box-shadow: 0 8px 32px 0 #ffe26f55;
}

.giveaway-btn-icon {
    font-size: 1.3em;
    margin-right: 10px;
}

.giveaway-btn-arrow {
    font-size: 1.3em;
    margin-left: 12px;
}

/* Giveaway Stats */
.giveaway-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.giveaway-stat-main {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.giveaway-stat-label {
    color: #ffd21e;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Images in Four Corners */
.giveaway-img {
    position: absolute; /* აქამდე იყო fixed */
    z-index: 1;
    pointer-events: none;
    user-select: none;
    opacity: 0.92;
    width: 250px;
    height: auto;
    transition: width 0.4s cubic-bezier(.4,2,.6,1), transform 0.4s cubic-bezier(.4,2,.6,1), opacity 0.3s;
}

/* Positioning the images */
.giveaway-img.gloves {
    top: 12%;
    left: 7%;
}

.giveaway-img.awp {
    top: 12%;
    right: 7%;
}

.giveaway-img.karambit {
    bottom: 12rem !important;
    left: 7%;
}

.giveaway-img.bayonet {
    bottom: 12rem !important;
    right: 7%;
}

/* Zoom in-out + tilt animations */
@keyframes zoomTiltLeft {
    0% { width:250px; transform: rotate(-8deg); }
    40% { width:300px; transform: rotate(-18deg) translateY(-10px); }
    60% { width:300px; transform: rotate(-12deg) translateY(10px); }
    100% { width:250px; transform: rotate(-8deg); }
}

@keyframes zoomTiltRight {
    0% { width:300px; transform: rotate(8deg); }
    40% { width:350px; transform: rotate(18deg) translateY(-10px); }
    60% { width:350px; transform: rotate(12deg) translateY(10px); }
    100% { width:300px; transform: rotate(8deg); }
}

@keyframes zoomTiltUp {
    0% { width:250px; transform: rotate(-6deg); }
    40% { width:300px; transform: rotate(-18deg) translateX(-10px); }
    60% { width:300px; transform: rotate(-12deg) translateX(10px); }
    100% { width:250px; transform: rotate(-6deg); }
}

@keyframes zoomTiltDown {
    0% { width:300px; transform: rotate(6deg); }
    40% { width:350px; transform: rotate(18deg) translateX(10px); }
    60% { width:350px; transform: rotate(12deg) translateX(-10px); }
    100% { width:300px; transform: rotate(6deg); }
}

/* Image Animations */
.animate-zoom.tilt-left {
    animation: zoomTiltLeft 3.5s ease-in-out infinite;
}

.animate-zoom.tilt-right {
    animation: zoomTiltRight 3.5s ease-in-out infinite;
}

.animate-zoom.tilt-up {
    animation: zoomTiltUp 3.5s ease-in-out infinite;
}

.animate-zoom.tilt-down {
    animation: zoomTiltDown 3.5s ease-in-out infinite;
}

/* Giveaway main content always centered */
main, 
.giveaway-header, 
.giveaway-title, 
.giveaway-subtitle, 
.giveaway-desc, 
.giveaway-stats {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}

/* Giveaway stats children centered */
.giveaway-stats > div {
    display: inline-block;
    text-align: center;
    float: none;
}

/* Responsive: remove any float or left alignment on small screens */
@media (max-width: 900px) {
    main, 
    .giveaway-header, 
    .giveaway-title, 
    .giveaway-subtitle, 
    .giveaway-desc, 
    .giveaway-stats {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
    }
    .giveaway-stats > div {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .giveaway-title { font-size: 2.5rem; }
    .giveaway-img { width: 120px; }
    .giveaway-img.awp,
    .giveaway-img.bayonet { width: 150px; }
    .giveaway-img.gloves { top: 8%; left: 4%; }
    .giveaway-img.awp { top: 8%; right: 4%; }
    .giveaway-img.karambit { bottom: 8%; left: 4%; }
    .giveaway-img.bayonet { bottom: 8%; right: 4%; }
}

@media (max-width: 600px) {
    .giveaway-title { font-size: 2rem; }
    .giveaway-img { opacity: 0.6; }
}

/* Tailwind utility classes for quick adjustments */
.text-center { text-align: center !important; }
.text-white { color: #fff !important; }
