html {
    font-size: clamp(14px, 1.2vw + 10px, 18px);
}

body {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.6;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

h2 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

h4 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: clamp(0.9rem, 2vw, 1.25rem);
}

h6 {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

p {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
}

small {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
}

a {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
}

button,
.button_0,
.button_1,
.login_btn,
.redeembtn,
#submit_btn,
#delete-account-btn,
.dispose-btn {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
}

input,
select,
textarea {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
}

label {
    font-size: clamp(0.9rem, 1vw, 1rem);
}

li {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
}

blockquote {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
}

code,
pre {
    font-size: clamp(0.85rem, 1vw, 1rem);
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1025px) {
    html {
        font-size: 18px;
    }
}

@media (min-width: 1440px) {
    html {
        font-size: 20px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    html {
        font-size: 13px;
    }
}
.shadow {
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
}

@font-face {
    font-family: 'PixelOperator';
    src: url('pixel_operator/PixelOperator.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PixelOperatorBold';
    src: url('pixel_operator/PixelOperatorBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'PixelOperatorMono';
    src: url('pixel_operator/PixelOperatorMono.ttf') format('truetype');
    font-weight: mono;
    font-style: normal;
}

.innershadow {
    box-shadow: inset 0 0 0.75rem rgba(0,0,0,0.15);
}

.background-container {
    display: flex;
    flex-direction: column;
    margin: 1rem;
    padding: 1rem;
    background-color: white;
}

.col {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-direction: row;
}

.block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 1rem;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    height: auto;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 8px;
    position: absolute;
    z-index: 2;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    white-space: normal;     
    word-wrap: break-word; 
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .tooltip .tooltip-text {
        visibility: hidden;
    }
    
    .tooltip:active .tooltip-text {
        visibility: visible;
        opacity: 1;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    user-select: none;
}

html, body {
    touch-action: pan-x pan-y;  
}

html {
    touch-action: manipulation;  
}

.idk {
    display: block;
    margin: 0;
    width: 100%;
}

.phone-navi {
    display: none;
}

.idk #desktop-warning {
    display: none;
}

.easter {
    display: none; 
}

#container {
    width: 100%;
    height: 100vh; 
    margin: 0;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    text-align: center;
}

/*slides*/
.slides{
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0.9375rem; 
    margin: 1rem;
    height: 300px;
}

.slides a {
    display: block;
    width: 100%;
}

.mySlides{
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover; 
    display: none;
    border-radius: 0.9375rem;
    position: absolute;
}

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

.slide-out {
    animation: slideOut 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0.5;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0.5;
        transform: translateX(-100%);
    }
}

@media (min-width: 768px) {
    body {
        background-color: grey;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .idk {
        display: flex;
        flex-direction: column;
        margin: 0 auto;
        max-width: 32rem;
        align-items: center;
    }

    .idk #desktop-warning {
        display: block;
        border-radius: 0.5rem;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .phone-navi {
        display: flex;
        flex-direction: row;
        background-color: black;
        color: white;
        border-bottom-left-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
        justify-content: space-evenly;
        padding: 1rem;
        width: 53.5vh;
        align-items: center;
    }
    
    .phone-btn {
        filter: invert();
        width: 6%;
    }

    .phone-btn:hover {
        cursor: pointer;
    }

    img.phone-btn[alt='home-btn']{
        height: 5%;
        width: 5%;
    }

    .easter {
        display: flex;
        color: white;
        flex-direction: column;
        margin-right: 1rem;
        width: auto;
    }
    
    #container {
        aspect-ratio: 9 / 16;
        width: 53.5vh;
        height: 90vh;
        border: 0.5rem solid black;
        border-radius: 0.5rem;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

.text {
    color: #ffa4a4;
}

#credit {
    text-decoration: none;
}

#credit p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.25rem;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid black;
    color: black;
    border-radius: 999px;
    width: 2rem;
    height: 2rem;
    transition: all 0.2s ease;
}

#credit p:hover {
    color: grey;
    border-color: grey;
}

.background {
    background-color: #FCF9EA;
}

.foreground {
    background-color: #badfdb;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    height: 80%;
    margin: auto;
    border-radius: 1.5rem;
}

.button_0 {
    background-color: #ffbdbd;
    border: none;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    display: inline-block;
    cursor: pointer;
}

.button_1 {
    background-color: #ffa4a4;
    border: none;
    color: white;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    display: inline-block;
    cursor: pointer;
}

.button_1:hover {
    background-color: #ffbdbd;
}

#input-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
}

#item_name {
    font-size: 1.5rem;
    width: 90%;
    height: fit-content;
    border: none;
    padding: 0.5rem;
}

#dispose {
    font-size: 1.5rem;
    width: 90%;
    height: fit-content;
    border: none;
    margin-top: 4rem;
    padding: 0.5rem;
}

#camera {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(3.4375rem, 15vw, 4.6875rem);
    height: clamp(3.4375rem, 15vw, 4.6875rem);
    background-color: #ffa4a4;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    margin: 1.25rem auto;
}

#camera img {
    width: clamp(1.75rem, 8vw, 2.375rem);
    height: clamp(1.75rem, 8vw, 2.375rem);
    object-fit: contain;
    filter: brightness(0) invert(1);
}

#history {
    font-size: 1.25rem;
    padding: 0.5rem;
}

#header {
    background-color: #badfdb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 8vh;
    box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.543);
    position: relative;
    padding: 0.5rem 0;
}

#header #logo {
    padding: 0.5rem;
    width: 3.125rem; 
    height: auto;
}

#header #logo-binwise {
    padding: 0.5rem;
    width: 8rem;
    margin: auto;
    height: auto;
}

@media (min-width: 768px) {
    #header img {
        width: 15%; 
    }
}

#title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
    color: black;
}

.login_container {
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-top: 1.5rem;
    background-color: #e0e0e0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 25rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);

}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 1rem;
}

#footer {
    background-color: #badfdb;
    padding: 0.5rem 0.75rem;
    margin-top: auto;
    box-shadow: 0 -0.25rem 0.25rem rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
}

#nav-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

#nav-footer a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.75rem;
    flex: 1;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

#nav-footer a:active {
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-btn {
    width: 1.5rem;
    height: 1.5rem;
    transform: scale(0.9);
    object-fit: contain;
    display: block;
    padding: 0.15rem;
}

.footer-selected {
    opacity: 1;
    padding: 0rem;
    transform: scale(1.2);
}

@media (min-width: 400px) {
    .footer-btn {
        width: 1.75rem;
        height: 1.75rem;
    }
}

@media (max-width: 360px) {
    .footer-btn {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    #footer {
        padding: 0.375rem 0.5rem;
    }
}

.login_btn {
    text-decoration: none;
    color: black;
    font-size: x-large;
    margin: 0.5rem;
    padding: 1rem;
    text-align: center;
    background-color: white;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.login_btn:hover {
    background-color: #badfdb;
}

.spacing {
    height: 2.25rem;
    margin: 1rem;
}

.home {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    margin: auto;
    margin-top: 1rem;
}

.greetings {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 1rem auto;
    align-items: center;
    padding: 1rem;
    padding-bottom: 0;
    width: 90%;
}

#xp {
    color: white;
    background-color: #ffa4a4;
    border-radius: 1rem;
    padding: 0.5rem;
}

.quest {
    background-color: #e0e0e0;
    margin: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
}

.quest h2 {
    margin: 0;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.subtitle {
    text-align: center;
    font-size: 1.5rem;
}

.login_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #e0e0e0;
    margin: 2rem auto;
    border-radius: 1rem;
    padding: 1.5rem;
    width: fit-content;
}

.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 0;
}


input, button, select, textarea {
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

input {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 0.0625rem solid #ddd;
    width: 100%;
    max-width: 18.75rem;
    box-shadow: inset 0 0 0.75rem rgba(0, 0, 0, 0.1);
}

#dev-log {
    display: none;
}

@media (min-width: 768px) {
    #dev-log {
        display: block;
        position: fixed;
        bottom: 1.25rem;
        right: 1.25rem;
        background: #2d2d2d;
        border-radius: 0.75rem;
        padding: 0.5rem 1rem;
        font-family: 'Courier New', monospace;
        font-size: 0.75rem;
        z-index: 9999;
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
        border-left: 0.25rem solid #ffa4a4;
        max-width: 21.875rem;
        backdrop-filter: blur(0.5rem);
        background: rgba(45, 45, 45, 0.95);
        user-select: none;
        color: white;
    }
    
    #dev-log pre {
        display: none;
        margin: 0.5rem 0 0 0;
        padding: 0.5rem;
        background: #1e1e1e;
        border-radius: 0.375rem;
        overflow-x: auto;
        font-size: 0.6875rem;
        color: #00ff9d;
    }
    
    #dev-log .dev-title {
        color: #ffa4a4;
        font-weight: bold;
        margin-bottom: 0.5rem;
        font-size: 0.8125rem;
    }
    
    #dev-log.collapsed {
        padding: 0.75rem 1rem;
    }
    
    #dev-log.collapsed pre {
        display: block;
    }
    
    #dev-log .toggle {
        cursor: pointer;
        float: right;
        color: #ffa4a4;
    }
}

.destroy-session {
    display: block;
    background: #ff4444;
    color: white;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    text-align: center;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
    font-weight: bold;
}

.destroy-session:hover {
    background: #cc0000;
    transform: scale(1.02);
}

.destroy-session:active {
    transform: scale(0.98);
}

#prize-bigger-container {
    background-color: #ffa4a4;
    margin: 0 auto;
    width: 80%;
    border: 0.0625rem solid black;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

#prize-container {
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    overflow-y: auto;
}

.prize-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}


.prize-block{
    display: flex;
    flex-direction: column;
    width: 50%;
    aspect-ratio: 1 / 1;
    height: auto;
    color: black;
    padding: 1rem;
    background-color: whitesmoke;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.prize-block:hover {
    background-color: white;
    transform: scale(1.01);
}

.prize-block:active {
    transform: scale(0.98);
}

.prize-block .image-container {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}

.prize-block .text-container {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0 0 0;
}

.prize-block img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.prize-name {
    font-weight: bold;
    font-size: clamp(0.75rem, 4vw, 1rem);
    word-wrap: break-word;
}

.prize-xp {
    font-size: clamp(0.625rem, 3vw, 0.75rem);
    color: #2d2d2d;
}

#prize-filter-section {
    margin-left: auto;
}

#prize-filter {
    padding: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0.5rem;
    background-color: whitesmoke;
    transition: all 0.3s ease;
}

#prize-filter:hover {
    background-color: white;
}

#profile-container {
    margin: auto;
    margin-bottom: 15%;
    background-color: white;
    width: 75%;
    height: 75%;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

#profile-picture {
    width: min(30vw, 9.375rem, 30vh);
    height: min(30vw, 9.375rem, 30vh);
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    background-color: white;
    border: 0.25rem solid white;
    transform: translateY(-50%);
}

.prize-insufficient {
    display: none;
    /* background-color: grey; */
}

.prize-insufficient:hover {
    background-color: grey;
    transform: none;
    cursor: default;
}
.profile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: row;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1rem;
    transform: translateY(-40%);
}

.profile-block {
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    color: black;
    padding: 0.25rem;
    background-color: whitesmoke;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

.profile-block:hover {
    /* transform: scale(1.05); */
    background-color: white;
}

.profile-block img {
    width: 25%;
    margin: 1rem auto;
}

.profile-block .xp {
    color: limegreen;
}

.profile-center {
    justify-content: center;
}

.profile-edit:hover {
    background-color: #00ff9d;
}

.profile-logout:hover {
    background-color: #ff4444;
}

/* Edit Account */
#edit-box {
    display: flex;
    flex-direction: column;
    margin: 2rem auto;
    width: 100%;
    height: fit-content;
}

.prev-btn {
    background-color: white;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    aspect-ratio: 1 / 1;
    width: clamp(2.5rem, 10vw, 3.5rem);
    height: auto;
    border-radius: 50%;
    text-decoration: none;
    text-align: center;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem;
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    transition: all 0.3s ease;
}

.prev-btn:active {
    transform: scale(0.90);
}

.prev-btn:hover {
    background-color: whitesmoke;
    transform: scale(1.03);
}

.edit-prev-btn {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

#edit-container {
    margin: 0 auto;
    background-color: white;
    width: 80%;
    height: fit-content;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 0.25rem;
    padding: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

#edit-container .danger:hover {
    background-color: crimson;
}

.edit-row {
    display: flex;
    flex-direction: row;
    background-color: whitesmoke;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    justify-content: space-between;
    padding: 1rem;
    margin: 0;
    text-decoration: none;
    color: black;
    align-items: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.edit-row:hover {
    cursor: pointer;
    background-color: white;
}

.edit-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

#edit-profile-picture {
    width: min(15vw, 4.6875rem, 15vh);
    height: min(15vw, 4.6875rem, 15vh);
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.profile-picture {
    width: min(15vw, 4.6875rem, 15vh);
    height: min(15vw, 4.6875rem, 15vh);
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    margin: 1rem auto;
}

.profile-picture-scaled {
    width: min(30vw, 9.375rem, 30vh);
    height: min(30vw, 9.375rem, 30vh);
}

.danger {
    background-color: #ff4444;
    color: white;
}

.edit-center {
    justify-content: center;
}

.invert {
    filter: brightness(0) invert(1);
}

/* Delete Account Confirmation */
.delete-confirm-container {
    display: flex;
    flex-direction: column;
    width: 80%;
    align-items: center;
    justify-content: center;
    margin: auto;
    gap: 16px;
    background-color: white;
    border-radius: 16px;
    padding: 16px;
}

.delete-confirm {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-confirm input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #ff4444;
}

.delete-confirm label {
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    line-height: 1.2;
}

/*edit_profile_page.php*/


#edit-profile-page-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;

}

#edit-profile-page-container{
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 25rem;
    margin: 1.25rem auto;
    padding: 1.25rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
    
}

#submit-row {
    display: flex;
    flex-direction: row;
    width: 90%;
}

#edit-profile-page-container form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#profile_picture{
    margin-bottom:1.25rem;
}
#submit_btn{
    color:#000000;
    transition: all 0.3s ease;
    background-color: #00ff9d;
    width: fit-content;
    margin-left: auto;
}

#submit_btn:hover {
    background-color: #00ce7f;
    transform: scale(1.01);
}

.shikanoko {
    margin: 1.25rem auto;
    width: 90%;
}

/* redeem_prize */

.redeem-container {  
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 25rem;
    margin: 1.25rem auto;
    padding: 1.25rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
}

.redeem-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Maintains aspect ratio */
    display: block;
}

.redeem-prize-img {
    flex: 2; /* Takes 2/3 of space */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0; /* Important for flex overflow */
}

.redeembtn {
    color:#000000;
    transition: all 0.3s ease;
    background-color: #00ff9d;
   
}

.redeembtn:hover {
    background-color: #00ce7f;
    transform: scale(1.01);
}

/*redeemed*/

.success-img{
    flex: 2; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0; 
}

.success-img img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain; 
    display: block;
}
.confirm {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 25rem;
    margin: 1.25rem auto;
    padding: 1.25rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
}


/* Delete Account */

#delete-account-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 999px;
    width: fit-content;
    padding: 1rem 1.25rem;
}

#delete-account-btn:hover {
    background-color: red;
}

/* Quiz.php */

.quiz-container {
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
    margin: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    gap: 1rem;
}

.question-container {
    background-color: whitesmoke;
    padding: 1rem;
    border-radius: 1rem;
    user-select: none;
    box-shadow: inset 0 0 0.75rem rgba(0, 0, 0, 0.1);
}

.question-option-container {
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.question-option-container label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background-color: rgba(235, 235, 235, 0.355);
    border: 0.125rem solid white;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
    text-align: left;
}

.question-option-container label:hover {
    border: 0.125rem solid #ffa4a4;
}

.question-option-container input[type="radio"] {
    margin: 0;
    padding: 0;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    display: none;
}

.question-option-container label:has(input[type="radio"]:checked) {
    background-color: #ffa4a4;
    color: white;
    border: 0.125rem solid #ffa4a4;
}

.alert {
    padding: 0.9375rem;
    margin: 1rem;
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 0.0625rem solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 0.0625rem solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 0.0625rem solid #ffeeba;
}


/* Responsive adjustments */
@media (max-width: 600px) {
    .quiz-container {
        margin: 0.5rem;
        padding: 0.75rem;
    }
    
    .question-container h3 {
        font-size: 1em;
    }
    
    button {
        padding: 0.5rem 1rem !important;
    }
}

.quiz-info-container {
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
    margin: 2rem 1rem;
    padding: 1rem;
    border-radius: 1rem;
    gap: 1rem;   
    align-items: center;
    justify-content: center;
}

.quiz-attempts-failed {
    background-color: whitesmoke;
    box-shadow:inset 0 0 0.75rem rgba(0,0,0,0.15);
    width: fit-content;
    padding: 1rem;
    border-radius: 1rem;
    cursor: not-allowed;
    user-select: none;
    width: 100%;
}

.quiz-info-container a {
    background-color: #00ff9d;
    padding: 1rem;
    border-radius: 1rem;
    text-decoration: none;
    color: black;
    transition: all 0.2s ease;
    width: 100%;
}

.quiz-info-container a:hover {
    background-color: #00ce7f;
}

.quiz-info-container .view-quiz-history {
    background-color: #ffbdbd;
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    text-decoration: none;
    color: black;
    transition: all 0.2s ease;
}

.quiz-info-container .view-quiz-history:hover {
    background-color: #ffa4a4;
}

.quiz-history-row {
    justify-content: space-between;
}

.quiz-history-row .block {
    border-radius: 0;
    width: 100%;
    padding: 1rem;
    border: 0.0625rem solid black;
}

.quiz-history-row .header {
    border-radius: 0;
    border: 0.0625rem solid black;
    background-color: black;
    color: white;
}

.quiz-history-container {
    justify-content: space-between;
    padding: 2rem;
    border-radius: 1rem;
}

/* Teachablemachine */

.scan-container {
    background-color: #fcf9ea;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
    min-height: 100%;
}

.guest-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.625rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.upload-section {
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-top: 1.5rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 25rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.upload-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin: 1.25rem 0;
}

.upload-btn, .camera-btn, .history-btn {
    text-decoration: none;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.upload-btn { 
    background-color: #badfdb; 
    color: #333; 
}

.camera-btn { 
    background-color: #ffa4a4; 
    color: white; 
}

.upload-btn:active, .camera-btn:active, .history-btn:active {
    transform: scale(0.98);
}

.image-preview {
    margin: 1.25rem 0;
}

.image-preview img {
    max-width: 100%;
    max-height: 21.875rem;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
}

/* Results Container - Single Card */
.results-container {
    background-color: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
    margin-bottom: 1rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.9375rem;
    padding-bottom: 0.625rem;
    border-bottom: 0.125rem solid #f0f0f0;
}

.result-title { 
    font-weight: bold; 
    font-size: 1.125rem; 
    color: #333;
    text-align: center; 
}

/* Uploaded Image Section */
.result-image {
    width: 100%;
    max-width: 18.75rem;
    height: auto;
    border-radius: 1rem;
    display: block;
    margin: 0 auto 1.25rem auto;
}

/* Category and Detailed Type Row */
.category-detailed {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 0.0625rem solid #eee;
}

.category-item, .detailed-item {
    flex: 1;
    min-width: 12.5rem;
    text-align: center;
}

.section-header {
    font-weight: bold;
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.125rem solid #ffa4a4;
    display: inline-block;
}

/* Classification Content */
.classification {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.waste-icon { 
    font-size: 4rem; 
}

.waste-details { 
    text-align: center; 
    width: 100%;
}

.waste-details strong { 
    font-size: 1.25rem; 
    display: block; 
    margin-bottom: 0.5rem;
    color: #333;
}

.confidence { 
    font-size: 0.875rem; 
    color: #666; 
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 0.5rem;
    background-color: #e0e0e0;
    border-radius: 0.25rem;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    height: 100%;
    background-color: #ffa4a4;
    border-radius: 0.25rem;
    transition: width 0.5s ease;
}

/* Disposal Section - Inside same container */
.disposal-section {
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: left;
}

.disposal-section .section-header {
    display: block;
    text-align: center;
    margin-bottom: 1.25rem;
}

.disposal-info {
    line-height: 1.6;
}

.bin-icon { 
    font-size: 2rem; 
}

.recycling-tips ul {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.recycling-tips li { 
    margin: 0.3125rem 0; 
}

.environmental-impact {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #e8f5e9;
    border-radius: 0.75rem;
}

/* New Scan Button */
.new-scan-btn {
    width: 100%;
    padding: 0.875rem;
    background-color: #badfdb;
    color: #333;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.2s ease;
}

.new-scan-btn:active {
    transform: scale(0.98);
}

/* Loading */
.loading {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 1.5rem;
}

.spinner {
    width: 3.125rem;
    height: 3.125rem;
    border: 0.25rem solid #e0e0e0;
    border-top-color: #ffa4a4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-small {
    text-align: center;
    padding: 1.25rem;
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    .category-detailed {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .results-container {
        padding: 1.25rem;
    }
}

/* Bin Type Styling */
.bin-type-container {
    text-align: center;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 1rem;
}

.bin-image {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.bin-name {
    font-size: 1.125rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.bin-description {
    font-size: 0.875rem;
    color: #666;
}

/* Disposal Grid */
.disposal-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bin-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.bin-card:hover {
    transform: translateX(0.3125rem);
    background-color: #e8f5e9;
}

.bin-card-image {
    width: 3.75rem;
    height: 3.75rem;
    object-fit: contain;
}

.bin-card-info {
    flex: 1;
}

.bin-card-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.bin-card-desc {
    font-size: 0.8125rem;
    color: #666;
}

.history-btn {
    background-color: #333;
    color: white;
}

/* Scan history */

.scan-history-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1rem;
    border-radius: 1rem;
}

.scan-history-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-decoration: none;
}

.scan-history-block {
    display: flex;
    flex-direction: row;
    background-color: whitesmoke;
    padding: 1rem;
    width: 100%;
    text-align: center;
    align-items: center;
    text-decoration: none;
    color: black;
    transition: all 0.2s ease;
}

.scan-history-block-invert {
    background-color: #1e1e1e;
    color: white;
}


/* Image Container Styles */
.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    background-color: var(--pink-secondary);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

/* Fixed aspect ratio (like 16:9 for landscape) */
.image-container-16x9 {
    aspect-ratio: 16 / 9;
}

.image-container-4x3 {
    aspect-ratio: 4 / 3;
}

.image-container-1x1 {
    aspect-ratio: 1 / 1;
}

/* The actual image */
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This prevents stretching */
    object-position: center; /* Centers the image */
    display: block;
}

/* Alternative: contain (shows entire image with possible letterboxing) */
.image-container-contain img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Variant with overlay text */
.image-container .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 1.25rem;
    border-radius: 0 0 1rem 1rem;
}

/* Game.php */

.game-container {
    display: flex;
    flex-direction: column;
    height: 90%;
    width: 90%;
    margin: 2rem auto;
    padding: 0;
    border-radius: 1rem;
    background-color: white;
    border: 2px solid black;
    box-shadow: 4px 4px 0px black;
    padding: 1rem;
    justify-content: space-between;
}

.game-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    border-radius: 999px;
}

.game-navi {
    width: 4rem;
    height: 4rem;
    background-color: white;
    border: 2px solid grey;
    box-shadow: 4px 4px 0px grey;
    transition: all 0.3s ease;
    border-radius: 999px;
    margin: 0rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-navi strong {
    font-size: 1.5rem;
    padding: 1rem;
}

.game-navi:active {
    transform: scale(0.98);
    background-color: #ccc;
}

.game-title {
    text-decoration: none;
    color: white;
    height: 100%;
    background-color: #cc0000;
    border: 2px solid #721c24;
    box-shadow: 4px 4px 0px #721c24;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 999px;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    width: 5rem;
    aspect-ratio: 1/1;
}

.game-title:active {
    transform: scale(0.98);
}

.game-poster {
    width: 100%;
    height: 50%;
    margin: 1rem auto 0;
    border-radius: 1rem;
    background-color: black;
    padding: 1rem;
}

.game-poster img {
    height: 100%;
}

#game_desc {
    font-family: 'PixelOperator', monospace;
    font-size: 1.5rem;
    margin: 0.5rem;
    margin-bottom: 0rem;
    height: 10%;
}

@media (max-width: 768px) {
    #game_desc {
        font-size: 1.5rem;
    }
}

.game-points {
    font-family: 'PixelOperator', monospace;
    font-size: 1.5rem;
    background-color: black;
    color: #00ff9d;
    width: fit-content;
    margin: 1rem auto 0rem;
    border-radius: 1rem;
    padding: 0.5rem;
}

.game-points .tooltip-text {
    font-size: 1rem;
}

/* Portrait warning - shown when in landscape on mobile */
#portraitMessage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a3524, #0d2c1b);
    color: #ffea9e;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10000;
    font-family: monospace;
    font-size: 1.2rem;
}

@media (orientation: landscape) and (max-device-width: 768px) {
    #portraitMessage {
        display: flex;
    }
    
    /* Hide your main content when in landscape */
    .game-box, #container, .home, .scan-container, .quiz-container, .page-content {
        display: none;
    }
}

/* Dispose Button Styles */
.dispose-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ffa4a4, #ff8a8a);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.dispose-btn:active {
    transform: scale(0.98);
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1);
}

.dispose-btn:hover {
    background: linear-gradient(135deg, #ff8a8a, #ff7070);
    transform: translateY(-0.125rem);
}

/* Disposal Locations Container */
.disposal-locations {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-0.625rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.disposal-locations h3 {
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.125rem solid #ffa4a4;
    display: inline-block;
}


.center-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    
}

.center-location,
.center-contact,
.center-day,
.center-hour {
    font-size: 0.9rem;
    color: #444;
    margin: 0.2rem 0;
}

.verify-container {
    margin: auto;
    
}

.verify-container h2 {
    margin-bottom: 1rem;
}

.verify-container button {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background-color: black;
    color: white;
    width: 100%;
    max-width: 18.75rem;
    box-shadow: none;
}

#verify-form {
    background-color: white;
    border-radius: 1rem;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 1rem;
    margin: auto;
    gap: 1rem;
}

#verify-form a {
    color: white;
	background-color: black;
	border-radius: 0.5rem;
    flex: 1;	
    width: 100%;	
	padding: 0.5rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

#verify-form a:hover {
    /* color: black; */
	background-color: grey;
}
