
:root {
    --background: #0d0b12;
    --panel: #17131f;
    --purple-dark: #24153a;
    --purple-darkest: #1b1328;
    --purple-dark-grey: #34204d;
    --purple-medium-grey: #53317a;
    --purple-bright: #7a56a8;
    --purple-light: #5c3b89;
    --purple-lightest: #8d72c4;
    --text: #fff;
    --transition: 0.25s ease;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--background) url("/assets/img/website-bg.jpg") no-repeat bottom center;
    font-family: "Inter", sans-serif;
    color: var(--text);
}

h1, h2, h3 {
    font-family: "Cormorant Garamond", serif;
    color: #eee;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

a:link, a:visited, a:active {
    color: var(--purple-light);
}

a:hover {
    color: var(--purple-lightest);
}

#container {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

#inner-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#sidebar {
    padding: 2rem;
    width: 260px;
    background: linear-gradient(
        90deg,
        var(--purple-light),
        var(--purple-dark)
      );
    border-right: 1px solid var(--purple-medium-grey);
    box-shadow: inset -1px 0 var(--purple-dark),
        8px 0 24px var(--purple-darkest);
    font-family: "Cormorant Garamond", serif;
    transition: all var(--transition);
}

#sidebar #logo {
    display: block;
    margin: 1rem auto;
    width: 200px;
    height:200px;
}

#site-nav a {
    display: block;
    margin: .5rem 0;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(90deg, var(--purple-darkest) 0%, var(--purple-dark) 100%);
    border-left: 4px solid #333;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
      transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#site-nav a:hover {
    background: linear-gradient(90deg, var(--purple-medium-grey) 0%, var(--purple-dark-grey) 100%);
    box-shadow: 0 0 12px var(--purple-lightest);
    border-left: 4px solid var(--purple-lightest);
    transform: translateX(4px);
}

#site-nav a.on {
    background: var(--purple-dark-grey) 100%);
    box-shadow: 0 0 12px var(--purple-lightest);
    border-left: 4px solid var(--purple-lightest);
}

#site-nav a.active {
    background: linear-gradient(90deg, var(--purple-light) 0%, var(--purple-bright) 100%);
    font-weight: 600;
}

#sidebar #books {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#sidebar #books h2 {
    margin-bottom: 0;
    padding-bottom: 0;
}

#sidebar #books a {
    display: block;
    margin: .5rem 0;
    text-decoration: none;
}

#sidebar #books img {
    width: 150px;
    height: 200px;
    box-shadow: 0 0 12px rgba(180, 150, 255, 0.25);
    border: 1px solid var(--purple-lightest);
}

#main-content {
    flex: 1;
    padding: 3rem;
}

.image {
    margin: 1rem;
    width: 100%;
    max-width: 700px;
    height: auto;
}

.about-pic {
    float: right;
    margin-top: 0;
    width: 350px;
}

#contact-form { 
    display: grid; 
    gap: 15px; 
}

input, textarea { 
    padding: 12px;
    background: var(--purple-light);
    border: 1px solid var(--purple-lightest); 
    border-radius: 6px; 
    font-size: 16px; 
}
    
button { 
    padding: 12px; 
    background: var(--purple-dark) ; 
    color: #fff; 
    border: none; 
    border-radius: 6px; 
    font-size: 16px; 
    cursor: pointer; 
}
    
button:hover { 
    background: var(--purple-light);
    color: var(--purple-darkest)
}
    
.success { 
    color: #abedb1; 
}
    
.error { 
    color: #edabad; 
}
 
#footer-content {
    padding: 1rem;
    text-align: center;
    border-top: rgba(255, 255, 255, .8);
}

@media (max-width: 800px) {
    #container {
        flex-direction: column;
    }

  #sidebar {
    position: static;
    width: auto;
    height: auto;
  }
}
