@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@200;400&display=swap');

body {
    background: beige;
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    cursor: pointer;
}

header {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

header a {
    color: black;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}

h1 {
    font-weight: 200;
}

main {
    margin: 0;
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.5em;
    overflow: hidden; 
    min-height: 60vh;
    box-sizing: border-box;
}

p:hover {
    cursor: pointer;
}


.scene-content {
    padding: 20px;
    max-width: 800px; 
}


main .hidden-text {
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 3px;
}

#camera-viewfinder {
    position: absolute;
    width: 250px;
    height: 200px;
    border: 3px solid black;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10;
    border-radius: 2px;
}

#gallery {
    box-sizing: border-box;
    position: absolute;
    pointer-events: none;
}

.captured-image {
    position: relative;
    overflow: hidden;
    background: white;
    border: 5px solid white;
}

.captured-image .hidden-text {
    opacity: 1;
    background-color: transparent;
}

.captured-image main {
    margin: 0;
    position: relative;
    flex: 1;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    box-sizing: border-box;
    font-size: 1.9rem;
}

@media (max-width: 900px) {
    main {
        font-size: 1.2em;
    }
    
    #camera-viewfinder {
        width: 200px;
        height: 150px;
    }
}