/* Hei näin kommentoit css:sää */
/* Laita tänne omat tyylittelyt :D */

/*Background picture (for mobile view) and setting standards.*/
body{
  background-position:center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size:cover;
  background-color:#313E4F;
  font-family: "Annapurna SIL", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  color: #D2DED3;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/*Background picture for desktop view*/
@media (min-width: 680px) {
  .back-image {
    object-fit: cover; 
    max-width: 100%;
    position: absolute; 
    z-index: -1;
}}


.back-image {
  object-fit: fill; 
  max-width: 100%;
  position: absolute; 
  z-index: -1;
}

/*Container for all the elements.*/
.container {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.container2 {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}


@media (min-width: 680px) {
  .container2 {
    flex-direction: column;
    align-items: center;
    margin-bottom: 150px;
  }
}

iframe{
  width: 80%;
  max-width: 600px;
  aspect-ratio: 16/9;
}


.backbox {
  width: 100%;
  height: 2500px;
  background-color:#1A2B1E;
}

@media (min-width: 680px) {
  .backbox {
    width: 100%;
    height: 2500px;
    background-color:#1A2B1E;
  }
}

.navbar {
  visibility: hidden;
  z-index: 2000;
}


.menu{
  visibility: hidden;
}

.menuicon{
  position: fixed;
  top: 40px;
  right: 40px;
}

@media (min-width: 680px) {
  .navbar{
    visibility: visible;
    position: fixed;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    color: #BDC7BE;
  }

  .menuicon{
    visibility: hidden;
  }
}
 
@media (min-width: 680px) {
  .menu{
    visibility: visible;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3em;
    font-size: 20px;
    font-family: Merriweather;
    margin-right: 10%;
  }
}

.textbox{
  display: flex;
  flex-direction: column;
  align-items:start;
  width: 80%;
}

.headerbox {
  display: flex;
  align-items: center;
  width: 50%;
  flex-direction: column;
}

.textbox2 {
  display: flex;
  flex-direction: column;
  width: 80%;
  padding-top: 20px;
  align-items:center;
  text-align: center;
  max-width: 1200px;
}

.div_backgrndimg
{
    background-repeat: repeat-x;
    background-image: url("../source/firstball.png");
    width:100%;
    height: 50px;
}

.div_backgrndimg2
{
    background-repeat: repeat-x;
    background-image: url("../source/secondball.png");
    width:100%;
    height: 50px;
}

.balls {
  background-image:url("../source/Ball.png");
  background-position:center center;
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-size:cover;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%; 
}

img {
  max-width: 300px;
}

h1 {
  color: #D2DED3;
  font-family: "La Belle Aurore", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 50px;
  margin-top: -10px;
}

h2 {
  flex-shrink: 0;
  color: #D2DED3;
  font-size: 20px;
  font-family: "Annapurna SIL", serif;
  font-weight: 400;
  font-style: normal;
}


@media (min-width: 680px) {
  h1{
    font-size: 80px;
    padding-top: 90px;
    margin-top: 60px;
    }

  h2{
    font-size: 30px;
  }
}

.line {
  display: flex;
  flex-direction: column;
  align-items:center;
  width: 80%;
  height: 3px;
  background-color: #D2DED3E3;
  max-width: 1200px;
}


.shadow {
  text-shadow: 2px 2px;
}

.start-button {
  width: 180px;
  flex-shrink: 0;
  border-radius: 19px;
  background: #BDC7BE;
  color: #313E4F;
  font-family: "Work Sans";
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  padding: 8px;
  margin-bottom: 500px;
}

.start-button:hover {
  transform: scale(1.05);
}


a {
  text-decoration: none;
}

a:hover {
  transform: scale(1.05);
  color: #4F5D95;
}

li {
  list-style: none;
}

li:hover {
  transform: scale(1.05);
}

ul {
  list-style: none;
}

a {
  color: #BDC7BE;
}

.footer{
  padding: 3rem;
  background-color:#111217;
}


#view {
  display: none;
  z-index: 1000;
  position: fixed;
  left: 0;
  top: 0;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #313E4F;
}

#fullscreen-version{
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 80%;
  max-height: 80%;
  transform: translate(-50%, -50%);
  animation-name: zoom;
  animation-duration: 0.6s; 
}

#close-button{
  position: absolute;
  top: 45px;
  right: 35px;
  color: whitesmoke;
  background-color: transparent;
  border: none;
  font-size: 40px;
  font-weight: bold;
  transition: 0.2s;
  cursor: pointer;    
}

#close-button:hover {
  color: #99C1B9;
}

.source{
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: 0.3s;   
}

.source:hover {
  transform: scale(1.05);
}


.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.gallery > .container {
  flex-basis: 350px; /*width - 350px*/
  position: relative;
  cursor: pointer;
}

.gallery div li img {
  object-fit: cover;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
  margin: 0 auto;
}

