@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

body {
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #30221d;
    background-image: url('./cdn/img/background.webp');
	background-position: center top;
	background-size: 100%;
    text-align: center;
    font-family: "Nunito", sans-serif;
    font-size: large;
    color: white;
}
body.easteregg {
    cursor: url(./cdn/img/easteregg_04.png), auto;
}
#cloud {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(8px);
    background-color: #30221d59;
    /* minus 40 pixels because of the padding */
    width: calc(1024px - 40px);
    border-radius: 16px;
    padding: 20px;
    padding-bottom: 20px;
    @media screen and (max-width: 1064px) {
        width: calc(90% - 40px);
    }
}
#snackbar {
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
    max-width: 90%;
    background-color: #30221d;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 20px;
    position: fixed;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 32px;
    z-index: -1;
    font-size: x-large;
}
#snackbar.show {
    opacity: 1;
}
#buttons {
    width: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0);
}
button {
    padding: 16px;
    border-radius: 12px;
    border: 0;
    background-color: #3f2920;
    color: white;
    font-weight: 700;
    font-family: "Nunito", sans-serif;
    font-size: large;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    gap: 4px;
}
button:hover {
    background-color: #52352a;
}
button:active {
    background-color: #724b3c;
}
a {
    color: rgb(255, 255, 255);
    background-color: transparent;
    text-decoration: none;
}

#status {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}
.status-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.closebtn {
    font-family: 'Courier New', Courier, monospace;
    font-size: 4em;
    position: absolute;
    top: 0;
    right: 15px;
    cursor: pointer;
    transition: all 0.1s;
}
.closebtn:hover {
    text-shadow: 0 0 5px #fafafa;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #00000059;
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease-in-out;
}

#statusmodal {
    opacity: 0;
    display: flex;
    z-index: -1;
}
#statusmodal.open {
    opacity: 1;
}
#statusmodal-inner {
    background-color: #30221d;
    padding: 20px;
    border-radius: 12px;
    max-width: 45vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
#statusmodal-title {
    font-size: 36px;
    font-weight: bold;
}
#statusmodal-btn {
    margin-top: 20px;
}
#statusmodal table {
    text-align: left;
    border-spacing: 8px 0;
}

#statusmodal-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#statusmodal-playerinfo-container {
    overflow: scroll;
    max-height: 100%;
}
#statusmodal-playerinfo {
	display: grid;
	grid-template-columns: auto min-content;
	width: 100%;
	text-align: left;
	padding: 0 8px;
	box-sizing: border-box;
    overflow: hidden;
}
#statusmodal-playerinfo div {
	text-overflow: ellipsis;
	overflow-x: hidden;
}

@media screen and (max-width: 720px) {
    #statusmodal-inner {
        max-width: calc(100vw - 186px);
    }
}
@media screen and (max-width: 510px) {
    #statusmodal-inner {
        max-width: calc(100vw - 70px);
        max-height: calc(100vh - 204px);
    }
}