/*
Theme Name: W3Schools Clone Theme
Theme URI: https://example.com/
Author: Frason Francis
Description: A W3Schools-like tutorial theme for WordPress.
Version: 1.0
*/

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f1f1f1;
    color: #000;
}

/* Top Navbar */
#top-navbar {
    background-color: #282A35;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    align-items: center;
}

#top-navbar .logo {
    font-weight: bold;
    font-size: 22px;
}

#top-navbar a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

#top-navbar a:hover {
    text-decoration: underline;
}

/* Main Layout */
#main-content {
    display: flex;
    margin: 0 auto;
    padding: 20px;
    max-width: 1300px;
}

/* Sidebar */
#sidebar {
    width: 250px;
    background-color: #fff;
    padding: 15px;
    border-right: 1px solid #ddd;
    height: 100%;
    position: sticky;
    top: 0;
}

#sidebar h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #282A35;
}

#sidebar ul {
    list-style: none;
}

#sidebar ul li {
    margin: 10px 0;
}

#sidebar ul li a {
    color: #000;
    text-decoration: none;
    display: block;
    padding: 8px;
    border-radius: 4px;
}

#sidebar ul li a:hover {
    background-color: #ddd;
}

/* Tutorial Content Area */
#tutorial-content {
    flex: 1;
    padding: 0 20px;
    background-color: #fff;
    margin-left: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#tutorial-content h1,
#tutorial-content h2,
#tutorial-content h3 {
    color: #282A35;
    margin-bottom: 10px;
}

#tutorial-content p {
    margin-bottom: 15px;
}

.tutorial-list .tutorial-item {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

/* Code Box */
.code-box {
    background-color: #f4f4f4;
    border-left: 4px solid #04AA6D;
    padding: 10px;
    margin: 20px 0;
    font-family: monospace;
    overflow-x: auto;
}

/* Run Button */
.run-btn {
    background-color: #04AA6D;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
}

.run-btn:hover {
    background-color: #038e5a;
}

/* Next/Previous Buttons */
.tutorial-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.tutorial-nav a {
    background-color: #04AA6D;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
}

.tutorial-nav a:hover {
    background-color: #038e5a;
}

/* Responsive */
@media (max-width: 768px) {
    #main-content {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    #tutorial-content {
        margin-left: 0;
    }
}

