* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --header-height: 55px;
}

.code-editor-container {
    height: 70%;
    overflow: hidden;
    border-radius: 4px;
    width: 100%;
    background: #353535;
    outline: 1px solid #353535;
    margin-bottom: 20px;
}

html {
    height: 100%;
}

body {
    background: rgb(10, 10, 10);
    color: white;
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    height: calc(100vh - var(--header-height));
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #090909;
    padding: 0px 10px;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: left;
    align-items: center;
    overflow-x: scroll;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.header::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}

.troll-logo {
    width: 60px;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.logo {
    font-weight: 700;
    font-size: 30px;
    color: white;
    text-decoration: none;
    padding-right: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

.header-link {
    color: white;
    text-decoration: none;
    padding: 1px 10px 1px 10px;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s;
}

.header-link:hover {
    transform: scale(1.04);
}

.selected {
    color: #8d8dff;
}

.page-content {
    margin-top: var(--header-height);
    padding: 20px;
    height: 100%;
    background: linear-gradient(#0c0c14, #090909);
    transition: opacity 0.2s ease-out;
    opacity: 1;
}

.page-content.fade-out {
    opacity: 0;
}

.button {
    padding: 5px 10px 5px 10px;
	font-weight: 700;
	border: none;
	font-family: "Poppins", sans-serif;
    background-color: #090909;
    border: 1px solid #353535;
	color: white;
	font-size: 24px;
	justify-content: center;
	border-radius: 4px;
    margin: 5px;
    transition: transform 0.2s;
}

.button:hover {
    transform: scale(1.05);
}

.textEditor {
	flex: 1;
	height: 70%;
	width: 100%;
	padding: 20px;
	background-color: rgb(20, 20, 20);
	color: white;
	font-size: 16px;
	border: none;
    border-radius: 4px;
    outline: 1px solid #353535;
	resize: none;
}

.case-switch-container {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px;
}

.ball-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 28px;
}

.ball-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: red;
	transition: 0.4s;
	border-radius: 34px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 22px;
	width: 22px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.4s;
	border-radius: 50%;
}

.ball-switch input:checked+.slider {
	background-color: green;
}

.ball-switch input:checked+.slider:before {
	transform: translateX(22px);
}

.face {
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 12px;
}

.face img {
    display: block;
    image-rendering: pixelated; 
}

.page-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    height: 100%;
    overflow: hidden;
    width: 250px;
    box-shadow: 2px 2px 8px rgb(0 0 0);
    border: 1px solid #353535;
    transition: transform 0.2s;
}

.button-image {
    width: 100%;
    max-height: 120px;
    height: 70%;
    object-fit: cover;
}

.button-name {
    padding: 10px;
    font-weight: bold;
    background-color: #090909;
    width: 100%;
    height: 100%;
}

.cheat-desc-image {
    position: absolute;
    left: 55%;
    width: 40%;
}

.hover-anim:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

@media (max-width: 600px) {
    .logo {
        font-size: 24px;
        display: none;
    }

    main {
        padding: 15px;
    }

    .page-container {
        justify-content: center;
    }

    .button-container {
        width: 80%;
    }
}

@media (max-width: 850px) {
    .cheat-desc-image {
        position: relative;
        width: 90%;
        left: 0%;
    }
}

