html { scroll-behavior: smooth; }

@font-face {
    font-family: "Qest";
    src: url("AvQest.ttf") format("truetype");
}

@font-face {
    font-family: "Fipz";
    src: url("Fipps-Regular.otf") format("truetype");
    -webkit-font-smoothing : none;
}

body{
    background-color: #111111;
    font-family: "Roboto";
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

a {
	text-decoration: none;
	color: rgb(179, 142, 142);
}

#fname {
	width: 610px;
}

.navbar {
    width: 100%;
    font-family: "Fipz";
    font-size: 18px;
    font-weight: 600;
    bottom: 0;
    top: 0;
    -webkit-font-smoothing : none;
    text-align: center;
    background-color: #ffffff;
    position: sticky;
    border-bottom: 1px solid rgb(177, 177, 177);
}

.contable th{
    text-align: left;
    padding: 20px;
    color: white;
}

.contable td{
    margin-top: 20px;
    padding: 20px;
    color: white;
}

.contable tr:nth-child(even)    {
    background-color: rgb(39, 58, 70);
}

.contable tr:nth-child(odd)    {
    background-color: rgb(25, 45, 56);
}

.contable   {
    padding: 20px;
    width: 100%;
}

.teamtable   {
    padding: 20px;
    width: 100%;
}

.homepic    {
    background-image:url("images/bg_new2.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
    /*height: 100%;*/
    color: black;
    margin: auto;
}

.homepic h2{
    font-family: "Qest";
    font-size: 30px;
    text-align: center;
    color:rgb(214, 214, 214);
}

.haluunkotiin {
    /*padding-top:min(17%, 350px);*/
    width: 65%;
    padding-top: 5%;
}

.about {
    font-family: "Roboto";
    background: rgb(26, 26, 26);
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.7) 0%, rgba(0,0,0,1) 11%, rgba(0,0,0,0) 100%);
    border-radius: 20px;
    color: rgb(214, 214, 214);
    margin:auto;
    max-width: 960px;
    height: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 20px;
    padding-top: 20px;
    line-height: 28px;
}

.some tr, td{
    padding-left: 20px;
    padding-top: 20px;
    height: 32px;
}

.some a{
    text-decoration: none;
    color: white;
    font-size: 12px;
}

.homepic h1{
    padding-top: max(17%, 350px);
    padding-left: 0%;
    font-family: "Qest";
    font-size: 48px;
    font-weight: normal;
    text-align: center;
    margin: 0px;
    color:rgb(255, 255, 255);
    text-shadow: 2px 2px black;
}

#logopas {
    margin: inline-block;
    margin: auto;
    padding-top: 128px;
}

.games   {
    background-color: rgb(26, 26, 26);
    color: rgb(214, 214, 214);
    margin:auto;
    max-width: 960px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 20px;
    line-height: 28px;
}

.games h1{
    text-align: center;
    font-family: 'Qest';
    font-size: 42px;
}

.games h2{
    text-align: center;
    font-family: 'Qest';
    font-size: 34px;
}

.games h3{
    text-align: left;
    font-family: 'Qest';
    font-size: 24px;
}

.team   {
    background-color: rgb(214, 214, 214);
    color: rgb(26, 26, 26);
    margin:auto;
    max-width: 960px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 20px;
}

.team h1{
    text-align: center;
    font-family: 'Qest';
    font-size: 42px;
}

.contact   {
    background-color: rgb(26, 26, 26);
    color: rgb(214, 214, 214);
    margin:auto;
    max-width: 960px;
    margin-top: 0px;
    margin-bottom: 30px;
    padding: 20px;
}

.contact h1{
    text-align: center;
    font-family: 'Qest';
    font-size: 42px;
}

ul {
    list-style-type: none;
    margin: 0px;
    padding-right: 15px;
    padding-left: 15px;
    display:flex;
    flex-direction: row;
    justify-content: center;
  }

@media screen and (max-width: 900px)    {
    ul.nav{
        display: none;
        flex-direction: column;
    }
    ul.nav.open {
        display: flex;
    }
    li.nitem    {
        width: 100%;
    }
}

@media screen and (min-width: 20px)    {
    .burger{
        display: none;
    }
    ul.nav  {
        display:flex !important;
        flex-direction: row !important;
        justify-content: center !important;
    }
}

.burger {
    height: 72px;
    background-color: #adadad;
    width: 72px;
    margin-left: auto;
    margin-right: 72px;
    right: 20px;
}

  li a {
    display: block;
    color: rgb(0, 0, 0);
    text-align: center;
    text-decoration: none;
    line-height: 72px;
    padding-right: 40px;
    padding-left: 40px;
  }

  li:hover {
    background-color: #dfdfdf;
  }

  .gli {
      text-shadow: 2px 2px black;
  }
  .gli li:hover {
      background: none;
      background-color: none;
  }

  a:hover{
      color: black;
  }

  #herosiege {
    background-image: url('images/bg_hs.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 60px;
    margin: auto;
    text-shadow: 2px 2px black;
}

#squishy {
    background-image: url('images/squishy_bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    border-top: 5px solid rgb(11, 11, 11);
    padding-top: 20px;
    padding-bottom: 60px;
    margin: auto;
    text-shadow: 2px 2px black;

}

  .centimg {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }