/* Set background image to a fixed position and margin for navigation bar to not cover the content*/
body{
    margin-top: 60px;
    background-image: url('kuvat/MaisemaKuvaValmis.png');
    background-attachment: fixed; /* fixed position for background */
    background-size: cover; /*covers entire page*/
}
/* align content to center*/
.container {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* image gallery placed center */
.gallery {
    display: flex;
    flex-direction: column; /* Set to column for mobile first approach */
    align-items: center;
    gap: 10px;
  }

  .video-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* limit max size for the trailer*/
    margin: 0 auto;
    height: auto; /* scale the video to the video player size*/
  }

  .video-container video {
    width: 100%;
    height: auto; /* scale the video to the video player size*/
    border-radius: 10px; /* rounder style */
    display: block; /* fix small gap below video */
  }

/* image adjustments in gallery*/
  .gallery img {
    display: block;
    width: 90%; /* On mobile / tablet not full width */
    height: auto;
    border-radius: 10px; /* styling to be more rounded*/
    object-fit: contain; /* sizing the image to show full when on mobile*/
  }
  /* captions in images alligned center*/
  figure {
    margin: 0;
    text-align: center;
  }
/* captions*/
  figcaption {
    border-radius: 8px; /* rounded style*/
    margin: 0;
    background-color: rgb(70, 201, 150);
    color: black;
    padding-top: 5px;
  }

/* align text to center */
.box {
    text-align: center;
}
/* put margin between to images*/
.box img {
    margin-top: 30px;
    margin-bottom: 10px;
}

/* text style in the page*/
.text {
    margin-top: 10px;
    background-color: rgb(255, 255, 255);
    display: inline-block; /* only fill with color the area with text*/
    padding: 10px; /* padding for the background*/
    border-radius: 8px; /* rounded style*/
    opacity: 0.8; /* opacity to show the image under the text*/
}
/* navigation bar */
.navbar ul{
    list-style-type: none; /* remove all styling*/
    background-color: hsl(0, 0%, 49%); /* backgrond color for the bar*/
    padding: 0px;
    margin: 0px;
    overflow: hidden; /* show the background*/
}
.navbar a{
    color: white; /* text color*/
    text-decoration: none; /* text styling to plain*/
    padding: 15px;
    display: block; /* add more size*/
    text-align: center; /* allign text to center of a block*/
}
/* highlight hovered button */
.navbar a:hover{
    background-color: hsl(0, 1%, 30%);
}
/* allign content to start from left*/
.navbar li{
    float: left;
}
.navbar {
    position: fixed; /* show navbar all times*/
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Makes sure it's above other elements */
}
/* computer screen query*/
@media screen and (min-width: 1200px) {
    .gallery {
        display: flex;
        flex-direction: row; /* on computer the images allign side by side */
        justify-content: center; /* allign center*/
        align-items: flex-start;
      }

      .gallery img {
        width: 300px; /* on computer fixed image width */
        height: auto;
      }
}
/* tablet query*/
@media screen and (min-width: 700px) {
    .column { /* cut to 66% of size*/
        -ms-flex: 66%;
        flex: 66%;
        max-width: 66%
    }
}
/* mobile phone query*/
@media screen and (min-width: 0px) {
    .column { /* cut to 33% of size*/
        -ms-flex: 33%;
        flex: 33%;
        max-width: 33%;
    }
}