body {
    font-family: 'Patrick Hand', cursive;
    background-color: #d0fdf1;
    color: #22333b;
    font-size: 22px;
    margin: 0;
    padding: 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #ffffff;
    border-bottom: 4px solid #d0fdf1;
    padding: 10px 20px;
    border-radius: 40px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    display: inline-block;
    color: #338ada;
    font-weight: bold;
    font-size: 22px;
    transition: transform 0.2s ease, color 0.2s ease, text-decoration 0.2s ease;
}

nav ul li a:hover {
    color: #1cc4b8;
    text-decoration: underline;
    transform: scale(1.08) translateY(-3px);
}

footer {
    margin-top: auto;
    background-color: #ffffff;
    border-top: 4px solid #d0fdf1;
    border-radius: 40px;
    padding: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.github-icon {
    height: 36px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.github-icon:hover {
    transform: scale(1.15);
}

.footer-content p {
    margin: 0;
    font-size: 18px;
    color: #22333b;
}

.about {
    max-width: 1200px;
    margin: 50px auto;

    display: flex;
    align-items: center;
    gap: 40px;

    background: #ffffff;
    padding: 35px;
    border-radius: 35px;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-box {
    width: 220px;
    height: 220px;

    background: #e8fff8;
    border: 4px solid #1cc4b8;
    border-radius: 30px;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;
}

.photo-box img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 25px;
}

.about-text h1 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #338ada;
}

.about-text p {
    margin: 12px 0;
    line-height: 1.6;
}

.about:hover {
    transform: translateY(-8px) rotate(-0.5deg);
    box-shadow: 0 14px 35px rgba(51, 138, 218, 0.18);
}

.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    background-color: #338ada;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .header-content {
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #ffffff;
        border: 4px solid #1cc4b8;
        border-radius: 20px;
        flex-direction: column;
        width: 200px;
        display: none;
        padding: 20px;
        z-index: 100;
        box-shadow: 0 10px 25px rgba(51, 138, 218, 0.2);
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle:checked ~ ul {
        display: flex;
    }

    .menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .about {
        flex-direction: column;
        text-align: center;
        margin: 20px auto;
        padding: 20px;
    }

    .photo-box {
        width: 180px;
        height: 180px;
    }

    .photo-box img {
        width: 160px;
        height: 160px;
    }

    .github-icon {
        height: 30px;
        align-self: center;
    }

    .footer-content p {
        text-align: center;
        padding: 5px;
    }

    .footer-content {
        flex-direction: column;
        gap: 5px;
        justify-content: center;
    }
}

.repl-workspace {
    max-width: 1400px;
    margin: 40px auto;

    display: flex;
    flex-direction: column;
    gap: 30px;
    box-sizing: border-box;
    width: 100%;
}

.repl-box {
    background: #ffffff;
    border: 4px solid #1cc4b8;
    border-radius: 30px;
    padding: 35px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.repl-title {
    margin-top: 0;
    font-size: 26px;
    color: #338ada;
    margin-bottom: 15px;
}

#repl-output {
    flex-grow: 1;
    min-height: 250px;
    background: #e8fff8;
    color: #22333b;
    border: 2px dashed #1cc4b8;
    border-radius: 20px;
    padding: 15px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 18px;
    white-space: pre-wrap;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .repl-workspace {
        flex-direction: column;
    }
}

.repl-box py-editor,
.repl-box script[type="py-editor"] {
    min-height: 300px !important;
    display: block !important;
    width: 100% !important;
}

#repl-output {
    display: block !important;
    margin-top: 10px;
}

#surprise-button {
    background-color: #1cc4b8;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#surprise-button:hover {
    background-color: #338ada;
    transform: scale(1.05);
}

.surprise-workspace {
    margin: 40px auto;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-sizing: border-box;
    width: 100%;
}

.surprise-box {
    background: #ffffff;
    border: 4px solid #1cc4b8;
    border-radius: 30px;
    padding: 35px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .surprise-workspace {
        flex-direction: column;
    }
}

.error-container {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.error-container h1 {
    font-family: 'Quicksand',sans-serif;
    font-size: 90px;
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 10px;
}

#projects h1{
    margin-top: 0;
    margin-bottom: 15px;
    color: #338ada;
}
.project {
    max-width: 1200px;
    margin: 50px auto;

    display: flex;
    gap: 40px;

    background: #ffffff;
    padding: 35px;
    border-radius: 35px;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-text h2 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #338ada;
}

.project-text p {
    margin: 12px 0;
    line-height: 1.6;
}

.project:hover {
    transform: translateY(-8px) rotate(-0.5deg);
    box-shadow: 0 14px 35px rgba(51, 138, 218, 0.18);
}

.github-icon-project {
    height: 30px;
    width: auto;
    display: inline-block;
    margin-top: 10px;
    transition: transform 0.2s ease;
}

.github-icon-project:hover {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .project {
        flex-direction: column;
        margin: 20px auto;
        padding: 20px;
    }
}