anxiety/styles/game.css

813 lines
16 KiB
CSS
Raw Normal View History

2019-02-11 17:04:23 +00:00
html,body{
width: 100%;
height: 100%;
2019-05-06 16:20:09 +00:00
overflow: hidden;
2019-02-11 17:04:23 +00:00
}
body{
margin:0;
2019-02-18 17:24:52 +00:00
background: #000;
2019-02-11 17:04:23 +00:00
}
2019-04-29 15:35:25 +00:00
/******************************************************************************************************
MAIN GAME
******************************************************************************************************/
2019-05-05 19:56:00 +00:00
div{ /*, #game_words, #game_choices, #paused, #options, #loading, #gear, #about, #click_to_advance{*/
2019-02-17 21:54:29 +00:00
-webkit-user-select: none; /* Safari 3.1+ */
-moz-user-select: none; /* Firefox 2+ */
-ms-user-select: none; /* IE 10+ */
user-select: none; /* Standard syntax */
}
2019-02-11 17:04:23 +00:00
#game_container{
position: absolute;
top:0; left:0; bottom:0; right:0;
margin: auto;
width: 360px;
height: 600px;
2019-02-18 17:24:52 +00:00
background: #2E2E2E;
2019-02-11 17:04:23 +00:00
font-size: 20px;
font-family: Helvetica, Arial, sans-serif;
font-weight: 100;
line-height: 1.3em;
2019-02-12 19:59:45 +00:00
overflow: hidden;
2019-02-11 17:04:23 +00:00
2019-02-12 19:59:45 +00:00
}
#game_words{
2019-02-11 17:04:23 +00:00
width: auto;
2019-02-12 19:59:45 +00:00
position: relative;
top: 80px;
2019-03-17 18:41:19 +00:00
overflow: hidden;
2019-02-12 19:59:45 +00:00
}
2019-03-17 18:41:19 +00:00
2019-05-03 16:13:22 +00:00
#game_words, #game_hp, #click_to_advance{
2019-04-29 19:19:44 +00:00
pointer-events: none;
}
2019-04-29 15:35:25 +00:00
/******************************************************************************************************
BOTTOM TABS
******************************************************************************************************/
#gear, #about{
position: absolute;
bottom: 0;
background: #191919;
width: 35px;
height: 35px;
cursor: pointer;
}
#gear:hover, #about:hover{
background: #575757;
}
#gear > .icon, #about > .icon{
position: absolute;
width: 0;
height: 0;
top: 10px;
}
#gear{
left: 0;
border-top-right-radius: 50px;
}
#gear > .icon{
left: 4px;
}
#about{
right: 0;
border-top-left-radius: 50px;
}
#about > .icon{
color: rgba(255,255,255,0.4);
font-weight: bold;
right: 19px;
}
/******************************************************************************************************
PAUSED & LOADING
******************************************************************************************************/
2019-04-24 19:42:13 +00:00
#paused, #loading{
2019-02-20 18:45:23 +00:00
display: none;
2019-02-11 17:04:23 +00:00
2019-02-20 18:45:23 +00:00
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: rgba(40,40,40,0.9);
color: #fff;
font-weight: bold;
text-align: center;
}
2019-05-05 19:56:00 +00:00
#paused > div{
2019-02-20 18:45:23 +00:00
position: absolute;
margin: auto;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 260px;
height: 70px;
font-size: 69px;
}
#paused > div > div{
font-size: 20px;
font-weight: lighter;
line-height: 1em;
width: 220px;
margin: 15px auto;
}
2019-04-29 19:19:44 +00:00
#paused[modal=yes]{
background: rgba(70,70,70,0.9);
}
#paused[modal=yes] > div{
display: none;
}
2019-02-20 18:45:23 +00:00
2019-05-05 19:56:00 +00:00
#loading_bar{
width: 150px;
height: 100px;
overflow: hidden;
position: absolute;
margin: auto;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
#loading_bar_bg{
width: 140px;
height: 0px;
background: #ff4040;
position: absolute;
left:5px;
2019-05-06 13:34:20 +00:00
bottom: 44px;
2019-05-05 19:56:00 +00:00
}
#loading_pic{
width: 100%;
height: 100%;
background: url(../sprites/ui/preloader.png);
position: absolute;
top: 0;
left: 0;
background-size: 100%;
}
2019-04-24 19:42:13 +00:00
#loading{
display:block;
2019-05-05 19:56:00 +00:00
background:#282828;
}
#loading[loaded=yes]{
2019-04-24 19:42:13 +00:00
cursor: pointer;
2019-05-05 19:56:00 +00:00
background:#282828;
}
#loading[loaded=yes]:hover{
background:#444;
}
#loading[loaded=yes] #loading_bar_bg{
display: none;
2019-04-24 19:42:13 +00:00
}
2019-05-05 19:56:00 +00:00
#loading[loaded=yes] #loading_pic{
background-position: 0px -100%;
2019-04-24 19:42:13 +00:00
}
2019-05-05 19:56:00 +00:00
#loading[loaded=yes]:hover #loading_pic{
background-position: 0px -200%;
}
#loading[loaded=yes]:active #loading_pic{
background-position: 0px -300%;
2019-04-24 19:42:13 +00:00
}
2019-04-29 15:35:25 +00:00
/******************************************************************************************************
ABOUT / END DEMO
******************************************************************************************************/
2019-04-27 13:08:25 +00:00
#end_demo{
2019-04-30 15:20:45 +00:00
2019-04-27 13:08:25 +00:00
position: absolute;
2019-04-30 15:20:45 +00:00
top:600px;
left:0;
2019-04-27 13:08:25 +00:00
background: #2E2E2E;
width: 100%;
height: 100%;
color:#fff;
text-align: center;
2019-04-30 15:20:45 +00:00
/* Spring OUT only */
-webkit-transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1); /* older webkit */
-webkit-transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1.390);
-moz-transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1.390);
-o-transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1.390);
transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1.390); /* custom */
-webkit-transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1); /* older webkit */
-webkit-transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1.390);
-moz-transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1.390);
-o-transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1.390);
transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1.390); /* custom */
2019-04-27 13:08:25 +00:00
}
#end_demo_tbc{
2019-05-05 19:56:00 +00:00
position: absolute;
top: 220px;
display: none;
2019-04-27 13:08:25 +00:00
background: url(../sprites/end_demo/tbc.png);
background-size: 100%;
width: 100%;
height: 100px;
}
#end_demo_words{
width: 310px;
margin: 0 auto;
font-size: 18px;
line-height: 1.3em;
}
#end_demo_words a{
color: #ff4040;
font-weight: normal;
}
#end_demo_words a:hover{
color: #ff8080;
}
2019-04-29 19:19:44 +00:00
#end_demo a.no_deco{
text-decoration: none;
}
#the_newsletter #email{
width: 300px;
font-size: 20px;
border: none;
padding: 5px;
font-weight: 300;
margin-top: 10px;
border-radius: 5px;
}
#the_newsletter #email_info{
position: relative;
width: 310px;
height: 60px;
}
#the_newsletter #gdpr{
position: absolute;
transform: scale(2);
top: 11px;
left: 3px;
}
#the_newsletter #consent{
font-size: 13px;
position: absolute;
left: 31px;
top: 8px;
width: 110px;
line-height: 1em;
text-align: left;
}
#the_newsletter #submit{
background: #ff4040;
position: absolute;
top: 6px;
left: 150px;
width: 160px;
height: 30px;
font-size: 20px;
font-weight: 300;
border-radius: 30px;
border: none;
color: #ffffff;
cursor: pointer;
}
#the_newsletter #submit:hover{
background: #ff7070;
}
#the_newsletter #submit[disabled]{
background: #555;
color: #222;
cursor: default;
}
2019-04-27 13:08:25 +00:00
#patreon{
2019-04-29 19:19:44 +00:00
width: 160px;
2019-05-05 19:56:00 +00:00
height: 56px;
2019-04-27 13:08:25 +00:00
background: url(../sprites/end_demo/patreon.png);
background-size: 100%;
2019-04-29 19:19:44 +00:00
margin: 5px auto 10px auto;
cursor: pointer;
position: relative;
}
#patreon:hover{
top:-2px;
}
#share{
overflow: hidden;
text-align: center;
padding: 2px 0;
margin-bottom: 3px;
}
#share div{
display: inline-block;
overflow: hidden;
width:40px; height:40px;
background: url(../sprites/end_demo/share.png);
background-size: 300%;
position: relative;
cursor: pointer;
}
#share div:hover{
top:-2px;
}
#share #share_fb{
background-position: 0px;
}
#share #share_tw{
background-position: -40px;
}
#share #share_em{
background-position: -80px;
}
#replay{
width:100px;
height: 80px;
background: url(../sprites/end_demo/replay.png);
background-size: 300%;
position: absolute;
bottom: 0;
left: 130px;
cursor: pointer;
}
#replay:hover{
background-position: -100px;
}
#replay:active{
background-position: -200px;
2019-04-27 13:08:25 +00:00
}
2019-04-30 15:20:45 +00:00
#end_demo #end_words1{ display: inline; }
#end_demo #end_words2{ display: none; }
#end_demo #replay{ display: block; }
#end_demo #close_about{ display: none; }
2019-05-05 19:56:00 +00:00
#end_demo .about_padding{
padding-top: 10px;
}
#end_demo #end_demo_words{
padding-top: 50px;
}
2019-04-30 15:20:45 +00:00
#end_demo[about=yes]{
padding-top: 25px;
height: 490px;
}
#end_demo[about=yes] #end_words1{ display: none; }
#end_demo[about=yes] #end_words2{ display: inline; }
#end_demo[about=yes] #replay{ display: none; }
#end_demo[about=yes] #close_about{
display: block;
float: none;
width: 50px;
margin: 10px auto;
}
2019-05-05 19:56:00 +00:00
#end_demo[about=yes] .about_padding{
padding-top: 0px;
}
#end_demo[about=yes] #end_demo_words{
padding-top: 0px;
}
2019-04-30 15:20:45 +00:00
2019-04-29 15:35:25 +00:00
/******************************************************************************************************
OPTIONS
******************************************************************************************************/
2019-04-28 16:02:55 +00:00
#options{
position: absolute;
2019-04-29 15:35:25 +00:00
top: 600px;
width: 300px;
padding: 15px;
margin: 15px;
2019-04-29 19:19:44 +00:00
background: #2e2e2e;
color:#fff;
2019-04-29 15:35:25 +00:00
/* Spring OUT only */
-webkit-transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1); /* older webkit */
-webkit-transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1.390);
-moz-transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1.390);
-o-transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1.390);
transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1.390); /* custom */
-webkit-transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1); /* older webkit */
-webkit-transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1.390);
-moz-transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1.390);
-o-transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1.390);
transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1.390); /* custom */
2019-04-28 16:02:55 +00:00
}
2019-05-05 19:56:00 +00:00
#options #volume_options{
display: none;
}
#options[past_intro=yes] #volume_options{
display: block;
}
2019-04-28 16:02:55 +00:00
#text_speed_preview{
2019-04-29 15:35:25 +00:00
height: 1.3em;
}
2019-04-30 15:20:45 +00:00
#close_about, #options_ok{
2019-04-29 15:35:25 +00:00
display: inline-block;
background: #000;
padding: 5px 10px;
border-radius: 10px;
color: #fff;
font-weight: bold;
margin: 0 auto;
float: right;
position: relative;
top:0;
cursor: pointer;
}
2019-04-30 15:20:45 +00:00
#close_about:hover, #options_ok:hover{
2019-04-29 15:35:25 +00:00
background: #666;
top:-2px;
2019-04-28 16:02:55 +00:00
}
2019-05-02 15:55:41 +00:00
#text_automatic_toggle{
border: 1px solid #fff;
border-radius: 5px;
padding: 1px 5px;
cursor: pointer;
}
#text_automatic_toggle:hover{
background:rgba(255,255,255,0.3);
}
#click_to_advance{
display: block;
position: absolute;
text-align: center;
width: 100%;
top: 254px;
color:#fff;
}
2019-04-28 16:02:55 +00:00
/*
Slider CSS by Noah Blon
https://codepen.io/noahblon/pen/OyajvN
*/
input[type="range"]{
margin: auto;
-webkit-appearance: none;
position: relative;
overflow: hidden;
/*height: 40px;
width: 200px;*/
cursor: pointer;
border-radius: 0; /* iOS */
width: 300px;
height: 30px;
}
2019-05-02 15:55:41 +00:00
#text_speed_slider{
width: 150px;
}
2019-04-28 16:02:55 +00:00
::-webkit-slider-runnable-track{
background: #ddd;
}
::-webkit-slider-thumb {
-webkit-appearance: none;
width: 30px; /* 1 */
height: 30px;
background: #fff;
box-shadow: -100vw 0 0 100vw #ff4040;
border: 2px solid #999; /* 1 */
}
::-moz-range-track {
height: 30px;
background: #ddd;
}
::-moz-range-thumb {
background: #fff;
height: 30px;
width: 30px;
border: 3px solid #999;
border-radius: 0 !important;
box-shadow: -100vw 0 0 100vw #ff4040;
box-sizing: border-box;
}
::-ms-fill-lower {
background: #ff4040;
}
::-ms-thumb {
background: #fff;
border: 2px solid #999;
height: 30px;
width: 30px;
box-sizing: border-box;
}
::-ms-ticks-after {
display: none;
}
::-ms-ticks-before {
display: none;
}
::-ms-track {
background: #ddd;
color: transparent;
height: 30px;
border: none;
}
::-ms-tooltip {
display: none;
}
2019-04-29 15:35:25 +00:00
/******************************************************************************************************
2019-04-28 16:02:55 +00:00
DIALOGUEZ
2019-04-29 15:35:25 +00:00
******************************************************************************************************/
2019-04-28 16:02:55 +00:00
2019-03-17 18:41:19 +00:00
.clear-both{
clear:both;
}
2019-05-05 19:56:00 +00:00
.mini-icon{
display: inline-block;
background: url(../sprites/ui/icons.png);
background-size: 700%;
width: 20px; height:20px;
position: relative;
}
.mini-icon[pic="gear"]{
background-position: -0px 0px;
}
.mini-icon[pic="about"]{
background-position: -100% 0px;
}
.mini-icon[pic="next"]{
background-position: -200% 0px;
}
.mini-icon[pic="play1"]{
background-position: -300% 0px;
}
.mini-icon[pic="play2"]{
background-position: -400% 0px;
}
.mini-icon[pic="click"]{
background-position: -500% 0px;
}
.mini-icon[pic="ok"]{
background-position: -600% 0px;
}
2019-04-29 15:35:25 +00:00
.narrator-bubble, .narrator-bubble-2, .narrator-bubble-4{
2019-02-20 18:45:23 +00:00
position: relative;
color: #FFFFFF;
text-align: center;
padding: 0 10px;
font-size: 1.3em;
margin: 25px 15px;
font-weight: bold;
}
2019-04-29 15:35:25 +00:00
.narrator-bubble:before, .narrator-bubble-4:before{
2019-02-20 18:45:23 +00:00
content: '';
position: absolute;
top: -9px;
left: 0;
border: 6px solid #fff;
border-right: 0;
width: 10px;
height: calc(100% + 4px);
}
2019-04-29 15:35:25 +00:00
.narrator-bubble:after, .narrator-bubble-4:after{
2019-02-20 18:45:23 +00:00
content: '';
position: absolute;
top: -9px;
right: 0;
border: 6px solid #fff;
border-left: 0;
width: 10px;
height: calc(100% + 4px);
}
2019-04-29 15:35:25 +00:00
.narrator-bubble i, .narrator-bubble-2 i, .narrator-bubble-4 i{
2019-02-20 18:45:23 +00:00
font-style: normal;
color: #ff4040;
}
2019-04-29 15:35:25 +00:00
.narrator-bubble i.italics, .narrator-bubble-4 i.italics{
font-style: italic;
color: #fff;
}
2019-04-24 19:42:13 +00:00
.narrator-bubble-2{
2019-04-29 15:35:25 +00:00
color: #fff;
background: #000;
margin: 10px 15px;
padding: 15px 0;
}
.narrator-bubble-4{
font-size: 20px;
2019-04-24 19:42:13 +00:00
}
2019-04-29 15:35:25 +00:00
.narrator-bubble-3 {
position: relative;
background: #000000;
color: #ffffff;
padding: 15px;
margin: 5px 30px;
text-align: center;
/*opacity: 0;
transition: all 0.3s ease-in-out;*/
2019-04-24 19:42:13 +00:00
}
2019-02-20 18:45:23 +00:00
.hong-bubble {
2019-02-12 19:59:45 +00:00
position: relative;
background: #ffffff;
color: #000000;
border-radius: .4em;
padding: 15px;
2019-03-17 18:41:19 +00:00
margin: 5px 30px;
2019-02-11 17:04:23 +00:00
2019-02-12 19:59:45 +00:00
opacity: 0;
left: -15px;
transition: all 0.3s ease-in-out;
2019-03-17 18:41:19 +00:00
display: inline-block;
float: left;
2019-02-11 17:04:23 +00:00
}
2019-02-20 18:45:23 +00:00
.hong-bubble:after {
2019-02-12 19:59:45 +00:00
content: '';
position: absolute;
2019-05-06 16:20:09 +00:00
left: 1px;
2019-02-12 19:59:45 +00:00
top: 50%;
width: 0;
height: 0;
border: 15px solid transparent;
border-right-color: #ffffff;
border-left: 0;
margin-top: -15px;
margin-left: -15px;
}
2019-02-20 18:45:23 +00:00
.beebee-bubble {
2019-02-12 19:59:45 +00:00
position: relative;
background: #000000;
color: #ffffff;
border-radius: .4em;
padding: 15px;
2019-03-17 18:41:19 +00:00
margin: 5px 30px;
2019-02-12 19:59:45 +00:00
opacity: 0;
left: 15px;
transition: all 0.3s ease-in-out;
2019-03-17 18:41:19 +00:00
display: inline-block;
float: right;
2019-02-11 17:04:23 +00:00
}
2019-02-20 18:45:23 +00:00
.beebee-bubble:after {
2019-02-12 19:59:45 +00:00
content: '';
position: absolute;
2019-04-29 15:35:25 +00:00
right: 1px;
2019-02-12 19:59:45 +00:00
top: 50%;
width: 0;
height: 0;
border: 15px solid transparent;
border-left-color: #000000;
border-right: 0;
margin-top: -15px;
margin-right: -15px;
}
2019-02-11 17:04:23 +00:00
#game_choices{
width: 100%;
2019-02-12 19:59:45 +00:00
height: 110px;
padding: 20px 0;
2019-02-11 17:04:23 +00:00
position: absolute;
bottom:0;
2019-02-18 17:24:52 +00:00
background: #2E2E2E;
2019-02-12 19:59:45 +00:00
text-align: center;
color: #fff;
2019-02-20 18:45:23 +00:00
font-weight: lighter;
2019-02-12 19:59:45 +00:00
}
#game_choices > div{
2019-02-18 17:24:52 +00:00
padding: 0.25em 0;
2019-02-12 19:59:45 +00:00
cursor: pointer;
2019-04-18 11:40:22 +00:00
position: relative;
/* Spring OUT only */
-webkit-transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1); /* older webkit */
-webkit-transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1.390);
-moz-transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1.390);
-o-transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1.390);
transition: top 500ms cubic-bezier(0.350, 0.005, 0.370, 1.390); /* custom */
-webkit-transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1); /* older webkit */
-webkit-transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1.390);
-moz-transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1.390);
-o-transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1.390);
transition-timing-function: cubic-bezier(0.350, 0.005, 0.370, 1.390); /* custom */
2019-02-12 19:59:45 +00:00
}
2019-02-18 17:24:52 +00:00
#game_choices > div:hover{
background: rgba(255,255,255,0.25);
}
2019-02-11 17:04:23 +00:00
2019-02-12 19:59:45 +00:00
/***********************************/
/***********************************/
/***********************************/
2019-02-17 21:54:29 +00:00
canvas{
border: none;
2019-02-12 19:59:45 +00:00
}
2019-02-17 21:54:29 +00:00
#game_canvas{
2019-02-12 19:59:45 +00:00
position: absolute;
2019-02-17 21:54:29 +00:00
top:0; left:0;
2019-02-12 19:59:45 +00:00
}
2019-02-17 21:54:29 +00:00
#game_hp{
2019-02-12 19:59:45 +00:00
position: absolute;
2019-02-17 21:54:29 +00:00
width: 360px;
height: 100px;
2019-04-18 11:40:22 +00:00
top:-100px;
left:0;
transition: top 0.5s ease-in-out;
2019-02-12 19:59:45 +00:00
}
2019-05-06 16:20:09 +00:00
/******************************************************************************************************
CORNER TEXT
******************************************************************************************************/
#topleft, #bottomright{
width: 200px;
color: #444;
font-family: Helvetica, Arial, sans-serif;
font-weight: 500;
font-size: 14px;
line-height: 1.3em;
position: absolute;
}
#topleft a, #bottomright a{
color: #666;
}
#topleft a:hover, #bottomright a:hover{
color: #888;
}
#topleft{
top:10px;
left:10px;
text-align: left;
}
#bottomright{
bottom:10px;
right:10px;
text-align: right;
}
@media screen and (max-width: 800px) {
#topleft, #bottomright {
display: none;
}
}