@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap");

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

body {
	background: #000;

	font-family: "Fraunces", serif;
	font-optical-sizing: 150;
	font-style: normal;
	font-variation-settings: "SOFT" 100, "WONK" 1;
}

div.main {
	--space: calc(100vw / 10);
    --yspace: max(var(--space), 130px);
	width: calc(100% - var(--space));
	height: calc(100% - var(--yspace));
	margin: calc(var(--yspace) / 2) calc(var(--space) / 2);
	margin-bottom: 0;

	border: solid #6d0012 8px;
	border-radius: 30px;

    @media only screen and (max-width: 620px) {
        width: 100%;
        height: 100%;
        margin: 0;
        border: none;
    }
}

.menu-container {
	position: absolute;
	top: 0;
	left: 0;
	background: #000;
	padding: 40px 20px 20px 40px;

	.logo-container {
		&:hover img {
			transform: scale(1.1) rotate(-3deg);
			opacity: 1;
		}
		&:active img {
			opacity: 0.7;
			transform: scale(0.9);
		}
		img {
			position: relative;
			width: 180px;

			transition: transform 0.2s, opacity 0.1s;
			opacity: 0.9;
		}
	}
    &.open .menu {
        max-height: 200px;
    }

    @media only screen and (max-width: 620px) {
        position: static;
        width: 100%;
        text-align: center;
    }
}

.menu {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #fff;
    overflow: hidden;
    max-height: 0px;
    transition: max-height 0.3s ease;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    font-family: "Fraunces", serif;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.custom-checkbox:hover {
    opacity: 1;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid #6d0012;
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: #8a001a;
    background-color: rgba(109, 0, 18, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #6d0012;
    border-color: #6d0012;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.reset-memory-btn {
    background: transparent;
    border: 2px solid #6d0012;
    color: #fff;
    font-family: "Fraunces", serif;
    font-size: 1rem;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    opacity: 0.8;
}

.reset-memory-btn:hover {
    background: #6d0012;
    opacity: 1;
    transform: scale(1.02) rotate(-1deg);
}

.reset-memory-btn:active {
    transform: scale(0.98);
}

.custom-checkbox.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}
