/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    /* cursor: none;  */
    font-family: 'Poppins', sans-serif;
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 1)),
        url('../img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    padding: 40px;
    margin-top: 200px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.links-section {
    margin-top: 80px;
}

/* Buttons Container */
.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.btn-wrapper {
    position: relative;
    width: 90%;
    /* %90 genişlik */
    max-width: 500px;
    /* Maksimum 500px */
}

/* Big Button */
.big-btn {
    display: block;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee);
    background-size: 300% 300%;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 1;
    cursor: pointer;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.big-btn:hover {
    animation: shake 1s ease-in-out infinite;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

/* Keyframes: Hafif shake (titreme) efekti */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-1px);
    }

    50% {
        transform: translateX(1px);
    }

    75% {
        transform: translateX(-1px);
    }

    100% {
        transform: translateX(0);
    }
}

.hover-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

/* Sol wrapper: resim butonun solundan öne çıkacak */
.btn-wrapper.left .hover-image {
    right: 100%;
    margin-right: 20px;
}

/* Sağ wrapper: resim butonun sağından öne çıkacak */
.btn-wrapper.right .hover-image {
    left: 100%;
    margin-left: 20px;
}

/* Hover: Resmi görünür hale getir */
.btn-wrapper:hover .hover-image {
    opacity: 1;
}

/* Hover Image içindeki resim boyutu */
.hover-image img {
    width: 250px;
    height: auto;
}

/* Normal linkler */
.buttons-container a.big-btn {
    width: 500px;
    border-radius: 50px;
}

/* Footer */
footer {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #ccc;
}

@media (max-width: 600px) {

    body {
        overflow-x: hidden;
        margin-top: 20px;
        padding: 20px;
    }

    .hover-image {
        display: none;
    }

    /* Butonlar ve Wrapper'lar */
    .buttons-container {
        gap: 10px;
    }

    .btn-wrapper,
    .big-btn,
    .buttons-container a.big-btn {
        width: 90%;
        margin: 0 auto;
    }

    .big-btn {
        padding: 15px;
    }

    .links-section {
        margin-top: 40px;
    }

    /* Video bölümündeki Twitch embed için */
    .video-section {
        margin: 30px 0;
    }

    .video-section #twitch-embed {
        width: 100%;
        height: auto;
        /* Ekrana göre otomatik boyutlansın */
    }
}


/* Ripple Efekti */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 2;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.video-section {
    margin: 40px 0;
    text-align: center;
    
}

.video-section #twitch-embed {
    width: 500px;
    height: 280px;
    max-width: 100%;
    border: 0;
    margin: 0 auto;
}

.cursor-trail {
    position: fixed;
    pointer-events: none;
    font-size: 24px;
    /* Yıldız boyutu */
    color: #ffb6c1;
    /* Pastel pembe gibi */
    opacity: 1;
    transform: translate(-50%, -50%);
    animation: fadeOut 1s forwards;
    z-index: 9999;
}

@keyframes fadeOut {
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-switcher ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.language-switcher li {
    margin: 0 8px;
}

/* Bayrak ikonları sabit bir boyutta  */
.language-switcher img {
    width: 40px;
    height: auto;
    border-radius: 30%;
    transition: transform 0.3s ease;
}

.language-switcher a:hover img {
    transform: scale(1.1);
}

/* Responsive Twitch Embed */
.twitch-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 oranı: (9/16 * 100)% */
    height: 0;
    overflow: hidden;
    margin: 0 auto;
}

.twitch-wrapper #twitch-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Modal kapsayıcısı (varsayılan olarak gizli) */
.modal {
    display: none;
    /* Başlangıçta gizli */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Yarı saydam koyu arka plan */
}

/* Modal içeriği */
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* Modal düğmeleri container */
.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Modal butonları: gradient renkleriyle */
.modal-buttons button {
    padding: 10px 20px;
    border: none;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee);
    background-size: 300% 300%;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover durumu */
.modal-buttons button:hover {
    transform: scale(1.05);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
}