html, body {
    overflow-x: hidden;
    max-width: 100%;
}

@font-face {
    font-family: Bauhaus;
    src: url(res/fonts/BAUHS93.ttf);
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    background-color: antiquewhite;
    color:rgb(53, 42, 26);
    font-size: 1.5rem;
}

.header{
    display: flex;
    background-color: brown;
    background-image: url(res/uusi-tausta\(cropped\).png);
    align-items: center;
    justify-content: center;
}

.header img {
    filter: drop-shadow(10px 10px 10px rgba(255,255,255,0.5));
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 2rem;
}

h1, h2 {
    font-family: Bauhaus;
    text-transform: uppercase;
}
/* Niina säätää */

#home {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 20px;
    background-color: antiquewhite;
    color: rgb(53, 42, 26);
    gap: 20px;
}

.container {
    display: inline-block;
    cursor: pointer;
}

.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
}

#Menu {
    width: 150px;
    background-color: black;
    display: none;
}

.element {
    cursor: wait;
    color:rgb(7, 61, 37);
}

figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0;
    flex: 1;
    min-width: none;
}

#dev-list {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

figure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10%;
}

.flip-box {
  width: 150px;
  height: 200px;
  perspective: 1000px;
}

.flip-box img {
    border-radius: 30%;
    filter: drop-shadow(0px 0px 10px rgba(0,0,0,0.5));
}

.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner {
  transform: rotateY(180deg);
}

.flip-box-front,
.flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(0deg);
}

.flip-box-back {
  transform: rotateY(180deg);
  background-color: burlywood;
  border-radius: 20%;
  text-align: center;
}

.flip-box-back h4 {
    padding: 4px;
    margin: 4px;
    font-family: Bauhaus;
}

.flip-box-back p {
    padding: 4px;
    margin: 10px;
    font-size: 1.2rem;
}

/* Niinan sekoiluja */
h1, h2 {
    font-family: Bauhaus;
    text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 15px;
    line-height: 1.2;
}

p {
    max-width: 800px;
    margin-bottom: 20px;
}

a {
    color: rgb(131, 49, 17);
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#about {
  max-width: 700px;
  margin: 0 auto;
}

#trailer {
    text-align: center;
}

#Portal {
    text-align: center;
}

#twopage {
    width: 80px;
    height: auto;
}

.langu {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 15px;
}

.trailer-container {
    width: 70%;
    aspect-ratio: 16/9;
}

.trailer-container iframe {
    width: 100%;
    height: 100%; 
}











