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

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #F4EDE4;
    width: 70%;
    margin: auto;
    padding: 20px;
}

header {
    margin-top: 25px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

header h1 {
    font-size: 60px;
    text-align: center;
    margin-bottom: 10px;
}

header p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
}

header hr {
    border: none;
    height: 1px;
    background-color: darkgray;
    width: 100%;
    margin-top: 10px;
}

.playground {
    margin-top: 40px;
}

.playground h2 {
    font-size: 35px;
    margin-bottom: 20px;
}

.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.editor-section {
    display: flex;
    flex-direction: column;
}

.editor-section label {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

textarea {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 15px;
    border: 1.5px solid #B5AEF5;
    border-radius: 8px;
    resize: vertical;
    min-height: 300px;
    background-color: white;
}

.buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

button {
    font-family: Arial, Helvetica, sans-serif;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 500;
}

button:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

button:active {
    transform: translateY(0);
}

#getTokens {
    background-color: #B5AEF5;
    color: black;
}

#getAST {
    background-color: #F7A072;
    color: black;
}

#getJS {
    background-color: #F4C542;
    color: black;
}

#runTeddy {
    background-color: rgb(50, 50, 50);
    color: white;
}

.tutorial {
    margin-top: 50px;
    padding: 30px;
    background-color: rgba(181, 174, 245, 0.1);
    border-radius: 12px;
    border-left: 4px solid #B5AEF5;
}
.tutorial a{
    color: black;
}

.tutorial h2 {
    font-size: 35px;
    margin-bottom: 20px;
}

.tutorial h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 12px;
}

.tutorial p, .tutorial ul {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    margin-bottom: 15px;
}

.tutorial ul {
    margin-left: 30px;
}

.tutorial li {
    margin-bottom: 8px;
}

.tutorial code {
    background-color: rgba(111, 98, 223, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.learn-more {
    background-color: #fff8e1;
    background-color: #E9F7F4;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    border-left: 4px solid #F4C542;
    border-left: 4px solid #7AD1C4;
}

.learn-more p {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.learn-more a {
    color: #6f62df;
    font-weight: bold;
}

footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid darkgrey;
    text-align: center;
}

footer p {
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 10px;
}

footer a {
    color: #6f62df;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        width: 95%;
    }

    header h1 {
        font-size: 43px;
    }

    .editor-container {
        grid-template-columns: 1fr;
    }

    .buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .tutorial h2, .playground h2 {
        font-size: 28px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: rgb(30, 30, 30);
        color: white;
    }

    textarea {
        background-color: rgb(45, 45, 45);
        color: white;
    }


    #getTokens {
        background-color: #8f88d8;
    }

    #getAST {
        background-color: #d98a66;
    }

    #getJS {
        background-color: #d9b13a;
    }

    #runTeddy {
        background-color: rgb(220, 220, 220);
        color: black;
    }

    .tutorial {
        background-color: rgba(111, 98, 223, 0.1);
    }

    .tutorial a{
        color: white;
    }

    .learn-more {
        background-color: rgba(244, 197, 66, 0.1);
        background-color: rgba(122, 209, 196, 0.1);
    }

    footer a, .learn-more a {
        color: #B5AEF5;
    }
}