/* SPEECH BUBBLE STYLES:
holds the speech bubble button as well as its window */
.speechBubbleButton, #hyper-earth-speech-bubble-button {
    width: 4%;
    height: 6%;
    margin-right: 95%;
}

#hyper-earth-speech-bubble {
    display: none;
    position: absolute;
    left: 8%;
    top: 7%;
    width: 80%;
    height: 80%;
    padding: 2%;
    border: 1px solid black;
    box-shadow: 0.1em 0.1em black;
    background: white;
    z-index: 1;
}

#hyper-earth-speech-bubble h2 {
    font-size: 1.75rem;
}

.speech-bubble-body {
    text-align: justify;
    margin-top: 5%;
}

.speech-bubble-subtitle {
    text-align: left;
    margin-left: 25%;
}

/* POPUP:
when clicking the globe on the index tab,
it shows a popup saying Arthur Newkirk owns this version of HyperEarth */
#hyper-earth-popup {
    display: none;
    position: absolute;
    font-size: 1.25vw;
    left: 12%;
    top: 40%;
    width: 60%;
    height: 15%;
    padding: 2%;
    border: 1px solid black;
    box-shadow: 0.1em 0.1em black;
    background: white;
    z-index: 1;
}

#hyper-earth-popup button {
    margin: 2% 0 0 70%;
    padding: 0.5% 0;
    width: 25%;
}


/* HOUSE HOVER IDs
Houses 1-5 are hover locations.
When hovered over, they show a hidden element with text. */
#hover-houses {
    display: none;
}
#house1 {
    position: absolute;
    bottom: 23%;
    left: 28%;
    width: 13%;
    height: 11%;
}
#house2 {
    position: absolute;
    bottom: 25%;
    left: 44%;
    width: 10%;
    height: 12%;
}
#house3 {
    position: absolute;
    bottom: 30%;
    left: 55%;
    width: 10%;
    height: 11%;
}
#house4 {
    position: absolute;
    bottom: 33%;
    left: 67%;
    width: 11%;
    height: 10%;
}
#house5 {
    position: absolute;
    bottom: 37%;
    left: 80%;
    width: 11%;
    height: 10%;
}
.houses {
    display: none;
    font-size: 1vw;
}
/* When House1-5 areas are hovered on,
they display a window showing household names */
#house1:hover + .houses {
    background: white;
    display: block;
    position: absolute;
    bottom: 37%;
    left: 23%;
    width: 15%;
    height: 12%;
    padding: 0.5%;
    border: 1px solid black;
    box-shadow: 0.1em 0.1em black;
}
#house2:hover + .houses {
    background: white;
    display: block;
    position: absolute;
    bottom: 40%;
    left: 39%;
    width: 17%;
    height: 5%;
    padding: 0.5%;
    border: 1px solid black;
    box-shadow: 0.1em 0.1em black;
}
#house3:hover + .houses {
    background: white;
    display: block;
    position: absolute;
    bottom: 44%;
    left: 53%;
    max-width: 10%;
    max-height: 7%;
    padding: 0.5%;
    border: 1px solid black;
    box-shadow: 0.1em 0.1em black;
}
#house4:hover + .houses {
    background: white;
    display: block;
    position: absolute;
    bottom: 46%;
    left: 65%;
    max-width: 10%;
    max-height: 10%;
    padding: 0.5%;
    border: 1px solid black;
    box-shadow: 0.1em 0.1em black;
}
#house5:hover + .houses {
    background: white;
    display: block;
    position: absolute;
    bottom: 48%;
    left: 78%;
    max-width: 13%;
    max-height: 4%;
    padding: 0.5%;
    border: 1px solid black;
    box-shadow: 0.1em 0.1em black;
}


/* GRID CONTAINER FOR SPEECH BUBBLE WINDOW */
#hyper-earth-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: repeat(1fr, 8);
    padding: 3% 0;
}
/* GRID NAMES BELOW CORRESPOND TO THE TEXT CONTENT */
/* HyperEarth Product Team */
#grid-item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    text-decoration: underline;
}
/* ElectroWorld  */
#grid-item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-weight: bold;
}
/* StackMeister */
#grid-item-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    margin-left: 8%;
    display: grid;
    grid-template-columns: 1fr 2fr;
}
/* Remaking */
#grid-item-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    font-weight: bold;
}
/* The World */
#grid-item-5 {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    font-weight: bold;
    text-align: center;
}
/* Geographer */
#grid-item-6 {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
    margin-left: 8%;
    display: grid;
    grid-template-columns: 1fr 2fr;
}
/* Bit Wrangler */
#grid-item-7 {
    grid-column: 1 / 2;
    grid-row: 5 / 6;
    margin-left: 8%;
    display: grid;
    grid-template-columns: 1fr 2fr;
}
/* Scripter */
#grid-item-8 {
    grid-column: 1 / 2;
    grid-row: 6 / 7;
    margin-left: 8%;
    margin-bottom: 5%;
    display: grid;
    grid-template-columns: 1fr 2fr;
}
/* Proofers */
#grid-item-9 {
    grid-column: 1 / 2;
    grid-row: 7 / 8;
    margin-left: 8%;
    display: grid;
    grid-template-columns: 1fr 2fr;
}
/* 175,104 pixels */
#grid-item-10 {
    grid-column: 2 / 3;
    grid-row: 4 / 8;
    font-weight: bold;
}
/* Click to disappear */
#grid-item-11 {
    grid-column: 1 / 2;
    grid-row: 8 / 9;
}
/* Version .94b */
#grid-item-12 {
    grid-column: 2 / 3;
    grid-row: 8 / 9;
    text-align: right;
}
/* Indents for the speech bubble window */
.left-indent {
    margin-left: 8%;
}
.right-indent {
    margin-right: 8%;
}


/* TAB SUBBUTTONS */
#sub-region-button {
    display: none;
}

#sub-town-btn {
    display: none;
}

#sub-street-btn {
    display: none;
}

/* MISC. STYLE EDITS */
#game-content {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: black;
    border: 0;
}

#game-nav {
    border: 0;
    background-color: black;
    text-align: left;
}

#game-nav button {
    background-color: black;
    color: white;
}

#game-nav.full-bottom {
    border-left: 0;
}

.arrow-key-buttons {
    filter: invert(100%);
    max-width: 40%;
}

.backgroundTransition {
    transition-property: background-image;
    transition-duration: 2s;
    transition-timing-function: linear;
}

.backgroundTransition:active {
    background-image: url('../img/hyper-earth/hyper-earth-index.png');
}