@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@200;300;400;500;600;700&display=swap');

/* Genel Stil Ayarları */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    font-family: 'Josefin Sans', sans-serif;
    color: white;
}

/* Mod 1 (AMAY ve TANRIÖVER Dikey Hizalama) */
.mode-1 {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mode-1 .center-text {
    font-size: 108pt;
    font-weight: 1000;
    display: flex;
    justify-content: center;
    letter-spacing: 15px;
    position: relative;
    z-index: 3;
}

.mode-1 .center-text span {
    animation: flicker 3s forwards;
    opacity: 0;
}

.mode-1 .center-text span:nth-child(1) { animation-delay: 2s; }
.mode-1 .center-text span:nth-child(2) { animation-delay: 1s; }
.mode-1 .center-text span:nth-child(3) { animation-delay: 0.5s; }
.mode-1 .center-text span:nth-child(4) { animation-delay: 1.5s; }

.mode-1 .sub-text {
    font-size: 40pt;
    font-weight: 200;
    letter-spacing: 21px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    animation-delay: 3s;
    z-index: 2;
    opacity: 0;
    animation: fadeInSmallFlicker 0.5s ease-in-out forwards, smallFlicker 1s forwards;
}

.mode-1 .sub-text span {
    opacity: 0;
    animation: fadeInSmallFlicker 0.5s ease-in-out forwards, smallFlicker 1s forwards;
    animation-delay: calc(3.5s + var(--delay));
}

.mode-1 .sub-text span:nth-child(1) { --delay: 0.1s; }
.mode-1 .sub-text span:nth-child(2) { --delay: 0.2s; }
.mode-1 .sub-text span:nth-child(3) { --delay: 0.3s; }
.mode-1 .sub-text span:nth-child(4) { --delay: 0.4s; }
.mode-1 .sub-text span:nth-child(5) { --delay: 0.5s; }
.mode-1 .sub-text span:nth-child(6) { --delay: 0.6s; }
.mode-1 .sub-text span:nth-child(7) { --delay: 0.7s; }
.mode-1 .sub-text span:nth-child(8) { --delay: 0.8s; }
.mode-1 .sub-text span:nth-child(9) { --delay: 0.9s; }

/* Mod 2 (B♥️A Yanyana) */
.mode-2 {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mode-2 .center-textb,
.mode-2 .center-textk,
.mode-2 .center-texta {
    font-size: 108pt;
    font-weight: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0;
    position: relative;
    z-index: 3;
}

.mode-2 .center-textk {
    font-size: 70pt;
    transform: translateY(-15px);
}

.mode-2 .center-textb span {
    animation: flickerb 3s forwards;
    opacity: 0;
    margin: 0 10px;
}

.mode-2 .center-texta span {
    animation: flicker 3s forwards;
    opacity: 0;
    margin: 0 10px;
}

.mode-2 .center-textk span {
    animation: flickerk 3s forwards;
    opacity: 0;
    margin: 0 10px;
}


.mode-2 .center-textb span:nth-child(1) { animation-delay: 1s; }
.mode-2 .center-textk span:nth-child(1) { animation-delay: 1.5s; }
.mode-2 .center-texta span:nth-child(1) { animation-delay: 0.5s; }

/* Ortak Animasyonlar */
@keyframes flicker {
    0% {
        opacity: 0;
        text-shadow: none;
    }
    50% {
        opacity: 1;
        color: #f2f2f2;
        text-shadow: 0 0 5px #f2f2f2, 0 0 10px #f2f2f2, 0 0 15px #00bfff, 0 0 20px #00bfff, 0 0 25px #00bfff, 0 0 30px #00bfff, 0 0 35px #00bfff;
    }
    100% {
        opacity: 1;
        color: white;
        text-shadow: none;
    }
}

@keyframes flickerb {
    0% {
        opacity: 0;
        text-shadow: none;
    }
    50% {
        opacity: 1;
        color: #f2f2f2;
        text-shadow: 0 0 5px #f2f2f2, 0 0 10px #f2f2f2, 0 0 15px #ff66cc, 0 0 20px #ff66cc, 0 0 25px #ff66cc, 0 0 30px #ff66cc, 0 0 35px #ff66cc;
    }
    100% {
        opacity: 1;
        color: white;
        text-shadow: none;
    }
}

@keyframes flickerk {
    0% {
        opacity: 0;
        text-shadow: none;
    }
    50% {
        opacity: 1;
        text-shadow: none;
    }
    100% {
        opacity: 1;
        color: white;
        text-shadow: none;
    }
}

@keyframes fadeInSmallFlicker {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes smallFlicker {
    0% { text-shadow: none; }
    50% { text-shadow: 0 0 10px #00bfff, 0 0 20px #00bfff, 0 0 30px #00bfff; }
    100% { text-shadow: none; }
}

@keyframes fadeInFooter {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Footer ve İkon Linkler */
.footer {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 5; /* Z-index artırıldı */
    opacity: 0; /* Başlangıçta görünmez */
    animation: fadeInFooter 1s ease-in-out forwards; /* Fade-in animasyonu */
    animation-delay: 3s;
}


.icon-link, .icon-link2 {
    color: white;
    font-size: 14pt;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.5s ease-in-out;
}

.icon-link i, .icon-link2 i {
    transition: margin-right 0.5s ease-in-out;
    max-font-size: 20px;
}

.info-box, .info-box2 {
    position: fixed;
    bottom: 60px;
    left: 50%;
    font-weight: 300;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 191, 255, 0.1);
    border-radius: 10px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    white-space: nowrap;
    z-index: 1000;
}

.info-box {
    padding: 10px 20px;
    border: 2px solid #00bfff;
    box-shadow: 0 0 20px #00bfff;
}

.info-box2 {
    padding: 12px 20px 8px 20px;
    border: 2px solid #23cb38;
    box-shadow: 0 0 20px #23cb38;
}

.info-box a, .info-box2 a {
    color: white;
    text-decoration: none;
}

.icon-link:hover .info-box a,
.icon-link:focus .info-box a,
.icon-link2:hover .info-box2 a,
.icon-link2:focus .info-box2 a {
    pointer-events: auto;
}

.icon-link a, .icon-link2 a {
    pointer-events: none;
}

.icon-link:hover .info-box,
.icon-link:focus .info-box,
.icon-link2:hover .info-box2,
.icon-link2:focus .info-box2 {
    opacity: 1;
    visibility: visible;
}

/* Mobil Uyumluluk */
@media screen and (max-width: 768px) {
    .mode-1 .center-text {
        font-size: 20vw;
        letter-spacing: 2vw;
    }

    .mode-1 .sub-text {
        font-size: 7vw;
        letter-spacing: 3vw;
        justify-content: center;
    }

    .mode-2 .center-textb,
    .mode-2 .center-texta {
        font-size: 25vw;
    }

    .mode-2 .center-textk {
        font-size: 15vw;
        transform: translateY(-15px);
    }

    .icon-link, .icon-link2 {
        font-size: 12pt;
    }

    /* Mobilde info-box'ların varsayılan olarak gizli kalması */
    .icon-link .info-box, .icon-link2 .info-box2 {
        opacity: 0;
        visibility: hidden;
    }

    /* Mobilde tıklanıldığında açılacak şekilde ayarlanması */
    .icon-link.active .info-box, .icon-link2.active .info-box2 {
        opacity: 1;
        visibility: visible;
    }
}

.rose {
    position: absolute;
    top: -20px;
    font-size: 24px;
    z-index: 1000;
    animation: fall linear infinite;
    pointer-events: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Ekranın sağ üst yarısındaki dokunma alanı */
.click-area-top-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    z-index: 2;
}

/* Ekranın sol alt yarısındaki dokunma alanı */
.click-area-bottom-left {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 50%;
    z-index: 2;
}

/* Fade-out animasyonu */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* AMAY ve Tanrıöver yazıları ile footer fade-out */
.fade-out {
    animation: fadeOut 0.5s forwards;
}