@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

html,
body {
    height: 100%;
}

.header,
.footer {
    position: fixed;
    left: 0;
    right: 0;
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #fff;
    z-index: 1000;
}

.header {
    top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

}

.footer {
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);

}

.header a img {
    width: 4.5rem;
}

.footer a img {
    width: 4rem;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
}

.card {
    background: #fff;
    border-radius: 0.625rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 850px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-header {
    position: relative;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

}

.card-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}


.card-content {
    padding: 20px;
}

.card-footer {
    padding: 15px;
    text-align: center;
    background: #f5f5f5;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);

}

.card-footer a {
    text-decoration: none;
    font-size: 20px;
    color: #444;
}

.card-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    color: #333;
}

.part3 {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.part3 select {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #444;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.part3 select:hover {
    border-color: #0077ff;
    background: linear-gradient(135deg, #f9f9f9, #e6f0ff);
    box-shadow: 0 0 10px rgba(0, 119, 255, 0.4);
}

.part3 select:focus {
    border-color: #0077ff;
    box-shadow: 0 0 12px rgba(0, 119, 255, 0.6);
}

.part1 {
    margin-top: 20px;
    text-align: center;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        filter: blur(6px);
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

#word-display {
    font-size: 20px;
    color: #333;
    line-height: 1.5;
    padding: 10px;
    border-radius: 8px;
    background: #fafafa;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 100px;
}

#image {
    width: 100%;
    height: auto;
    display: block;
}

#countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    /* yarı saydam siyah arka plan */
    display: none;
    /* başlangıçta gizli */
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#countdown-number {
    color: #fff;
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: pulse 1s infinite;
}

/* Sayının hafif büyüyüp küçülmesi için */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}






/* MEDIA QUERIES  */


@media screen and (max-width: 480px) {
    .card {
        width: 95%;
        margin: 0 10px;
    }

    .card-title {
        font-size: 16px;
    }

    #word-display {
        font-size: 16px;
        min-height: 80px;
        padding: 8px;
    }

    .part3 select {
        width: 100%;
        font-size: 14px;
        padding: 8px;
    }

    .header a img,
    .footer a img {
        width: 3rem;
    }

    .card-footer a {
        font-size: 16px;
    }
}

@media screen and (min-width: 481px) and (max-width: 767px) {
    .card {
        width: 90%;
        margin: 0 auto;
    }

    .card-title {
        font-size: 18px;
    }

    #word-display {
        font-size: 18px;
        min-height: 90px;
        padding: 10px;
    }

    .part3 select {
        width: 80%;
        font-size: 15px;
        padding: 10px;
    }

    .header a img,
    .footer a img {
        width: 3.5rem;
    }

    .card-footer a {
        font-size: 18px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .card {
        width: 80%;
        margin: 0 auto;
    }

    .card-title {
        font-size: 20px;
    }

    #word-display {
        font-size: 19px;
        min-height: 100px;
        padding: 12px;
    }

    .part3 select {
        width: 60%;
        font-size: 16px;
        padding: 12px;
    }

    .header a img,
    .footer a img {
        width: 4rem;
    }

    .card-footer a {
        font-size: 19px;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .card {
        width: 70%;
        margin: 0 auto;
    }

    .card-title {
        font-size: 22px;
    }

    #word-display {
        font-size: 20px;
        min-height: 120px;
        padding: 14px;
    }

    .part3 select {
        width: 50%;
        font-size: 17px;
        padding: 12px;
    }

    .header a img,
    .footer a img {
        width: 4.5rem;
    }

    .card-footer a {
        font-size: 20px;
    }
}

@media screen and (min-width: 1441px) {
    .card {
        width: 60%;
        margin: 0 auto;
    }

    .card-title {
        font-size: 24px;
    }

    #word-display {
        font-size: 22px;
        min-height: 140px;
        padding: 16px;
    }

    .part3 select {
        width: 40%;
        font-size: 18px;
        padding: 14px;
    }

    .header a img,
    .footer a img {
        width: 5rem;
    }

    .card-footer a {
        font-size: 22px;
    }
}