/*  CS142 Final Project
    Designed by Kamiku Xue, Andrew Pang & Zecheng Jin
    Desktop Version
*/


/*Import google fonts*/

@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

/*================
    Global Setting
==================*/

* {
    transition-duration: 0.5s;
    font-family: sans-serif;
    box-sizing: border-box;
    color: white;
    image-rendering: optimizespeed !important;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

img {
    max-width: 100%;
}

ol,
li,
ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

figcaption {
    color: #eee6d5 !important;
    background-color: rgba(1, 1, 1, 0.7);
    text-align: center;
}

p {
    text-indent: 1em;
}

body {
    background-image: url(https://66.media.tumblr.com/a1971a640a7c31496b83b4368b7af2d3/tumblr_oa5kbyhVQh1qze3hdo1_500.gifv);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}


/*================
    Modals
==================*/


/*Link*/

a {
    color: #eee6d5;
    text-decoration: none;
    transition: all 0.5s ease-in-out 0s;
}

a:hover,
a:active {
    color: #F9BF45 !important;
    text-decoration: none;
}


/*Form*/

input {
    font-size: 18px;
    padding: 5px;
    display: block;
    border: none;
    color: black;
    border-bottom: 1px solid #757575;
}

label {
    display: block;
}

textarea {
    background-color: #0B346E;
    border: none;
    padding: 10px;
    line-height: 1em;
    width: 90%;
    margin: auto;
    display: block;
    overflow: auto;
    resize: none;
}


/*Tips*/

sub.tips {
    width: 90%;
    margin: auto;
    background-color: rgba(88, 178, 220, 0.8);
    border: 2px solid #006284;
    border-radius: 5px;
    padding: 5px;
    font-size: 12pt;
    display: block;
}

sub.tips:before {
    display: inline-block;
    content: '';
    background-image: url(../../assets/images/tips.gif);
    background-size: 100% 100%;
    height: 32px;
    width: 32px;
}


/*Button*/

button {
    user-select: none;
    cursor: pointer;
    width: 250px;
    border: 2px solid #155799;
    padding: 6px 24px;
    font-size: 1.1em;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #155799;
    background-color: #F1F2F2;
    transition: all 0.25s ease-in-out;
    border-radius: 10px;
    display: block;
    margin: auto;
}

button:hover {
    background-color: #155799;
    border-color: #155799;
    color: #F1F2F2;
}

button:active {
    background-color: #151c99;
    border-color: #3073c4;
    color: #F1F2F2;
    box-shadow: none;
}

button:focus,
button:active:focus {
    background-color: #155799;
    border-color: #155799;
    color: #F1F2F2;
    outline: 5px auto #381599;
}

button:visited {
    background-color: #155799;
    border-color: #155799;
}

button:disabled {
    background-color: #1a1f1f;
    border-color: rgba(21, 87, 153, 0.25);
    cursor: not-allowed;
    color: grey;
}


/*Back Top Button*/

#TOP {
    display: block;
    position: fixed;
    right: 1em;
    bottom: 5em;
    cursor: pointer;
}

#TOP:hover {
    transform: scale(0.8);
}

.fadeOut {
    animation: fadeOut ease 1s;
    visibility: hidden;
    transition: visibility .3s;
}

.fadeIn {
    animation: fadein ease 1s;
}


/*ToolTip*/


/* On process!
.inline-game-name{

}

.inline-game-name:before{
    content: "";
}

.inline-game-name:after{
    content: attr(data-tip);

}
*/


/*================
    Header & Nav
==================*/

.common-header {
    position: sticky;
    z-index: 2;
    width: 100%;
    top: 0;
    background-color: rgba(1, 1, 1, 0.8);
    display: grid;
    grid-template-columns: 20em auto;
    grid-template-areas: 'logo link';
    user-select: none;
}

.logo-img {
    grid-area: logo;
    margin: auto 0;
}

nav {
    grid-area: link;
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: auto;
    width: 100%;
}

.nav-container {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
    align-content: stretch;
}

.nav-item {
    flex-grow: 1;
    margin: 0;
}

.nav-item a {
    height: 100%;
    padding: 1em;
    font-size: 1.2em;
    font-weight: bolder;
    display: block;
    color: white;
    text-align: center;
}

.nav-item a:after {
    content: attr(data-tips);
    display: block;
    opacity: 0;
    position: absolute;
    transform: translate(0, -50%);
    bottom: -2em;
    background-color: black;
    border: 2px solid;
    padding: 0.2em;
    border-radius: 10px;
}

.nav-item a:hover:after {
    animation: fadein ease 1s;
    opacity: 1;
    transform: translate(0, 0);
}

.active a {
    background-color: white;
    color: black;
}

.active a:hover:after {
    display: none;
}

#mobile-nav-menu-toggle {
    display: none;
}

/*================
    Index
==================*/
#demo {
    display: grid;
    grid-template-columns: 60% 40%;
}

#home .web-des{
    padding: 6em;
}

#home .game-des {
    font-size: 1.4em;
    padding: 3em;
    line-height: 1.5em;
    margin: auto;
    background-color: rgba(58, 50, 38, 0.6);
}

#home .nav-container {
    margin: 0;
    display: flex;
    justify-content: space-evenly;
}

#home .nav-item {
    align-content: stretch;
    flex-grow: 1;
    
}

.nav-item img{
    transform: scale(0.9);}

#home .nav-item:hover img {
    transform: scale(1);
    box-shadow: 5px 5px 30px 15px rgba(0, 0, 0, 0.25), -5px -5px 30px 15px rgba(0, 0, 0, 0.22);
}

.nav-item figure {
    margin: 0;
}

.nav-item figcaption {
    font-size: 20pt;
    color: black;
    display: block;
}

.nav-item img {
    width: 100%;
}

.faq-area {
    margin: auto;
}

.faq-area h2 {
    margin: auto;
    text-align: center;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-gap: 0.5em;
    margin: 10px auto
}

.faq-item {
    padding: 20px;
}

.faq-item h3 {
    color: #86C166;
}

.faq-item p {
    font-size: 1.2em;
    padding: 10px;
    line-height: 130%;
}

.faq-area textarea {
    margin-bottom: 10px;
}

#home .title-game-name {
    font-size: 6em;
    font-family: 'Bangers', cursive;
    color: white;
    letter-spacing: 0.2em;
    text-align: center;
    margin: 0;
    padding: 1em;
    text-shadow: 0px -6px 0 #212121, 0 36px 36px rgba(0, 0, 0, .15);
    background-color: rgba(247, 207, 147, 1);
}

.home-header {
    display: block;
    background-color: rgba(1, 1, 1, 0.8);
    padding-bottom: 1em;
}

#home .web-des {
    font-size: 1.6em;
    padding: 2em;
    line-height: 1.2em;
    word-spacing: 0.5em;
}

#home main {
    background-color: rgba(1, 1, 1, 0.8);
    margin: 2em;
}


/*Tabs*/

.faq-label {
    border: 2px solid #0B346E;
    background-color: rgba(225, 225, 225, 0.5);
    padding: 5px 0 0 5px;
    font-size: 1.5em;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    width: 90%;
    font-size: 1.2em;
    margin: 10px auto auto auto;
}

.faq-toggle {
    display: none;
}

.tab-label {
    display: flex;
    width: 100%;
    height: 3em;
    cursor: pointer;
    border: 3px solid #3E474F;
    user-select: none;
}

.tab-label h3 {
    margin: auto auto auto 1em;
    display: block;
    width: 100%;
    font-size: 1.2em;
}

.toggle-icon {
    display: block;
    margin: auto;
}

.toggle-icon:before,
.toggle-icon:after {
    content: '';
    border-top: 2px solid #3E474F;
    width: 1em;
    display: block;
}

.toggle-icon:after {
    transform: rotate(90deg);
    transition: transform 0.3s;
    margin-top: -0.1em;
}

.faq-content {
    box-sizing: border-box;
    font-size: 0.9em;
    margin: 10px 10px;
    visibility: hidden;
    opacity: 0;
    background-color: rgba(155, 144, 194, 0.6);
    overflow: hidden;
    transform: translate(0, -50%);
}

.faq-toggle:checked~.faq-content {
    visibility: visible;
    opacity: 1;
    transform: translate(0, -0);
}

.faq-toggle:checked~.tab-label .toggle-icon:before {
    transform: rotate(180deg);
    transition: transform 0.5s;
}

.faq-toggle:checked~.tab-label .toggle-icon:after {
    transform: rotate(0deg);
    transition: transform 0.5s;
}


/*================
    Stories
==================*/

header.stories_header {
    font-size: 200%;
    display: block;
    text-align: center;
    border-bottom: 2px solid #F7D94C;
    margin: 2%;
}

.stories-main {
    margin: 2%;
    padding: 2%;
}

#stories h1 {
    font-size: 250%;
    border: none;
    text-align: center;
}

#stories h2 {
    font-size: 220%;
    text-align: center;
    border-bottom: 2px solid orange;
    background-color: rgba(11, 16, 19, 0.9);
    box-shadow: 0.2em 0.2em 0.2em #F7D94C;
}

.stories_intro {
    border: 2px solid white;
    border-radius: 10px;
    border-radius: 10px;
    margin: 2%;
    padding: 2%;
    display: grid;
    margin: 2%;
    grid-template-columns: 30% 70%;
    grid-column-gap: 20px;
    grid-row-gap: 30px;
    grid-template-areas: "gif intro1" "gif intro2";
    background-color: rgba(11, 16, 19, 0.8);
}

.gif {
    grid-area: gif;
    margin: auto;
    width: 100%;
    border-radius: 500px;
}

.stories_intro-1,
.stories_intro-2 {
    font-size: 25px;
    margin: 1%;
    padding: 2%;
    line-height: 130%;
    font-weight: bold;
}

.stories_intro-1 {
    font-size: 25px;
    grid-area: intro1;
    margin: 1%;
    padding: 3%;
    line-height: 130%;
    font-weight: bold;
}

.stories_intro-2 {
    grid-area: intro2;
}

.stories-voice figcaption {
    text-align: center;
}

.stories-voice {
    display: grid;
    grid-template-columns: 33% 33% 33%;
    grid-column-gap: 20px;
    grid-row-gap: 30px;
    grid-template-areas: "designer software art";
}

.stories-img-art,
.stories-img-designer,
.stories-img-developer {
    border-radius: 400px;
    width: 50%;
    margin: auto;
    display: block;
    overflow: hidden;
    box-shadow: 1px 1px 100px 10px  #F7D94C;
}

.stories-img-art:hover,
.stories-img-designer:hover,
.stories-img-developer:hover{
    transform:scale(1.3); 
}

.stories-voice-art,
.stories-voice-designer,
.stories-voice-software {
    font-size: 130%;
    background-color: rgba(11, 16, 19, 0.8);
    line-height: 130%;
}

.stories-voice-software {
    border: 2px solid white;
    border-radius: 10px;
    border-radius: 10px;
    margin: 2%;
    padding: 4%;
    grid-area: software;
}

.stories-voice-designer {
    grid-area: designer;
    margin: 2%;
    padding: 4%;
    border: 2px solid white;
    border-radius: 10px;
    border-radius: 10px;
}

.stories-voice-art {
    border: 2px solid white;
    border-radius: 10px;
    border-radius: 10px;
    grid-area: art;
    margin: 2%;
    padding: 4%;
}


/*================
    Characters
==================*/
#characters h2{
    padding: 2%;
    display: block;
    margin: auto;
    font-size: 200%;
    text-align: center;
    border-bottom: 2px solid #F7D94C;
    width: 50%;
}

.characters {
    padding: 1%;
    display: grid;
    width: 100%;
    grid-template-columns: 20% 20% 20% 20%;
    justify-content: space-evenly;
    align-content: stretch;
    align-items: stretch;
}

.characters-intro h3 {
    margin: auto;
    display: block;
    font-size: 1.2em;
}

.characters-intro>.front {
    transform: rotateY(0deg);
}

.characters-intro>.back {
    position: absolute;
    opacity: 0;
    top: 0px;
    left: 0px;
    transform: rotateY(-180deg);
    font-size: 120%;
}

.characters-intro:hover>.front {
    transform: rotateY(180deg);
    opacity: 0;
}

.characters-intro:hover>.back {
    opacity: 1;
    transform: rotateY(0deg);
}

.characters-intro {
    position: relative;
    margin-right: 2px;
    margin-bottom: 1em;
}

.characters-intro>.front,
.characters-intro>.back {
    height: inherit;
    padding: 1em;
    background: #313131;
    border-radius: 10px;
}

.characters-intro .back {
    line-height: 160%;
    justify-self: stretch;
    align-self: stretch;
    color: #999;
}


/*================
    Gallery
==================*/

.slides {
    width: 60%;
    margin: auto;
}

.gallery-container {
    margin: 20px;
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-gap: 10px;
}


/*================
    Comments
==================*/
#discussion-form{
    width: 70%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.discussion{
    background-color: rgba(1,1,1,0.8);
}

.discussion h2{
    font-size:3em;
    text-align:center;
}
.form-heading{
    font-size:1.5em;
}
fieldset{
    clear: both;
    margin-top:2em;
    padding:1em;
}
label{
    color: white;
    font-size:1em;
    font-weight:bold;
}
heading{
    border-bottom:2px solid #000000;
    font-size: 1.25em;
    font-style: italic;
    font-weight: bold;
    margin-bottom:1.75em;
    padding-bottom:0.4em;
}
.text-field{
    display:inline-block;
    padding-right:1em;
    padding-top:0.75em;
    text-align:right;
}
#form input,#form textarea,#form select{
    box-sizing: border-box;
    border: 2px solid black;
    box-shadow: 2px 2px 4px #EBEBEB;
    border-radius: 2px !important;
    padding:1em;
    outline: none;
}
#form input:focus,#form textarea:focus,#form select:focus{
    border:1px solid #ff5555;
}
#form textarea{
    height:6em;
    width:100%;
}
#form input[type=submit]{
    background:  #dadada none repeat scroll 0 0;
    border:medium none;
    border-radius:3px !important;
    box-shadow:1px 1px 4px #dadada;
    color: black;
    margin:1em;
    padding:0.8em 1.4em;
    font-size:30px;
}
fieldset.buttons{
    border:none;
    text-align: center;
}
#form input[type=submit]:hover{
    background-color: #f44336;
    color: white;
}

.success{
    background-color: rgba(93,172,129,0.9);
    text-align: center;
    padding: 1%;
    margin: 1%;
}

.btnClose {
    float:right;
}

.mistake{
    background-color: rgba(232,48,21,0.9);
    text-align: center;
    padding: 1%;
    margin: 1%;
    color:white;
}

.mistakes {
    border: thin solid #000;
    
}
#errors ol li{
    color: red;
}
#errors h2{
    text-align: center;
    font-size: 1.25em !important;
}
#errors{
    color: red !important;
}

.comment-list:before{
    content: '';
    width: 100vw;
    display: block;
    position: absolute;
    transform: translateY(-2em);
    left: 0;
    border: solid;
}

.comment-list{
    width: 80%;
    margin: auto;
    margin-top: 3em;
    background-color: rgba(108, 122, 137, 0.6)

}

.comment-list ul{
    display: flex;
    flex-direction: column;
    border:2px solid;
}

.comment-list >ul>li{
    margin-bottom: 1em;
}

.origin-comment{
    flex-grow: 1;
    width: 100%;
    border-radius:10px;
    display: grid;
    grid-template-columns: 40% 50%;
    grid-template-areas:
            'title Pcontent Pcontent'
            'author Pcontent Pcontent'
            'tags Pcontent Pcontent'
            'time a reply';
}

.post-title,.post-content{
    color: rgba(228, 241, 254, 1);
    border:2px solid;
}


.post-title{
    grid-area: title;
    margin: 0;
    text-align: center;
}

.post-author{
    margin: 0;
    grid-area: author;
    text-align: center;
    border:2px solid;
}

.post-time{
    margin: 0;
    border:2px solid;
    grid-area: time;
    color: rgba(191, 191, 191, 1);
    text-align: center;
}

.post-content{
    margin: 0;
    padding: 1em;
    grid-area: Pcontent;
}

.reply-btn{
    grid-area: reply;
    border:2px solid;
}

.comment-list .reply-area{
    display: none;
}

.discussion{
    padding-bottom: 2em;
}

.origin-comment ul{
    display: flex;
    width: 100%;
    flex-direction: row;
    margin: 0;
    padding: 0;
    justify-content: space-evenly;
    align-items: center;
}

.post-tags{
    border-radius: 5px;
    padding: 0.2em;
    margin: 0.1em;
    font-weight: bolder;
    border: 2px solid;
}

.post-tags:nth-of-type(1){
    background-color: #EB7A77;
    color:#9F353A;
}

.post-tags:nth-of-type(2){
    background-color: #FB9966;
    color:#F05E1C;
}

.post-tags:nth-of-type(3){
    background-color: #91AD70;
    color:#227D51;
}

.post-tags:nth-of-type(4){
    background-color: #81C7D4;
    color:#006284;
}

.post-tags:nth-of-type(5){
    background-color: #9B90C2;
    color:#211E55 ;
}

/*================
    About
==================*/

.intro-type {
    position: relative;
}

.parallax {
    background-attachment: inherit !important;
    background-repeat: repeat;
    background-size: cover;
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 100%;
    z-index: -10;
    margin: -148px 0px 0px -40px;
}

.mark,
.KK,
.AD {
    padding: 2em 0.2em !important;
    border-radius: 50%;
    top: 0px;
    bottom: 0px;
    width: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.company-heading h1 {
    line-height: 80px;
    color: #fff;
    font-weight: 700 !important;
    margin: 148px 0px 80px 0px;
    text-align: center;
}

.about-container {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 1em;
}

.about-item {
    background-color: rgba(1, 1, 1, 0.8);
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 30px 30px 0 rgba(88, 178, 220, 0.2);
    border: 5px transparent dashed;
    border-image: url(../images/border/border-1.png) 60;
}

.intro-type .container h1.white,
.company-heading h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 100 !important;
    text-transform: capitalize;
    font-size: 65px;
    margin-bottom: 20px;
}

.intro-type .container h1.white,
.company-heading h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 100 !important;
    text-transform: capitalize;
    font-size: 65px;
}

.company-sections h2 {
    margin-top: 120px;
}

.company-sections h2,
.company-sections h3 {
    font-weight: 800;
    font-size: 50px;
    text-align: center;
}

.company-sections h2,
.company-sections h3 {
    font-family: 'proxima-nova', sans-serif;
}

.company-sections h3,
.company-sections h5 {
    font-size: 25px;
    font-weight: 700;
    margin: 14px 0;
    font-family: 'proxima-nova', sans-serif;
    text-transform: capitalize;
}

.red {
    width: 50%;
    border-bottom: 1px solid #d2282e;
    margin: 0 auto;
    height: 16px;
}

.company-sections p {
    margin-top: 20px;
}

.Top40 {
    margin-top: 40px !important;
    text-align: left;
    font-weight: 300;
    font-size: 22px;
}

.Top {
    margin-top: 0px !important;
    text-align: left;
    font-weight: 300;
    font-size: 22px;
}

.company-sections {
    padding: 100px 15px;
}

.company-sections {
    background-color: rgba(1, 1, 1, 0.6);
    margin-top: 9.5em;
}

/*================
    Footer
==================*/

footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    position: absolute;
    display: grid;
    width: 100%;
    grid-template-columns: 30% auto 25%;
    grid-template-areas: 'links store sub' 'social store sub' 'copyright copyright copyright';
}

.footer-link-item img {
    width: 15em;
    display: block;
    margin: auto;
}

.studio-des {
    padding: 1em;
    line-height: 1.5em;
    margin: 1em;
    letter-spacing: 0.2em;
    text-align: left;
    margin: auto;
    display: block;
}

.social-container {
    grid-area: social;
    margin: 1em;
    width: 100%;
    display: flex;
}

.social-item {
    flex-grow: 1;
}

.social-item:hover {
    transform: scale(1.2);
}

.social-icon-sm {
    width: 32px;
    border-radius: 5px;
}

.platform-link-container {
    align-self: stretch;
    grid-area: store;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: space-evenly;
}

.platform-link-item {
    display: block;
}

.platform-link-item a{
    padding: 1em;
}

.platform-link-item:hover {
    transform: scale(0.8);
}

.platform-link-item img {
    border: 2px solid;
    border-radius: 10px;
    margin: auto;
    height: 64px;
    display: block;
}

#sub-from {
    margin: auto;
    width: 100%;
    grid-area: sub;
}

#sub-from label {
    display: block;
    margin: auto;
    width: 80%;
}

#sub-email {
    width: 80%;
    margin: auto;
}

#sub-from button {
    margin-top: 10px;
}

.copyright {
    grid-area: copyright;
    text-align: center;
    text-shadow: 0 1px rgba(255, 255, 255, 0.1);
    margin: 0;
    background-color: rgba(1, 1, 1, 0.7);
    padding: 1em
}


/*=================
    Animation
===================*/

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate(0, -50%);
    }
    80% {
        transform: translate(0, 0);
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(0, 0);
    }
    80% {
        transform: translate(0, -50%);
    }
    99% {
        opacity: 0;
    }
}