
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 300;
  src: url(fonts/Barlow.ttf) format('ttf');
}

@font-face {
  font-family: 'Barlow-Bold';
  font-style: normal;
  font-weight: 700;
  src: url(fonts/Barlow-Bold.ttf) format('ttf');
}

@font-face {
  font-family: 'Barlow-Italic';
  font-style: italic;
  font-weight: 300;
  src: url(fonts/Barlow-Italic.ttf) format('ttf');
}

@font-face {
    font-family: 'FiraCode';
    font-style: normal;
    font-weight: 400;
    src: url(fonts/FiraCode.ttf) format('ttf');
}

a {
  background:
     linear-gradient(
       to bottom,
       var(--mainColor) 0%,
       var(--mainColor) 100%
     );
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 0 0;
  color: #003388;
  text-decoration: none;
  transition: background-size .2s;
  font-weight: bold;
}

:root {
  --mainColor: #bbccee;
  /*--mainColor: #55aaff;*/
}

a:hover {
  background-size: 4px 50px;
  text-decoration: none;
  color: #003388;
  font-weight: bold;
}

body {
  background-image: url(images/gradient-bg.png);
  background-attachment: fixed;
	background-repeat: repeat-x;
  font-family: 'Barlow', sans-serif;
  color: #33393d;
}

h1 {
  font-family: 'Barlow-Bold', sans-serif;
  color: #0022cc;
  font-size: 1.7rem;
  padding: 25px 0 0 0;
}

h2 {
  font-family: 'Barlow-Bold', sans-serif;
  color: #0022cc;
  font-size: 1.3rem;
  padding: 25px 0 0 0;
}

.small-caption {
  display: block;
  font-family: 'Barlow-Italic', sans-serif;
  font-size: 0.9rem;
  text-align: right;
  width: 100%;
  margin: -10px 0 0 0;
}

.banner-container {
  border-width: 2px 2px 0 2px;
  border-style: solid;
  border-color: #555555;
  width: 600px;
  min-width: 400px;
  margin: auto;
}

.navbar {
  border-width: 0 2px 0 2px;
  border-style: solid;
  border-color: #555555;
  width: 600px;
  min-width: 400px;
  background: #ffffff;
  text-align: center;
  margin: 0 auto -20px;
  padding: 5px 0 5px 0;
}

.blog-navbar {
  display: block;
  width: 100%;
  background: #ffffff;
  text-align: center;
  padding: 5px 0 5px 0;
}

.content-container {
  border-width: 0 2px 0 2px;
  border-style: solid;
  border-color: #555555;
  width: 560px;
  min-width: 360px;
  margin: auto;
  background: #ffffff;
  padding: 20px;
}

.footer {
  border-width: 0 2px 2px 2px;
  border-style: solid;
  border-color: #555555;
  width: 560px;
  min-width: 360px;
  margin: auto;
  background: #ffffff;
  padding: 20px;
  font-size: 0.8rem;
  text-align: center;
}

.divider {
  display: block;
  width: 100%;
  height: 5px;
  background: #aaaaaa;
}

.undecorated-link:link {
  background: none;
  transition: none;
}

.firacode {
  font-family: 'Courier New', mono;
  font-weight: bold;
  font-size: 0.8rem;
  color: #003377;
}

#art-page {
  background-image: url('images/art-sidebar.png');
  background-repeat: no-repeat;
  background-position: top right;
}

.book-card {
    display: flex;
    align-items: flex-start;
    max-width: 720px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: Georgia, serif;
}

.book-cover {
    width: 140px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    margin-right: 20px;
}

.book-details {
    flex: 1;
    color: #333;
}

.book-summary,
.book-description {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.book-description {
    margin-bottom: 16px;
}

.purchase-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn {
    text-decoration: none;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
    display: inline-block;
}

.btn-ebook {
    background-color: #4A90E2;
}

.btn-physical {
    background-color: #7B4F9A;
}


