header
{
    color: white;
}

.heroimage
{
    position: relative;
}

.bannertext 
{
    text-align:right;
    position:absolute;
    top: 15px;
    right: 9px;
    color: white;
}

footer
{
    color: white;
    text-align: center;
    padding: 5px;
    justify-content: center;
    background-color: black;
}

body, html
{
    background-color: black;
    overflow-x: hidden;
    font-family: 'Nunito', sans-serif;
    /*font-family: Garamond, Georgia, serif;*/
    font-size: large;
}

.omalinkki, .linkkinn, .nav-link, .footerIcon
{
    color: white;
    text-decoration: none;
}

.omalinkki:hover, h4, h2, .nav-link:hover, .card-title, .footerIcon:hover
{
    color: red;
}

.card
{
    padding-right: 2em;
    padding-left: 2em;
}

.btn
{
    background-color: red;
}

img
{
    width: 75%;
}

.img-swap 
{
  width: 100%;
  height: auto;
  position: relative;
  display: inline-block;
}

.img-swap img 
{
  display: block;
  transition: opacity 0.3s ease;
}

.imgA2 {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.img-swap:hover .imgA2 
{
  opacity: 1;
}

.img-swap:hover .imgA 
{
  opacity: 0;
}

.carousel-item img
{
  height: 400px;
  object-fit: contain;
  background-color: black;
  width: 100%;
}

.kuvakaruselli
{
  max-width: 700px;
  margin: auto;
  margin-bottom: 30px;
}

.course-img 
{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-thumbnail 
{
  width: 100%;
  height: 250px;
  object-fit: contain;
  background-color: black;
  border: solid black
}

.required::after
{
  content: " *";
  color: red;
}

.lomake-rivi
{
  margin-bottom: 1rem;
  margin-left: 3rem;
  margin-right: 3rem;
}

.btn:hover
{
  background-color: white;
  color: red;
}

#galleryModal .carousel-item img
{
    height: auto;
    max-height: 85vh;
    width: 100%;
}