/* styles2.css */

@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

body {
    margin: 0;
    padding: 40px 20px;
    background: #d8d1c5;
    font-family: 'Patrick Hand', cursive;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Notebook paper */
section {
    width: 90%;
    max-width: 900px;
    background:
    repeating-linear-gradient(
        to bottom,
        #fffef7 0px,
        #fffef7 32px,
        #b7d7ff 33px
    );
    padding: 50px 60px;
    border-radius: 6px;
    box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(0,0,0,0.05);
    position: relative;
    line-height: 33px;
    font-size: 1.3rem;
    overflow: hidden;
}

/* Red margin line */
section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 55px;
    width: 2px;
    height: 100%;
    background: rgba(255, 0, 0, 0.35);
}

/* Header */
header {
    width: 90%;
    max-width: 900px;
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #111;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.08);
}

/* Navigation */
nav a {
    text-decoration: none;
    color: #0044aa;
    font-size: 1.2rem;
    transition: 0.2s ease;
}

nav a:hover {
    color: #cc0000;
    transform: rotate(-2deg);
}

/* Paragraph styling */
p {
    white-space: pre-line;
    margin: 0;
}

/* Footer */
footer {
    margin-top: 25px;
    font-size: 1rem;
    color: #444;
    text-align: center;
}

/* Small notebook shadow effect */
section::after {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 12px;
    height: 100%;
    background: rgba(0,0,0,0.04);
    transform: skewY(-2deg);
}

/* Mobile tweaks */
@media (max-width: 768px) {
    section {
        padding: 40px 25px 40px 45px;
        font-size: 1.1rem;
    }

    section::before {
        left: 35px;
    }

    h1 {
        font-size: 2rem;
    }
}
