:root {
    --primary: #0173b9;
    --secondary: #FC8181;
    --accent: #4FD1C5;
    --background: #FFFFFF;
    --dark: #1A202C;
    --light: #FFFFFF;
    --gray: #CBD5E0;
    --header-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--dark);
    line-height: 1.6;
    overflow-scrolling: touch;
    -webkit-overflow-scrolling: touch;
}

@font-face {
    font-family: 'DM Sans';
    src: url('/millipiyango/fonts/dm-sans/DMSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'DM Sans';
    src: url('/millipiyango/fonts/dm-sans/DMSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'DM Sans';
    src: url('/millipiyango/fonts/dm-sans/DMSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--header-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: var(--shadow);
    padding: 0.1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    margin-top: 90px;
}

/* Responsive Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    padding: 0.2rem 0;
    height: var(--header-height);
}
/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        flex-wrap: nowrap;
    }
    
    .logo {
        max-width: 180px;
    }
    
.logo img {
    max-width: 150px;
    transition: all 0.3s ease-in-out;
}
}

@media (max-width: 480px) {
    .logo {
        max-width: 150px;
    }
    
    .logo img {
        max-width: 130px;
    }
    
    header {
        padding: 0.1rem 0;
    }
}

@media (max-width: 360px) {
    .logo {
        max-width: 120px;
    }
    
    .logo img {
        max-width: 110px;
    }
}
@media (max-width: 768px) {
.main-header {
    padding-left: 10px;
    padding-right: 10px;
    background-color: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    }

}
/* Header Actions Button */
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--light);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

/* Responsive adjustments for the button */
@media (max-width: 768px) {
    .button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 8rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.section-header p {
    color: var(--gray);
}

/* Games Section */
.games {
    padding: 1rem 0 5rem;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}


/* Game Card */
.game-card {
    background-color: var(--light);
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    will-change: transform;
    font-weight: 600;
    color: #0173b9;
    font-size: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (min-width: 768px) {
    .game-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 20px -5px var(--primary);
    }
}

.game-img {
    width: 100%;
    height: auto; 
    object-position: center;
    border: solid 2px #0173b9;
    border-radius: 25px;
    overflow: hidden;
}

.game-img img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .game-card:hover {
        transform: none;
    }
}

.game-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
    position: relative;
}

.game-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #0173b9;
    font-weight: 700;
    line-height: 1.2;
}

.game-info p {
    color: var(--dark);
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--light) !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: none;
    margin-top: auto;
    text-align: center;
    font-size: 1rem;
    white-space: nowrap;
}

/* Footer */
.footer-arka-plan {
    background: linear-gradient(90deg, #005c95 0, #0d9bf2 100%);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
    color: #fff;
    min-height: 300px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.footer-bottom img {
    height: 60px;
    margin-bottom: 1rem;
}

.copyright-footer {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding: 20px 0;
    margin: 20px auto 0;
    width: 90%;
    max-width: 1000px;
}

.copyright-footer p {
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.5;
    max-width: 800px;
    padding: 0 20px;
}

/*.talih-kusu-ticker-ustu {
    position: absolute;
    bottom: 15px;
    right: 30px;
    z-index: 1;
    width: 230px;
    height: auto;
    pointer-events: none;
}

.talih-kusu-ticker-ustu-img {
    width: 100px;
    height: auto;
    animation: birdWiggle 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .talih-kusu-ticker-ustu {
        position: absolute;
        bottom: 20px;
        right: -135px;
        z-index: 10;
        pointer-events: none;
    }
    .talih-kusu-ticker-ustu-img {
        width: 100px;
        height: auto;
        display: block;
        animation: birdWiggle 3s ease-in-out infinite;
    }
}

.talih-kusu-footer-ustu {
    position: absolute;
    top: -40px;
    left: 30px;
    z-index: 1;
    width: 230px;
    height: auto;
    pointer-events: none;
}

.talih-kusu-footer-ustu-img {
    width: 100px;
    height: auto;
    animation: birdWiggle 3s ease-in-out infinite;
}

@keyframes birdWiggle {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-50%) rotate(5deg); }
}

@media (max-width: 768px) {
    .talih-kusu-footer-ustu {
        position: absolute;
        top: -40px;
        left: -15px;
        z-index: 1;
    }
}
*/
.has-background-shapes {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
}

.background-shapes {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(20px);
    will-change: transform;
}

.bg-shape-1 {
    top: -100px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: var(--primary, #0173b9);
}

.bg-shape-2 {
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: var(--secondary);
}

.bg-shape-3 {
    top: 40%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: var(--accent);
}

.ticker-section {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 50;
}

.ticker-container {
    overflow: hidden;
    background: linear-gradient(to right, #003087, #005bbb);
    height: 80px;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    will-change: transform;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    margin: 0 16px;
}

.ticker-item img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}

.ticker-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ticker-text .title {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.ticker-text .ticker-link {
    font-size: 18px;
    font-weight: 700;
    color: #facc15;
}

.ticker-animated {
    animation: scroll linear infinite;
}

@keyframes scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.responsible-container {
    display: flex;
    height: 336.35px;
    background-color: #fff;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: auto;
    padding-right: 20px;
    padding-left: 20px;
    margin-top: 40px;
}
.responsible-image {
    text-align: center;
    margin: auto;
    margin-right: 30px;
}
.right-responsible {
    flex: 100%;
    text-align: start;
    margin: auto;
}
.link-responsible {
    width: 191px;
    height: 84px;
    margin-right: 8px;
    position: relative;
}
.link-responsible img {
    width: 191px;
    height: 84px;
    position: absolute;
    border-radius: 10px;
}
.links-responsible {
    display: flex;
}
.title-responsible p {
    color: #005c95;
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: 0.45px;
    text-align: left;
    width: 533px;
}
.description-responsible p {
    color: #222;
    font-size: 13px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 0;
    text-align: left;
    width: auto;
}
.description-responsible {
    margin-top: 30px;
    margin-bottom: 30px;
}
.img {
    width: 309px;
    height: 281px;
}
.link-title {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: 0;
    margin-top: 14px;
    margin-left: 14px;
    position: relative;
    z-index: 1;
}
.link-description {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 17px;
    letter-spacing: .26233595609664917px;
    margin-top: 14px;
    margin-left: 14px;
    position: relative;
    z-index: 1;
}
.link-responsible a {
    text-decoration: underline;
    color: #fff;
}

@media (max-width: 920px) {
.responsible-container {
    display: flex;
    height: auto;
    background-color: white;
    flex-wrap: wrap;
    padding: 20px;
    width: auto;
    overflow: hidden;
    position: relative;
}
.links-responsible {
    display: flex;
    transition: transform 0.3s ease-in-out;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;           
}
.responsible-image {
    margin-right: 0;
    margin: 0 auto;
}

.title-responsible p {
    color: #005c95;
    letter-spacing: 0.45px;
    width: auto;
    font-size: 1.5rem;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: auto;
    margin-top: 20px;
}
.description-responsible p {
    color: var(--dark);
    width: auto;
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}
}

.sadece-masaustu {
    display: block; 
  }
  
  @media (max-width: 768px) {
    .sadece-masaustu {
      display: none !important;
    }
  }


  @media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .games-grid > * {
        margin: 0;
        padding: 5px;
    }
}

.carousel {
    background: #EEE;
    margin-top: 50px;
    margin-bottom: 50px;
}

.carousel-cell {
    width: 100%;
}

.carousel img {
    display: block;
    width: 100%;
    object-fit: cover;
}
