* {
    margin: 0;
    padding: 0;
    border : 0;
}

html {
    width: 100dvw;
    height: 100dvh;
    font-family: Orbitron, sans-serif;
    overflow: hidden;
    font-size: 0.875vw;
}

#world{
    position: absolute;
    height: 100vw;
    width: 100vw;
    background: #000;
    border: 0.15rem solid rgb(57, 255, 20);
    z-index: -1;
    visibility: hidden;
}

#camera {
    position: absolute;
    width: 100vw;
    height: 100dvh;
    background-color: #000;
    z-index: 0;
    border: 0.15rem solid black;
}

.box {
    position: fixed;
    padding: 0.5rem;
    background-color: rgba(63, 63, 63, 0.6);
    z-index: 1;
    font-size: 1.8rem;
    color: #80FFFF;
    border: 0.2rem solid #80FFFF;
}

#details {
    width: 20%;
    top: 0;
    left: 0;
}

#position {
    width: 20%;
    bottom: 0;
    right: 0;
}

#player {
    width: 20%;
    top : 0;
    right : 0;
}

.big {
    width: 100dvw;
    height: 100dvh;
    text-align: center;
    padding-top: 30dvh;
    font-size: 5rem;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    border: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out;
}

button {
    position: fixed;
    padding: 0.5rem;
    background-color: rgba(63, 63, 63, 0.6);
    z-index: 1;
    font-size: 1.8rem;
    font-family: Orbitron, sans-serif;
    color: #80FFFF;
    border: 0.2rem solid #80FFFF;
    transition: background-color 0.35s ease-in-out,
                color 0.35s ease-in-out;
}

button:hover {
    background-color: #80FFFF;
    color: rgba(63, 63, 63);
}

#result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    height: 100dvh;
    pointer-events: none;
}

#resultText {
    margin-top: -50rem;
}

#retry {
    position: relative;
    width: 20dvw;
}

#menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 30dvw;
    gap: 2rem;
    margin-top: -5rem;
}

.menuButtons {
    position: relative;
    width: 20dvw;
}

#pause {
    bottom: 0;
    left: 0;
    width: 8dvw;
}

#damage {
    transition: opacity 0.1s ease-in-out;
    background-color: rgba(255, 0, 0, 0.2);
}

#home {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 1;
}

.home {
    margin-top: -35dvh;
}

#title {
    position: absolute;
    margin-top: -90dvh;
    font-size: 10rem;
}

#title p {
    font-size: 3rem;
}

#show {
    position: absolute;
    width: 55%;
    font-size: 3rem;
}

#start {
    margin-top: -52.5dvh ;
    font-size: 3rem;
    width: 20dvw;
    height: 10dvh;
}

#message {
    width: 40dvw;
    bottom: 0.5dvh;
    text-align: center;
    left: 30dvw;
    background-color: rgba(63, 63, 63, 0.8);
    transition: opacity 0.5s ease-in-out;
}

.medium {
    opacity: 0;
    width: 0;
    height: 0;
    top: 50dvh;
    left: 50dvw;
    transition: width 0.5s ease-in-out,
                height 0.5s ease-in-out,
                opacity 0.5s ease-in-out,
                top 0.5s ease-in-out,
                left 0.5s ease-in-out;
}

#marketPlace {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.items {
    padding: 0.5rem;
    background-color: rgba(63, 63, 63, 0.6);
    z-index: 1;
    height: 14dvh;
    font-size: 1.6rem;
    color: #80FFFF;
    border: 0.2rem solid #80FFFF;
    transform: scale(0);
    transition: transform 1s ease-in-out;
}

.items p {
    font-size: 1.2rem;
}

.buy {
    font-size: 1.2rem;
    margin: 0.3rem;
    height: 25%;
    width: 45%;
    right: 0;
    bottom: 0;
}

#howToPlay {
    background-color: rgba(63, 63, 63, 0.85);
    opacity: 0;
    width: 70dvw;
    height: 70dvh;
    top: 15dvh;
    left: 15dvw;
    pointer-events: none;
    overflow-y: auto;
}

#howToPlay::-webkit-scrollbar {
    display: none;
}

#confirmation {
    background-color: rgba(63, 63, 63, 0.75);
    display: flex;
    flex-direction: column;
    opacity: 0;
    top: 40dvh;
    left: 33.5dvw;
    width: 32.5dvw;
    height: 13dvh;
    z-index: 0;
    row-gap: 0.8rem;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

#confirmation div {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

#sure {
    margin: auto;
    padding: 1rem;
}

#yes {
    width: 20%;
    position: relative;
}

#no {
    width: 20%;
    position: relative;
}

#inventory {
    opacity: 0;
    width: 50dvw;
    height: 50dvh;
    top: 25dvh;
    left: 25dvw;
    transform: scale(0);
    pointer-events: none;
    transition: transform 0.6s ease-in-out,
                opacity 0.6s ease-in-out;
}

#userDetails {
    background-color: rgba(63, 63, 63, 0.8);
    display: flex;
    flex-direction: column;
}

#userDetails div {
    padding-left: 0.5rem;
    border: 0.1rem solid #80FFFF;
}

#companyName {
    text-align: center;
}

#inv {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: row;
    background-color: rgba(63, 63, 63, 0.8);
    border: 0.1rem solid #80FFFF;
}

#items {
    display: flex;
    flex-direction: column;
    width: 60%;
}

#items div {
    padding: 0.1rem 0 0.1rem 0.5rem;
}

.item {
    height: 2.8rem;
}

.owns {
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
}

#uses {
    padding-top: 0.2rem;
    display: flex;
    width: 50%;
    margin-left: 8rem;
    flex-direction: column;
}

.owned {
    margin-top: 0.35rem;
    width: 60%;
}

.use {
    position: relative;
    width: 8rem;
    height: 2.5rem;
    margin: 0.21rem;
    padding: 0;
}

#preferences {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    opacity : 0;
    top: 32.5vh;
    left: 32.5vw;
    width: 35vw;
    height: 30vh;
    z-index: 5;
    background-color: rgba(63, 63, 63, 0.9);
    pointer-events: none;
}

#preferences span {
    text-align: center;
}

#backMusicLabel {
    padding-left: 0.5rem;
}

#backMusic {
    margin-left: 6%;
    width: 42%;
}

#SFXMusicLabel {
    padding-left: 0.5rem;
}

#SFXMusic {
    width: 42%;
}

#hackMode {
    position: relative;
    width: 60%;
    left: 20%;
}

#resetScore {
    position: relative;
    width: 50%;
    left: 25%;
}

#mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 15, 15);
    color: #80FFFF;
    font-size: 5rem;
    text-align: center;
    padding-top: 40vh;
    z-index: 10;
}
