/* examples.css
   Global styles for example code snippets.
   (C)2025 Morgan Evans
*/

body {
    margin: 0px;
    padding: 0px;
    background-color: #ffffff;
}

div#examples-box {
    position: relative;
    width: 1280px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    color: #333;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
    min-height: fit-content;
}

div.examples-description {
    margin: 0px 0px 20px 0px;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
}

div.examples-description h1 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 24px;
    color: #222;
}

div.examples-description h2 {
    margin: 5px 0 0 0;
    padding: 0;
    font-size: 20px;
    color: #555;
}

div.examples-description p {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 16px;
    font-weight: normal;
    color: #666;
}

div.examples-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    margin: 0px 0px 20px 0px;
    width: 100%;
    clear: both;
    box-sizing: border-box;
}

div.examples-code {
    flex: 1;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    border-radius: 4px;
    height: 100%;
    box-sizing: border-box;
}

div.examples-preview {
    flex: 1;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #fafafa;
    border-radius: 4px;
    height: 100%;
    box-sizing: border-box;
}

div.examples-container + div.examples-description {
    margin-top: 0px;
}