body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

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;
}

main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    overflow: hidden; 
    min-height: 60vh;
    box-sizing: border-box;
    width: 50vw;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 100px;
}

h1 {
    transform: rotate(180deg);
}


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

.upside {
  display: inline-block;
  transform: rotate(180deg);
  transform-origin: center;
  vertical-align: baseline;
  text-align: right;
  transition: all 1s;
  transition-delay: 1s;
}

.right {
  display: inline;
  vertical-align: baseline;
  transition: all 0.5s;
  transition-delay: 0.5s;
}
span:hover {
    padding: 25px;
    transition: all 0.5s;
    cursor: pointer;
}
.right:hover {
    background-color: black;
    color: white;
    z-index: 10;
}