/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f6;
    color: #263238;
    margin: 0;
    padding-top: 80px; /* Offset for fixed navbar */
}

/* Navbar Styling */
header {
    background-color: #ffffff;
    padding: 15px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #eebf17;
    text-decoration: none;
}

.navbar-logo {
    height: 50px;
    margin-right: 10px;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.navbar-logo:hover {
    transform: rotate(360deg);
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: #00a652;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    color: #eebf17;
    transform: scale(1.1);
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease-in-out;
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease-in-out;
}

/* Game Analysis Section */
main {
    max-width: 1200px;
    margin: auto;
    padding: 40px;
    text-align: center;
}

/* Tabs for Input Methods */
#input-methods {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    background-color: #00a652;
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.tab-button:hover {
    background-color: #eebf17;
    color: #263238;
}

/* Sections */
.input-section {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    margin-bottom: 20px;
}

.input-section.active {
    display: block;
}

/* PGN Input & File Upload */
textarea, input[type="file"], input[type="text"], button {
    width: 100%;
    max-width: 600px;
    margin: 10px auto;
    display: block;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: all 0.3s ease-in-out;
}

textarea:focus, input:focus {
    border-color: #00a652;
    outline: none;
    box-shadow: 0px 0px 8px rgba(0, 166, 82, 0.5);
}

/* Buttons */
button {
    background-color: #00a652;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

button:hover {
    background-color: #eebf17;
    color: #263238;
    transform: scale(1.05);
}

/* Chessboard */
#chessboard {
    width: 400px;
    height: 400px;
    margin: 20px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Move Controls */
#move-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    main {
        padding: 20px;
    }

    .navbar-logo {
        height: 40px;
    }

    .nav-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #00a652;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    nav ul.show {
        display: flex;
    }

    nav a {
        padding: 15px;
        text-align: center;
        width: 100%;
        display: block;
    }
}

/* Footer Styling */
#footer {
    background: #00a652;
    color: #eebf17;
    padding: 40px 0;
    text-align: center;
}

#footer h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
}

#footer a {
    color: white;
    font-size: 30px;
    margin: 0 15px;
    transition: all 0.3s ease-in-out;
}

#footer a:hover {
    color: #eebf17;
    transform: scale(1.1);
}

#footer p {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 15px;
}
