@import url('https://fonts.googleapis.com/css2?family=Nerko+One&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pacifico', sans-serif;
}

/* Body Styling */
body {
    background-color: #fda5a5;
    color: #333;
    line-height: 1.6;
}

/* Navigation Bar */
nav {
    background-color: #ff6b6b;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: background-color 0.4s ease-in-out;
}

/* nav:hover {
    background-color: #d9534f;
} */

nav .logo {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Pacifico', 'Nerko One';
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

/* Hide the navigation links by default on small screens */
.nav-links {
    display: none;
}

/* Styling for the links */
nav .nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav .nav-links li a:hover {
    color: #ffe66d;
    transform: scale(1.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.4s ease-in-out;
}

/* .hamburger:hover {
    transform: rotate(90deg);
} */

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#nav-toggle {
    display: none;
}

/* Show the navigation links when the checkbox is checked */
#nav-toggle:checked + .hamburger + .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #ff6b6b;
    width: 100%;
    text-align: center;
    transition: max-height 0.4s ease-in-out;
    max-height: 0;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

#nav-toggle:checked + .hamburger + .nav-links {
    max-height: 300px; /* Adjust based on your content */
}

#nav-toggle:checked + .hamburger div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#nav-toggle:checked + .hamburger div:nth-child(2) {
    opacity: 0;
}

#nav-toggle:checked + .hamburger div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


#nav-toggle:checked + .hamburger + .nav-links li {
    margin: 10px 0;
}

@media (max-width: 768px) {
    nav .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
    }

    .hamburger {
        display: flex;
    }

    #nav-toggle {
        display: none;
    }
}

/* Show the navigation links when the checkbox is checked */
#nav-toggle:checked + .hamburger + .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #ff6b6b;
    width: 100%;
    text-align: center;
    transform: translateY(0);
}

#nav-toggle:checked + .hamburger + .nav-links li {
    margin: 10px 0;
}

@media (max-width: 768px) {
    nav .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
    }

    .hamburger {
        display: flex;
    }

    #nav-toggle {
        display: none;
    }
}

/* Header */
header {
    text-align: center;
    margin-top: 20px;
    color: #d61e1e;
}

/* Scrapbook Container */
.scrapbook-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Toolbar */
.toolbar {
    background-color: #ffe66d;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.toolbar button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.toolbar button:hover {
    background-color: #ff3b3b;
}

/* Scrapbook Page */
.scrapbook-page {
    background-color: #ffe66d;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Navigation Buttons */
.navigation {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.navigation button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.navigation button:hover {
    background-color: #ff3b3b;
}

/* Draggable Elements */
.note, .photo, .sticker {
    padding: 10px;
    border: none;
    cursor: move;
    resize: both;
    overflow: auto;
}

/* Footer */
footer {
    font-family: 'Poppins', sans-serif;
    height: 120px;
    width: 100%;
    background-color: #ff6b6b;
    color: #fff;
    padding-top: 10px;
    text-align: center;
}

footer .social-links, footer .footer-links {
    list-style: none;
    padding: 0;
}

footer .social-links li, footer .footer-links li {
    display: inline;
    margin: 0 10px;
}

footer .social-links a, footer .footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

footer .social-links a:hover, footer .footer-links a:hover {
    color: #ffe66d;
}

/* Responsive Design */
@media (max-width: 600px) {
    .scrapbook-page {
        width: 90%;
        height: auto;
    }

    .toolbar button, .navigation button {
        font-size: 16px;
        padding: 8px 16px;
    }

    .note, .photo, .sticker {
        font-size: 14px;
    }
}
