* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kalam', cursive;
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.notebook-page {
    width: 100vw;
    height: 100vh;
    background: #fefefe;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.notebook-lines {
    position: absolute;
    top: 0;
    left: 80px;
    width: calc(100% - 160px);
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            transparent,
            transparent 31px,
            #d1d1d1 31px,
            #d1d1d1 32px
        );
    pointer-events: none;
    opacity: 0.3;
}

/* Kırmızı paragraf başlangıcı çizgisi */
.notebook-page::after {
    content: '';
    position: absolute;
    left: 70px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e74c3c;
    z-index: 2;
    opacity: 0.8;
}

.notebook-binding {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 100%;
    background: 
        repeating-linear-gradient(
            to right,
            #c0c0c0 0px,
            #c0c0c0 2px,
            #d8d8d8 2px,
            #d8d8d8 4px
        );
    box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.1);
}

.notebook-binding::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, rgba(192, 192, 192, 0.5), transparent);
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 40px 100px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    height: 100vh;
}

.profile-section {
    text-align: center;
}

.handwritten-title {
    font-family: 'Covered By Your Grace', cursive;
    font-size: 4.5em;
    color: #2c2c2c;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 3px;
    line-height: 1.2;
}

.subtitle {
    font-family: 'Kalam', cursive;
    font-size: 1.8em;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.timer-section {
    text-align: center;
    width: 100%;
    margin: 20px 0;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin: 0;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.time-value {
    font-family: 'Covered By Your Grace', cursive;
    font-size: 5em;
    color: #1a1a1a;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    display: inline-block;
}

.time-label {
    font-family: 'Kalam', cursive;
    font-size: 1.4em;
    color: #666;
    margin-top: 8px;
    text-transform: lowercase;
    letter-spacing: 1px;
}

/* Saniye için özel script (el yazısı) stili */
#seconds {
    font-family: 'Kalam', cursive;
    font-weight: 400;
    font-style: italic;
    position: relative;
    transition: transform 0.2s ease;
}

/* Saniye değiştiğinde hafif animasyon */
#seconds.updated {
    animation: writeEffect 0.3s ease;
}

@keyframes writeEffect {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.last-message-section {
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.last-message-date {
    font-family: 'Kalam', cursive;
    font-size: 1.3em;
    color: #888;
    font-style: italic;
    padding: 10px;
}


/* Kağıt üzerinde hafif gölge efektleri */
.notebook-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 30px 60px;
        gap: 25px;
    }

    .handwritten-title {
        font-size: 3em;
    }

    .subtitle {
        font-size: 1.4em;
    }

    .time-value {
        font-size: 3.5em;
        min-width: 80px;
    }

    .time-label {
        font-size: 1.1em;
    }

    .timer-display {
        gap: 20px;
    }

    .last-message-date {
        font-size: 1.1em;
    }

    .notebook-lines {
        left: 50px;
        width: calc(100% - 100px);
    }

    .notebook-binding {
        width: 40px;
    }

    .notebook-page::after {
        left: 45px;
    }
}

@media (max-height: 700px) {
    .content-wrapper {
        gap: 25px;
        padding: 20px 100px;
    }

    .handwritten-title {
        font-size: 3.5em;
    }

    .time-value {
        font-size: 4em;
    }

    .timer-display {
        gap: 25px;
    }
}

