html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

#navbar {
    height: 70px;
    width: 100%;
    background-color: #4CAF50;
    color: white;
}

#endless-switch-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 10px;
}

#round-container {
    position: absolute;
    top: 0;
    left: 0;
    margin: 10px;
    background-color: #F5F5F5;
    z-index: 2;
    border-radius: 10px;
    padding: 10px;
}

#content-container {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#loading-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

#map-parent-container {
    display: flex;
    flex-direction: row;
    flex: 1;
}

#results-view {
    flex: 1;
    display: none;
}

#pano-container {
    flex: 1;
}

#map-container {
    position: absolute;
    top: 0%;
    right: 0%;
    z-index: 2;
    margin: 10px;
    height: 230px;
    width: 230px;
    color: white;
    transition: 0.2s;
    opacity: 55%;
}

#map-container:hover {
    opacity: 100%;
    height: 300px;
    width: 300px;
}

#guess-button {
    margin-top: 10px;
    height: 13%;
    width: 100%;
    background-color: #cc7469;
    transition: 0.8s;
    border-radius: 10px;
}

#guess-button a {
    color: white;
}

#map {
    height: 83%;
    width: 100%;
}

dfn {
    border-bottom: dashed 1px rgba(0, 0, 0, 0.8);
    padding: 0 0.4em;
    cursor: help;
    font-style: normal;
    position: relative;

}

dfn::after {
    content: attr(data-info);
    display: inline;
    position: absolute;
    text-align: center;
    top: 22px;
    left: 0;
    opacity: 0;
    width: 230px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5em;
    padding: 0.5em 0.8em;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    pointer-events: none;
    /* This prevents the box from apearing when hovered. */
    transition: opacity 250ms, top 250ms;
}

dfn::before {
    content: '';
    display: block;
    position: absolute;
    top: 12px;
    left: 20px;
    opacity: 0;
    width: 0;
    height: 0;
    border: solid transparent 5px;
    border-bottom-color: rgba(0, 0, 0, 0.8);
    transition: opacity 250ms, top 250ms;
}

dfn:hover {
    z-index: 2;
}

/* Keeps the info boxes on top of other elements */
dfn:hover::after,
dfn:hover::before {
    opacity: 1;
}

dfn:hover::after {
    top: 30px;
}

dfn:hover::before {
    top: 20px;
}

#progress-bar-container {
    display: none;
    bottom: 0%;
    z-index: 3;
    width: 100%;
    text-align: center;
    background: white;
    height: 100px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#progress {
    margin: 20px;
    flex: 1;
    text-align: center;
    width: 80%;
    height: 50%;
}

#progress-text {
    text-align: center;
    width: 100%;
    height: 15px;
    margin-top: 8px;
}

#play-again {
    text-align: center;
    width: 100%;
    height: 15px;
    margin-top: 8px;
    cursor: pointer;
    text-decoration: underline;
}

#play-again:hover {
    color: #27dbca;
}

#progress-bar {
    width: 40%;
}