:root {
    --header-bg: url(../img/background.jpg);
    --header-bg-color: #f0f9fd;
    --accent-color: #9BD8F4;
    --link-color: #784D98;
    --bg-color: #f0f9fd;
    --bg-color2: #5E5250;
    --text-color: #3D363A;
    --header-text: #BAF9A0;

    --stripe-color: #f0f9fd;
    --stripe-color2: #B0E5FF;
}


* {
    color: var(--text-color);
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

    scrollbar-color: var(--text-color) var(--stripe-color2);
    scrollbar-width: thin;

      box-sizing: border-box;
}

/* this is for when you select text on the page */
::selection {
    background: var(--accent-color);
    color: var(--bg-color);
}

body {
    /* dot bg: https://codepen.io/edmundojr/pen/xOYJGw
     */
    --dot-bg: black;
    --dot-color: white;
    --dot-size: 1px;
    --dot-space: 22px;
        background:
		linear-gradient(90deg, var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
		linear-gradient(var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
		var(--dot-color);
}
/* i think having better line spacing helps text to be more readable, but you can remove it if you want */
p {line-height: 1.5em;}

header {
    background-color: var(--accent-color);
    background-image: var(--header-bg);
    background-size:50%;

    background-position: 75%;
    background-repeat: no-repeat;
/* change the minimum height if you want it to take up more/less space */
    min-height: 200px;
    margin: 0 auto;
    padding-top: 10px;
/* you can change the text-align to center or right if you want it placed differently */
    text-align: center;
}

/* this is your site title displayed at the top of the page */
header > h1 {
    margin: 20px auto;
    max-width: 1080px;
    width: fit-content;
    padding: 12px;

    color:var(--stripe-color);
        text-shadow: 
        -2px -2px 0 var(--text-color),
            2px -2px 0 var(--text-color),
        -2px 2px 0 var(--text-color),
            2px 2px 0 var(--text-color);
}

nav {
    font-weight: bold;
}

nav > ul {
    max-width: 1080px;
    margin: auto;
    line-height: 3rem;

/* this stuff makes it wrap around on mobile */
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;

/* this line takes away the dot in front of the list items */
    list-style-type: none;

/* list items have default padding but we don't need it for these */
    padding-left: 0;
    
/* and this spaces out the buttons so they're not touching */
    justify-content: space-evenly;
}
nav li {
    text-align: center;
}
nav li > a {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: .2em 3em;
/* this takes away the link underline */
    text-decoration: none;
}
nav li > a:hover {
    background-color: var(--bg-color);
}

a {
    color: var(--link-color);
    font-weight: bold;
}
a:visited {
    color: var(--text-color);
}
a:hover {
    color: var(--accent-color);
}

/* you can change this to anything you want :) */
ul { 
    list-style-type: circle;
}

marquee {
    display: block;
    margin: 0;
    background-color: var(--stripe-color2);
}

#sidebar {
    background-color: var(--bg-color);
    max-width: 160px;
    margin: 1em;
    padding: 1em;
    border: 2px solid var(--text-color);
    box-shadow: var(--accent-color) 4px 4px;
}

#sidebar ul {
    padding-left: 0;
    margin: 1em;
}

#avatar {
    margin: .5em auto;
    text-align: center;
}
#avatar img {
    background: var(--stripe-color);
    width: 100%;
    border: 2px solid var(--text-color);
}

#bio {
    background: var(--stripe-color2);
    border: 2px solid var(--text-color);
}
#bio p { margin: .8em; }

#content {
    display: flex;
    max-width: 1400px;
    margin: auto;
}

main {
    background-color: var(--bg-color);
    box-shadow: var(--accent-color) 4px 4px;
    margin: 1em;
    padding-bottom: 1em;
    border: 8px solid var(--text-color);
    max-height: 420px;
    overflow: auto;
    width: 100%; /* Makes it take full available width */
    max-width: 1080px; /* Sets maximum width */

/*remove these lines if you dont want the scrollbar*/
    max-height: 420px;
    overflow: auto;
}

main h1 {
    text-align: center;
}

main > h1,
main > h2,
main > h3 {
    background-color: var(--accent-color);
    text-align: center;
    padding: .2em .5em;
    margin: 0;
}

.mews {
    padding: 0 1em;
}

/* a class for centering text and images */
.center { text-align: center; }

/* Voiceover Demo Styles */
.voiceover-page main {
    max-height: 600px; /* or whatever height you prefer */
}

.demo-title {
    text-align: center;
    color: var(--text-color);
    margin: 1.5em 0 1em 0;
    font-size: 1.5em;
}

.audio-demos {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1em;
    margin-bottom: 1.5em;
}

.audio-item {
    background: var(--stripe-color);
    max-width: 100%;
    border: 2px solid var(--text-color);
    border-radius: 10px;
    padding: 0.8em 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--accent-color) 3px 3px;
}

.demo-label {
    font-style: italic;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
    text-align: left;
}

/* Container for buttons to be side by side */
.button-container {
    display: flex;
    gap: 0.8em;
    align-items: center;
}

.play-btn, .download-btn {
    background: var(--accent-color);
    border: 2px solid var(--text-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9em;
}

.play-btn:hover, .download-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: scale(1.1);
}

.main-player {
    max-width: 100%;
    background: var(--stripe-color2);
    border: 2px solid var(--text-color);
    padding: 1em;
    border-radius: 6px;
    margin: 0 1em 1em 1em;
}

.main-player audio {
    width: 100%;
    outline: none;
}



/* Contact Form Styles */
form {
    max-width: 100%;
    padding: 20px;
}

.form-row {
    display: flex;
    gap: 2em;
    margin-bottom: 1em;
}

.form-left {
    flex: 1;
}

.form-right {
    flex: 1;
}

form label {
    display: block;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.form-right label {
    margin-top: 1em;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.8em;
    border: 2px solid var(--text-color);
    background-color: var(--bg-color);
    box-sizing: border-box;
}

form textarea {
    height: 40%;
    min-height: 200px;
}

form input[type="submit"] {
    margin-top: 1em;
    padding: 0.8em 2em;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: 2px solid var(--text-color);
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

form input[type="submit"]:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}


footer {
    text-align: center;
    font-size: small;
    margin: 1em auto;
    max-width: 960px;
    color:var(--stripe-color);
}

/* these are the mobile styles! */
@media only screen and (max-width: 800px) {
    #content {
        flex-wrap: wrap;
    }
    #sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        border: none;
        margin: 0;
    }
    header {
        min-height:50px;
        background-position: bottom;
    }
    header > h1 { 
        margin: .4em;
    }
    .white-bg {
        margin: 1em;
    }
    nav > ul {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }
    #avatar {
        margin: 0 1em;
        max-width: 120px;
    }
    #bio {width: 50%;}
    main {
        margin: 0;
        max-height: fit-content;
    }
    #sidebar {
        max-width: 100%;
    }
    #sidebar ul {   
        margin: 0 1em;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        line-height: 2em;
    }
    #sidebar li {
        padding-left: 0;
        margin: .3em 1em;
    }

    /* Voiceover mobile styles */
    .audio-demos {
        padding: 0.5em;
    }

    .audio-item {
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 0.8em;
        padding: 0.8em;
    }
    
    .demo-label {
        text-align: center;
    }

    .main-player {
        margin: 0 0.5em 1em 0.5em;
        padding: 0.5em;
    }

    .main-player audio {
        width: 100%;
    }

    /* Form mobile styles */
    .form-row {
        flex-direction: column;
    }
    
    form textarea {
        min-height: 170px;
    }
    
    footer {
        margin: 1em;
    }
}