/*  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:after {
    content:'';
    width: 12vw;
    display: block;
    position: absolute;
    bottom: -1em;
    border: 4px solid;
}

.active a:hover:after{
    display: none;
}

#mobile-nav-menu-toggle{
    display: none;
}

/*================
    Index
==================*/
#demo{
    display: grid;
    grid-template-columns: 60% 40%;
}

#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;
    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.4em;
    padding: 1em;
    line-height: 1.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{
    display: block;
    text-align: center;
    border: 2px solid white;
    margin: 2%;
}

.stories-main{
    margin: 2%;
    padding: 2%;
}

.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 intro";
}

.gif{
    grid-area: gif;
    margin: 2%;
    width: 100%;
    border-radius: 500px;
}

.stories_intro-1{
    font-size: 22px;
    grid-area: intro;
    margin: 2%;
    padding: 3%;
    line-height: 130%;
    font-weight: bold;
}

.stories-voice figcaption{
    text-align: center;
}

.stories-voice{
    display: grid;
    grid-template-columns: 30% 30% 30%;
    grid-column-gap:20px;
    grid-row-gap:30px;
    grid-template-areas:
            "designer software art";
}

.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{
    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
==================*/


/*================
    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;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.platform-link-item {
    display: block;
}

.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;
    
  }
}