/* Import the handwritten font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;700&display=swap');

body {
    background-color: #FAF9F6; /* Off-white */
    font-family: 'Caveat', cursive; /* Handmade writing font */
    font-size: 26px; /* Slightly larger because handwritten fonts run small */
    margin: 0;
    color: #333;
    text-align: center; /* Centers all text on the webpage */
}

/* Centered Navigation */
nav {
    display: flex;
    flex-direction: column; /* Stacks logo and links */
    align-items: center;
    padding: 30px 5%;
    background: #FAF9F6;
    gap: 15px;
}

.logo {
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.links {
    display: flex;
    gap: 20px;
}

.links a {
    text-decoration: none;
    color: #8d7e7a; /* Purple */
    font-weight: 700;
    font-size: 28px;
    transition: color 0.3s;
}

.links a:hover {
    color: #5a4441; /* Darker purple on hover */
}

h1 {
    font-size: 48px;
    color: #8d7e7a;
    margin-bottom: 10px;
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #FAF9F6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.yarn-ball {
    width: 150px;
}

#yarn-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: unwind 2s ease-in-out forwards;
}

@keyframes unwind {
    to { stroke-dashoffset: 0; }
}

#loader.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}