@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

@font-face {
  font-family: Norse;
  src: url(Norse.otf);
}

@font-face {
  font-family: NorseBold;
  src: url(Norsebold.otf);
}

:root {
  --deepwalnut: #483121;
  --goldenrod: #b28330;
  --beige: #bba488;
}

body {
  background: url('../images/old_paper.jpg');
  background-size: 40%;
  font-family: "Crimson Text", serif;
  font-size: 15px;
  line-height: 1.2rem;
  color: var(--deepwalnut);
}

a {
  color: var(--goldenrod);
}

a:visited {
  color: var(--deepwalnut);
}

a:hover {
	color: var(--deepwalnut);
	text-decoration: none;
}

.container-lg {
  max-width: 960px !important;
}

.konkkaronkka a {
  text-decoration: none;
}

.konkkaronkka .card {
  border: 1px solid var(--beige);
  transition: border-color 0.2s;
  text-decoration: none;
  background: rgb(162, 119, 26, 0.25);
  padding: 1em 1em 0 1em;
  color: var(--deepwalnut);
}

.konkkaronkka .card:hover {
  border-color: var(--goldenrod);
}

.text-body-primary {
  color: var(--deepwalnut) !important;
}

.text-body-secondary {
  color: var(--beige) !important;
}

.btn-primary {
  background-color: var(--goldenrod);
  border: none;
  color: #fff !important;
  text-transform: uppercase;
  font-family: "NorseBold", serif;
}

.btn-secondary {
  margin-top: -0.2em;
  margin-left: 0.5em;
  padding: 0 0.5em;
  background-color: var(--goldenrod);
  border: none;
  color: #fff !important;
  text-transform: uppercase;
  font-size: 0.8em;
}

.btn-primary:hover, .btn-primary:active, .btn-secondary:hover, .btn-secondary:active {
  background-color: var(--deepwalnut) !important;
}

footer {
  background-color: var(--deepwalnut);
  font-family: "Norse", serif;
  color: var(--beige);
}

h1, h2, h3, h4, h5, h6, nav, .badge, .serif {
  font-family: "NorseBold", serif;
}

h1 {
  margin-top: 0.2em;
  font-size: 2.5rem;
  line-height: 2.2rem;
  color: var(--goldenrod);
  text-align: center;
}

h2, h3, h5 {
  color: var(--deepwalnut);
  text-align: center;
}

h4 {
  margin: 0.1em 0;
  color: var(--deepwalnut);
}

h1 > .uppercase {
  font-size: 4rem;
}

header {
    display:table;
    width:100%;
    max-width:100%;
}
header div {
    display:table-row;
    line-height:1.5em;
    font-size:1.5em;
    white-space:nowrap;
}

header p {
    font-size:inherit;
    overflow:hidden;
    display:table-cell;
    vertical-align:middle;
    width:1px;
    table-layout:fixed;
    font-family: "Norse", serif;
    color: var(--beige);
}

header span.spacer {
    display:table-cell;
}

header p {
    padding:0 0.5em;
}

header a {
  text-decoration: none;
  color: var(--beige) !important;
}

header span.spacer:after {
    display:inline-block;
    width:100%;
    content:".";
    font-size:0;
    color:transparent;
    height:1px;
    background:#000;
    vertical-align:middle;
    position:relative;
    top:-1px;
	background-color: var(--beige);
}

.bg-section {
  background-image: url('../images/kartta.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
	z-index: 0;
}

.bg-section:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
	background: rgb(72, 49, 33, 0.80);
}

.bg-section .container-lg {
  position: relative;
  z-index: 100;
  color: var(--beige);
}

.bg-section .container-lg h2, .bg-section .container-lg h3, .bg-section .container-lg h4, .bg-section .container-lg p a {
  color: var(--beige) !important;
}

.galleria .card {
  border: 1px solid var(--deepwalnut);
  transition: border-color 0.2s;
  text-decoration: none;
  background: rgb(72, 49, 33, 0.50);
  padding: 1em 1em 0 1em;
  color: var(--beige);
}

.galleria .card:hover {
  background-color: rgb(72, 49, 33, 0.75);
}

.bg-primary {
  background-color: var(--beige) !important;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6rem;
}

.rounded-lb-rt {
  border-radius: 0 8em;
}

.rounded-multiple {
  border-radius: 0 4em;
  height: 200px;
}

nav {
  background-color: var(--goldenrod);
}

.navbar-toggler {
  border: none;
}

.navbar-brand {
  font-size: 2rem;
  font-family: "NorseBold", serif;
  color: var(--deepwalnut) !important;
}

.nav-item a {
  font-size: 1.2rem;
  font-family: "Crimson Text", serif;
  color: var(--deepwalnut) !important;
}

.nav-item a:hover {
  color: #805a17 !important;
}

.logo {
  font-size: 5rem;
}

.blockquote {
  line-height: 1.5rem;
  font-style: italic;
  color: var(--goldenrod);
}

.paper-box {
  background: url('../images/lappunen.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  padding: 1.5em;
  text-align: center;
  color: var(--deepwalnut);
}

.pedigree {
  overflow: hidden;
  width: 100%;
  text-align: center;
  color: var(--deepwalnut);
}

.lines {
  float: left;
  width: 50%;
  overflow: hidden;
}

.second {
  float: left;
  width: 50%;
  padding: 1.5em 0;
}

.label {
  font-family: "NorseBold", serif;
  font-size: 0.8rem;
  color: var(--goldenrod);
  font-weight: normal;
}

.name {
  font-size: 1.6em;
  line-height: 1em;
  font-family: "NorseBold", serif;
}

.second .name {
  font-size: 1.2em;
}

.specs {
  font-size: 0.8em;
  line-height: 1.2em;
  margin: 0.5em 0;
}

.second .specs {
  margin: 0;
  font-size: 0.7em;
}

.specs a {
  color: var(--deepwalnut) !important;
}

.date {
  text-align: center;
  font-family: "NorseBold", serif;
}

.ddmm {
  margin: 0.2em 0 0.2em 0;
  font-size: 2rem;
  color: var(--goldenrod);
}

.yyyy {
  margin: 0 0 0.6em 0;
  font-size: 0.8rem;
}

.text {
  margin: 0 0 0 3em;
}

.flag {
  margin-left: 10px;
  margin-right: 10px;
	width: 16px !important;
	height: 11px !important;
}

.flag2 {
  margin-left: 10px;
  margin-right: 15px;
	width: 11px !important;
	height: 11px !important;
}

.noflag {
  padding-left: 36px;
}

.comp {
  margin-right: 0.5em;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.8rem;
  color: var(--goldenrod);
}

.prizes {
  height: 100px;
}

@media (max-width: 575.98px) {
  .lines {
    float: none;
    width: 100%;
  }
}
