@-ms-viewport {
    user-zoom: fixed;
    max-zoom: 1;
    min-zoom: 1;
}

html {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

html,body {
    height: 100%;
    width: 100%;
	margin: 0px;
	padding: 0px;
    background-color: #ffffff;
}

#appHolder {
    position: fixed;
	height: 100%;
    width: 100%;
    top: 0px;
    left: 0px;
    display: grid;
    grid-template-rows: 1fr auto;
}

#wrapper {
	height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    grid-row: 1;
    font-weight: lighter;
}

#adUnit {
    background-color: #000000;
    grid-row: 2;
    max-height: 90px;
}

#titleScreen {
    position: absolute;
	height: 100%;
    width: 100%;
    top: 0px;
    left: 0px;
    background-color: #000000;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('images/title-background.jpg');
    display: grid;
    grid-template-rows: 1fr auto auto 1fr;
}

#imTitleLogo {
    grid-row: 2;
    display: block;
    margin: 0px auto;
    width: 480px;
    max-width: calc(100% - 24px);
}

#titleOptions {
    grid-row: 3;
    text-align: center;
}

.titleOption {
    font-size: 2.4em;
    font-weight: bold;
    color: #ffffff;
    user-select: none;
    cursor: pointer;
    transition: 0.2s;
    text-shadow: 
        4px 4px 0px #311B92,
        0px -2px 0px #311B92,
        0px 2px 0px #311B92,
        -2px 0px 0px #311B92,
        2px 0px 0px #311B92;
}

.titleOption:hover {
    text-shadow: 
        4px 4px 0px #FF8F00,
        0px -2px 0px #FF8F00,
        0px 2px 0px #FF8F00,
        -2px 0px 0px #FF8F00,
        2px 0px 0px #FF8F00;
}

.titleOption:active {
    color: #D1C4E9;
    opacity: 0.6;
}

canvas {
    border-style: solid;
    border-width: 1px;
    border-color: #333333;
}

#playoutPrimary, #playoutOthers {
    text-align: center;
}

#playoutPrimary {
    font-size: 1.6em;
}

#playoutPrimary div {
    display: inline-block;
    margin: 12px;
}

#playoutOthers .readoutSection {
    margin-bottom: 20px;
}

#playoutOthers {
    column-count: 3;
}

.isCrossedOff {
    opacity: .4;
    text-decoration: line-through;
}

.underNegotiation {
    font-weight: bold;
}

.isTheWinner {
    color: #283593;
    font-weight: bolder;
}

.adlDark .isTheWinner {
    color: #7E57C2;
}

.questionHolderDiv {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

#toQuit {
    display: none;
}

#storyReadout, #playoutArea {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#rawStorySections, #rawPlayoutHolder {
    position: absolute;
    top: 50%;
    left: 0px;
    width: 100%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);

    
}

#rawStory {
    margin: 2px auto;
}

.imageButton {
    height: 35px;
    width: 120px;
    display: block;
    margin: 6px auto;
    cursor: pointer;
}

#spiralArea {
    text-align: center;
    max-width: 320px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
}

input {
    margin: 8px;
    background-color: rgba(0,0,0,.02);
    padding: 4px;
    border-style: solid;
    border-color: rgba(0,0,0,.4);
    border-width: 1px;
    font-size: .9em;
    width: calc(100% - 130px);
    border-radius: 4px;
}

#randomArea div {
    display: inline-block;
    font-size: 1.1em;
    cursor: pointer;
    margin: 10px;
    background-color: #283593;
    color: white;
    padding: 4px;
    border-radius: 4px;
    border-style: solid;
    border-color: rgba(0,0,0,.4);
    border-width: 1px;
}

.adlDark #randomArea div {
    background-color: #7E57C2;
}

button {
    display: inline-block;
    font-size: .9em;
    cursor: pointer;
    margin: 10px;
    background-color: #673AB7;
    color: white;
    padding: 4px;
    border-radius: 4px;
    border-style: solid;
    border-color: rgba(0,0,0,.4);
    border-width: 1px;
}

#questionIndex {
    color: #ffffff;
    padding: 4px;
    background-color: #283593;
    font-weight: bold;
    font-size: .8em;
    padding-top: env(safe-area-inset-top);
}

.adlDark #questionIndex {
    color: #000000;
    background-color: #7E57C2;
}

h2 {
    text-align: center;
    color: #283593;
}

.adlDark h2 {
    color: #7E57C2;
}

#adUnit iframe {
    width: 100%;
    height: 90px;
    margin-bottom: env(safe-area-inset-bottom);
}

@media screen and (max-height: 600px) {
    #rawStorySections {
        top: initial;
        transform: none;
    };
}

@media screen and (max-width: 728px) {
    #adUnit iframe {
        height: 60px;
    }
}

@media screen and (max-width: 468px) {
    #adUnit iframe {
        height: 50px;
    }
}