html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex; 
  justify-content: center; 
  align-items: center;
  overflow: hidden;
}

#mainbg {
  background-image: url(../images/glossymetal.jpg);
  background-position: center center;
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: auto;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#nestedbg {
  display: flex; 
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url(../images/fadestrip2.png);
  background-repeat: repeat-x;
  background-position: left top;
  width: 100%;
  padding: 1px 0;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

#nestedbgleft {
  text-align: left;
  background-image: url(../images/fadestrip2.png);
  background-repeat: repeat-x;
  background-position: left top;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;  
}

#main-topborder {
  margin: 0 auto;
  width: 100%;
  max-width: 970px;
  height: 40px;
  background-image: url(../images/aaa_top.png);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
 }


#main-container {
	margin: 0 auto;
	width: 100%;
	max-width: 970px;
	max-height: 70%;
	aspect-ratio: 16 / 12;
	background-image: url(../images/aaa_mid.png);
	background-repeat: repeat-y;
	background-size: contain;
	display: flex;
	align-items: center;
	justify-content: center;
}



 #main-logo {
	margin: 0 auto;
	width: 100%;	
	max-width: 100%;
	padding: 0;
	max-height: 90%;
	aspect-ratio: 16 / 12;
	background-image: url(../images/logotrollslanda.png);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}



#main-botborder {
  margin: 0 auto;
  width: 100%;
  max-width: 970px;
  height: 40px;
  background-image: url(../images/aaa_bot.png);
  background-repeat: no-repeat;
  background-position: top;
  background-size: contain;
}



img { 
  border: none; 
  padding: 0;
  margin: 0;
  max-width: 100%;
  height: auto;
}


@media only screen and (max-width: 767px) {
#mainbg {
  background-image: url(../images/glossymetal.jpg);
  background-position: center center;
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: auto;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
#nestedbg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url(../images/fadestrip2.png);
  background-repeat: repeat-x;
  background-position: left top;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
  #main-topborder, 
  #main-container, 
  #main-botborder {
    width: 100%;
    max-width: none;
	min-height: auto;
    padding: 0;
}

  #main-logo {
    max-width: 100%;
	aspect-ratio: 16 / 12;
    height: auto;
    background-size: contain;
  }
  #main-container {
    height: auto;
    width: 100%;
    max-width: none;
  }
}
