/**********************************************************************/
/* STYLE SETTINGS FOR THE WEB PAGE FOR THE GAME "L I F T"             */
/* GAME BY TEAMGGAMES                                                 */
/* WEB PAGE BY SEPPO GRUBERT AND DMITRY NAZAROV                       */
/* SOME NAMES OF CONTAINERS MAY NOT SEEM VERY LOGICAL,                */
/* THIS IS BECAUSE THE CSS WAS WRITTEN FIRST AS A TEMPLATE AND THEN   */
/* ADAPTED TO THE NEEDS OF THE CURRENT PROJECT.                       */
/**********************************************************************/

/* Styles common for all viewports */

/* The font used on the web page */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Oswald:wght@200..700&display=swap');

/* The settings concerning the whole html*/
html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

/* body style*/
body {
    margin-top: 70px;
    font-family: "Oswald", sans-serif;
    font-weight: bold;
    font-style: normal;
    color: rgb(237, 235, 235);
    background-color: #343534;
    font-size: xx-large;
}

/* footer font and background style*/
footer {
    font-weight: 100;
    background-image: radial-gradient( #343534, #2b2929);
    opacity: 50%;
}

/* Scale of how big the pictures in the gallery element become when hovering on it. */
#gallery img:hover, #galleryFI img:hover {
    transform: scale(1.5);
}

/* Hovering over image causes it to become larger. This is the transition smoothness. */
img {
  transition: transform 0.3s ease-in-out;
}

/* The heading of the document, concerns the text L I F T */
.bigheading {
    font-size: 10rem;
}

/* Sets the image gallery pictures in the middle of the screen */
#gallery, #galleryFI {
  width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Remove borders from youtube player */
iframe {
  border-style: none;
  aspect-ratio: 16/9;
}

/* Sets the tailer in the middle of the screen */
#trailer, #trailerFI {
  width: 840px;
  margin-left: auto;
  margin-right: auto;
}

/* Styles of various elements of the page*/
p {
  font-weight: 100;
}
ul li {
  font-weight: 100;
  font-size: 2rem;
}
a {
  color: white;
  text-decoration: none;
}
a:hover {
  color: black;
}



/* Styles the button element */
button {
  width: fit-content;
  height: fit-content;
  background: none;
  border: none;
  margin-top: auto;
  margin-bottom: auto;
}

/* Styles the contents of the button class div*/
.button {
  background-color: green;
  color: white;
  font-weight: bold;
  padding: 10px 10px;
  margin: 20px 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Set English as the default language */
#finnish {
  display: none;
}

/* Style for mobile viewport */
@media all and (max-width: 1000px) {

/* A smaller grid area for smaller screens */
  .container {
    display: grid;
    grid-template-areas:
      "header"
      "maincontent"
      "footer";
      grid-template-columns: 100%;
}

/* Adjust the font size for the button in  mobile viewport to be a bit larger */
.button {
  font-size: 6rem;
}

/* Make the header the whole screen wide */
#header {
width: 100%;
}

/* Adjust the font sixe of the "L I F T" text */
.bigheading {
  font-size: 15rem;
}

/* Set the picture as a background image for the web page's  maincontent area*/
#maincontent, #maincontentFI{
  grid-area: maincontent;
  background-image: url("lift_pics/background_image.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

/* footer container is set to footer area. Also placement of the contents */
footer {
  grid-area: footer;
  display: flex;
  text-align: center;
  flex-direction: column;
  height: auto;
  padding: 20px 10px;
  gap: 10px;
  font-size: 3rem;
}

/* Styles for the navigation bar holding the teamg logo and the burger menu */
.navbar {
  background-color: #9c190f;
  grid-area: header;
  padding: 15px;
}

/* Placement of the burger menu*/
.navbar .burgerMenu {
  float: right;
}

/*navbar link styles */
.navbar a {
  color: rgb(255, 255, 255);
  padding: 14px 16px;
  text-decoration: none;
  font-size: 4rem;
  display: block;
  text-align: right;
  font-weight: 200;
}
.navbar a:hover {
  color: black;
}
/* Remove list style dots from links */
#mySiteMap ul, #mySiteMapFI ul {
  list-style-type: none;
}

/* Ovverride the heading size */
h2 {
  font-size: 4rem;
}

/* Limit the width of the paragraphs a little */
p {
  width: 100%;
  font-size: 3rem;
}

 ul li{
  font-size: 3rem;
}

/* The burger menu is defined here, width, height, color, spaces in between, and transition time */
.bar1, .bar2, .bar3 {
  width: 70px;
  height: 10px;
  background-color: #333;
  margin: 12px;
  transition: 0.4s;
}

/* The burger menu (three horizontal lines) will change to three vertical lines when it is */
/* Clicked and the links are sheown. The following stykes define */
/* how the transition looks. */

/* bar1 is rotated upright */
/* The position needs to be slightly adjusted too */
.change .bar1 {
  transform: rotate(-90deg) translate(-24px, 25px);
}

/* bar 2 is is rotated upright */
/* Also the position is adjusted */
.change .bar2 {
  transform: rotate(-90deg) translate(-2px, 0px);
}

/* bar3 is rotated upright */
/* Also the position is adjusted */
.change .bar3 {
  transform: rotate(90deg) translate(-20px, 25px);
}

/* Set the upper navigation bar invisible for mobile viewport */
.palkki {
    display: none;
}

}


/* Style for larger screens*/
@media all and (min-width: 1000px)

{
/* A differnet grid is laid out for larger screens */
  .container {
    display: grid;
    grid-template-areas:
      "header header header"
      "sidearealeft maincontent sidearearight"
      "footer footer footer";
    grid-template-columns: 1fr 10fr 1fr;
  }

/* Set the grid areas in place on the html divs */
.header {
    grid-area: header;
  }

.sidearealeft {
    grid-area: sidearealeft;
}

.sidearearight {
    grid-area: sidearearight;
}

/* Also sets the background ikmage of the page */
  #maincontent, #maincontentFI {
    grid-area: maincontent;
    background-image: url("lift_pics/background_image.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    font-size: 35px;
}

/* p element is made screenwide */
p {
    width: 100%;
}

/* Margin between the differnt main parts of the page */
#gallery, #galleryFI{
    margin-top: 200px;
}

/* Styles of the images in the gallery*/
#gallery img, #galleryFI img {
  padding: 10px;
}

/* Margin between the differnt main parts of the page */
#story, #storyFI {
    margin-top: 200px;
  }

/* Margin between the differnt main parts of the page */
#team, #teamFI {
    margin-top: 200px;
  }

/* Margin between the differnt main parts of the page. Also centers the youtube player. */
#trailer, #trailerFI {
    margin-top: 200px;
    margin-bottom:200px;
    width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

/* set footer div in the footer area of the grid*/
  footer {
    grid-area: footer;
    display: flex;
    text-align: center;
    justify-content: space-evenly;
}

/* Set the mobile navbar invisible*/
.navbar  {
  display: none;
}

/* Main navbar styles */
.palkki {
    width: 100%;
    display: flex;
    justify-content: space-around;
    position: fixed;
    top: 0;
    background-color: #9c190f;
    font-weight: 200;
}

/* team g logo image styles. */
.logoimage {
    cursor: default;
    padding: 20px;
}

  /* styles of links in the palkki container. */
.alasvalikko{
    font-size: 1.5rem;
    padding: 20px;
    float: right;
    border-width: 0.5px;
    border-style: hidden solid hidden solid;
    border-color: rgba(0, 0, 0, 0.396);
}

}