body {
    font-family: sans-serif;
    background-color: #1f1f1f;
    background-image: url("/img/PackMates-splash-web.webp");
    background-size: auto;
    background-repeat: no-repeat;
    background-position-y: top 50px;
    background-position-x: center;
    background-attachment: fixed;
    color: #ddd;
    text-align: center;
    margin: 0px;
}

#footer .legal {
    font-style: italic;
    color: #aaa;
    margin: 12px 0 0 0;
}

#nav {
    height: 84px;
    color: white;
    font-weight: bold;
}

#nav .pressbutton {
    float: left;
}

#nav .pressbuttonin, #nav .langselectin, #socials {
    padding: 8px 16px;
    background-color: #49321c;
    border-radius: 5px;
}

#nav a {
    text-decoration: none;
    color: white;
}

#nav .langselect {
    float: right;
}

#nav .langselect img {
    vertical-align: text-top;
    padding-right: 8px;
}

#logo {
    clear: both;
    background-color: rgba(0.05, 0.05, 0.05, 0.6);
    box-shadow: 0 0 5px #1f1f1f;
}

#logo img {
    max-width: 100%;
}

.pixel-border-1 {
    background-color: #b87a3b;
    border-top: 2px solid #d69e63;
    border-right: 2px solid #d69e63;
}

.pixel-border-2 {
    border-left: 2px solid #704015;
    border-bottom: 2px solid #704015;
    padding: 8px;
}

.pixel-border-3 {
    border-top: 4px solid #704015;
    border-right: 4px solid #704015;
}

.pixel-border-4 {
    background-color: #6c4b2a;
    padding: 20px 16px;
    border-left: 4px solid #d69e63;
    border-bottom: 4px solid #d69e63;
}

#nav .pixel-border-4 {
    height: 18px;
}

#footer {
    display: inline-block;
}

#footer .pixel-border-4 {
    padding: 12px 16px;
}

#footer #socials img {
    vertical-align: top;
}

#trailer {
    width: 50%;
    margin: auto;
    padding: 3em 0;
}

#trailer a {
    text-decoration: none;
    color: #ddd;
}

#trailer p {
    background-color: rgba(0.05, 0.05, 0.05, 0.75);
    box-shadow: 0 0 5px #1f1f1f;
    margin: auto;
    text-shadow: 0 0 2px black;
    padding: 0.5em;
    display: inline-block;
}

.game-desc {
    max-width: 70%;
    background-color: rgba(0.05, 0.05, 0.05, 0.75);
    box-shadow: 0 0 5px #1f1f1f;
    margin: auto;
    margin-bottom: 2em;
    text-shadow: 0 0 2px black;
    padding: 0.5em;
}

#gallery {
    text-align: center;
    max-width: 90%;
    margin: auto;
    margin-bottom: 2em;
}

#gallery-show {
    position: relative;
    max-width: 90%;
    overflow: hidden;
    margin: auto;
}

#gallery-big-img {
    box-shadow: 0 0 8px black;
    border: 4px solid black;
    display: block;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.prev-screenshot, .next-screenshot {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.2s ease;
    z-index: 10;
}

.prev-screenshot {
    left: 0;
    justify-content: left;
    padding-left: 5%;
}

.prev-screenshot::before {
    content: '❮';
    font-size: 3em;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.next-screenshot {
    right: 0;
    justify-content: right;
    padding-right: 5%;
}

.next-screenshot::before {
    content: '❯';
    font-size: 3em;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.prev-screenshot:hover, .next-screenshot:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 1);
}

#gallery-show span {
    display: none;
}

#gallery-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    padding: 8px;
    box-sizing: border-box;
    gap: 8px;
    margin: auto;
}

#gallery-nav a {
    text-decoration: none;
    border: 2px solid black;
    box-shadow: 0 0 5px black;
}

#gallery-nav a.current {
    border: 2px solid white;
    box-shadow: 0 0 5px black;
}

#gallery-nav img {
    max-width: 100%;
    height: auto;
    flex: 1;
    vertical-align: text-bottom;
}

@media (orientation: portrait) {
    #steam-widget {
        width: 400px;
    }
}
