/*
Theme Name: A Theme for Melanie
Author: Phil Rickaby
Description: A simple custom WordPress theme.
Version: 1.0
*/

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Centering the header and menu */
.header-container {
    max-width: 960px; /* Adjust as needed */
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

/* Logo styling */
.site-branding {
    display: block;
    margin-bottom: 20px;
}

.site-logo img {
    max-width: 100%;
    height: auto;
}

/* Menu styling */
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}

.main-navigation li {
    margin: 0 15px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Content wrapper */
.site-content {
    max-width: 960px; /* Adjust as needed */
    margin: 0 auto;
    padding: 20px;
}

/* Custom background image support */
body.custom-background {
    background-image: url(<?php echo get_background_image(); ?>);
    background-repeat: <?php echo get_theme_mod('background_repeat', 'no-repeat'); ?>;
    background-position: <?php echo get_theme_mod('background_position_x', 'center') . ' ' . get_theme_mod('background_position_y', 'center'); ?>;
    background-size: <?php echo get_theme_mod('background_size', 'cover'); ?>;
    background-attachment: <?php echo get_theme_mod('background_attachment', 'fixed'); ?>;
}

/* Fallback for background image if not set */
body.has-background-image {
    background-image: url(<?php echo get_background_image(); ?>);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}