:root {
    --body: #111;
    --back: #3a3a3a;
    --translucent-back: #3a3a3a7b;
    --text: #fff;
    --link: #55f;
}

body {
    background: var(--body);
}
* {
    color: var(--text);
    font-family: sans-serif;
}
a {
    color: var(--link);
}
a:hover {
    filter: brightness(110%);
}

/* Home */
.homebuttons {
    display: flex;
    gap: 20px;
}
#games a {
    position: relative;
    width: 23.5vw;
    height: 24.4vw;
    margin: 0.6vw;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    transition: .2s ease-out;
}
#games a:hover {
    transform: scale(101%);
}
#games a img {
    width: 100%;
    height: 100%;
}
#games a span {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    text-align: center;
    background: var(--translucent-back);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    box-sizing: border-box;
}

/* Play */
body:has(.gamewrap) {
    padding-left: 23vw;
}
.gamewrap {
    width: 50vw;
    height: 28vw;
    position: relative;
}
.gamewrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
}
.gamewrap button#fullscreen {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--back);
}

.desc {
    margin-top: 20px;
    width: 50vw;
    text-wrap-mode: wrap;
}

/* Chat */
#msg {
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
}
#chatform {
    position: fixed;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    display: flex;
}
#chatform input {
    background: var(--back);
    border-radius: 10px;
    width: calc(100% - 50px);
    height: 40px;
}
#chatform button {
    width: 40px;
    height: 40px;
}