@import url('https://fonts.googleapis.com/css2?family=Eczar:wght@400..800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    font-family: "Eczar", serif;
    font-optical-sizing: auto;
}

body {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background-color: #141313;
    background-image: url(URL);
}

.lownav {
    display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 50px;
    cursor:pointer;
	color:#dfdecb;
	font-family:Georgia;
	font-size:20px;
	padding:5px 30px;
	text-decoration:none;
}

	.lownav:hover {
		text-shadow:0px -1px 13px #f5eab6;
		transition-duration: 0.2s;
	}


.viewbox {
    position: relative;
    padding: 30px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 750px;
    width: 800px;
    max-width: 80%;
    background-color: #111111;
    overflow: hidden;
    border: 6px #726c50;
    border-style: double;
    background-image: url(bgs/forest.png); /* Default background */
    background-size: cover; /* Ensure the background fills the viewbox */
    background-repeat: no-repeat;
    background-position: center;
    
}



.container {
    z-index: 1;
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 750px;
    padding: 0;
    margin: 0 auto;
}

.namebox {
    align-self: flex-start;
    margin-left: 75px;
    z-index: 3;
    width:200px;
    max-width: 80%;
    background-color: #bda36a96;
    padding: 4px;
    padding-left: 20px;
    box-shadow: #000000 0 0 10px 2px;
    color:#0c0808;
    font-size: 20px;
}

.textbox {
    z-index: 2;
    width: 750px;
    max-width: 80%;
    background-color: #000000c9;
    padding: 20px;
    border-style: solid;
    border-color:#726c507a;
    box-shadow: #000000 0 0 10px 2px;
    color:#bdb595;
}

.btn-grid {
    display: grid;
    gap:4px;
    margin-top: 20px;
}

.btn {
    width: 40%;
    background-color: #00000025;
    color:#d6cfb4;
    border: none;
    font-size: 16px;
    text-align: left;
    padding-left: 20px;
}

.btn:hover {
    color:#be3d3d;
}

.sprites {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
}

.sprite-character {
    z-index: 1;
    left: 50%;
    background: #726c500a;
    bottom: 60px;
    width: 400px;
    height: 600px;
    background: url(sprites/testsprite.png) no-repeat center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* More stupid mobile stuff omg just use PC */

@media (max-width: 768px) {
    .viewbox {
        width: 360px; 
        height: 640px;
        max-width: none;
        margin: 0 auto;
    }

    .container {
        width: 320px;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
    }

    .textbox {
        width: 300px;
        padding: 10px;
        font-size: 14px;
    }

    .namebox {
        width: 100px;
        margin-left: 8px;
        font-size: 16px;
        padding-left: 12px;
    }

    .btn-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn {
        width: 100%;
        padding: 10px 12px;
        font-size: 16px;
    }

    .sprite-character {
        width: 320px;
        height: 480px; /* ensure background has visible box */
        bottom: 0;
        background-size: contain;
    }

    .lownav {
        font-size: 16px;
        padding: 6px 12px;
        margin-top: 100px;
    }
}


@media (max-width: 480px) {
    .viewbox {
        width: 360px; 
        height: 640px;
        max-width: none;
        margin: 0 auto;
    }

    .container {
        width: 320px;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
    }

    .textbox {
        width: 300px;
        padding: 10px;
        font-size: 14px;
    }

    .namebox {
        width: 100px;
        margin-left: 8px;
        font-size: 16px;
        padding-left: 12px;
    }

    .btn-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn {
        width: 100%;
        padding: 10px 12px;
        font-size: 16px;
    }

    .sprite-character {
        width: 320px;
        height: 480px; /* ensure background has visible box */
        bottom: 0;
        background-size: contain;
    }

    .lownav {
        font-size: 16px;
        padding: 6px 12px;
        margin-top: 100px;
    }
}

