* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #272626;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

}

/* Navbar styles */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav a {
    margin: 0 30px;
}

.nav img {
    height: 32px;
}

/* -------------------------------- */



/* Portrait page layout */
.portrait-page {
    display: grid;
    width: 400px;
    padding-top: 3%;
    max-height: 100vh;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Portrait container (for images) */
.portrait-container {
    position: relative;
    width: 400px;
    height: 600px;
}

.portrait-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Control button layout (3x2 grid) */
.controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
    text-align: center;
    grid-gap: 1%;
    width: 400px;
    max-width: 400px;
    margin-top: 1%;
    z-index: 1;
}

/* Control buttons styling */
.control-button {
    width: 100%;
    cursor: pointer;
}

/* Apply mask to the pattern image */
#patternImg {
    mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* Ensure pattern is visible */
}

@media (max-width: 500px) {

    .portrait-page {
        display: grid;
        justify-content: center;
        align-items: center;
        text-align: center;
    
    }
    
    /* Portrait container (for images) */
    .portrait-container {
        position: relative;
        width: 300px;
        height: 450px;
    }
    
    .portrait-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1%;
    width: 300px;
    margin-top: 1%;
    z-index: 1;
}
}