/*--------------------------------website--------------------------------*/

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	color: white;
	scroll-behavior: smooth;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body { 
    background-image: linear-gradient(to bottom left, #1B2838, black);
	background-size: cover;
	font-family: Arial;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
    padding: 0 2%;
    overflow-x: hidden;
}

main{
    display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 20px 20px 0px 0px;
}

header{
    display: flex;
	justify-content: center;
	align-content: center;
	width: 100vw;
	background-color: rgba(0, 0, 0, 0.5);
	position: sticky;
	top: 0;
    z-index: 500;
    margin-bottom: 1rem;
    overflow-x: visible;
}


/*--------------------------------structure--------------------------------*/

section{
    display: grid;
    place-items: center;
    align-items: center;
    min-height: 90vh;
    overflow-x: hidden;
}

.hidden{
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show{
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.structure{
    display: flex;
    justify-content: center;
    align-items: center;
	flex-wrap: wrap;
	gap: 2rem;
    padding: 1rem;
    overflow: hidden;
    width: 100%;
}

.row{
    flex-direction: row;
}

.column{
    flex-direction: column;
}

article{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

ul{
    display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem;
}

.target{
    padding: 3rem;
}


/*--------------------------------window--------------------------------*/

.window{
    background-color: rgba(27, 40, 56, 0.2);
    display: flex;
    justify-content: center;
    flex-direction: column;
    border-radius: 15px;
    gap: 1rem;
    padding: 2rem;
    transition: all 1s;
}

.window:hover{
    -ms-transform: scale(1.02);
    -webkit-transform: scale(1.02);
    transform: scale(1.02); 
}

.wide{
    width: 80%;
    min-width: 20rem;
    gap: 4rem;
    transition: all 1s;
}

.small{
    width: 40%;
    min-width: 19rem;
    max-width: 40rem;
}

.thin{
    width: 40%;
    min-width: 20rem;
    max-width: 25rem;
}

.center{
    align-items: center;
}


/*--------------------------------button--------------------------------*/

button{
    font-size: 1rem;
    padding: 0rem;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    transition: transform .7s;
}

button:hover{
    -ms-transform: scale(1.3);
    -webkit-transform: scale(1.3);
    transform: scale(1.3); 
}


/*--------------------------------project--------------------------------*/

.project{
    display: none;
    width: 100%;
}

.project-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
	flex-wrap: wrap;
	gap: 4rem;
    padding: 1rem;
    overflow: hidden;
    width: 100%;
}

.project-content{
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.project-logo{
    width: 20vw;
    min-width: 18rem;
    padding: 2rem;
}

.project-video{
    border-radius: 15px;
}

.project-video-window{
    background-color: rgba(27, 40, 56, 0.2);
    display: flex;
    justify-content: center;
    flex-direction: column;
    border-radius: 15px;
    gap: 1rem;
    padding: 1rem;
    width: 80%;
    min-width: 20rem;
}


/*--------------------------------slider--------------------------------*/

.container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 75vw;
    min-width: 20rem;
    gap: 2rem;
    overflow: hidden;
}

.slider-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.slider{
    display: flex;
    gap: 2rem;
    padding: 1rem;
    scroll-snap-type: x mandatory;
    width: 100%;
    overflow: hidden;
}

.slider .window{
    flex: 1 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    scroll-snap-align: center;
    inset: 2;
}

.project-banner{
    width: 100%;
    border-radius: 15px;
    opacity: 0.75;
    border-color: rgb(37, 49, 61);
    transition: all 1s;
}

.project-banner:hover{
    opacity: 1;
}

.project-screenshot{
    width: 100%;
    border-radius: 15px;
    border-color: rgb(37, 49, 61);
}

.slide-nav{
    position: fixed;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    width: 75vw;
    min-width: 20rem;
}

.slide-button{
    font-size: 2.6rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.25rem;
    inset: 1;
    pointer-events: all;
}

/*--------------------------------cards--------------------------------*/

.card{
    display: flex;
    justify-content: center;
    flex-direction: column;
    transition: all 1s;
    width: 40%;
    min-width: 20rem;
    max-width: 23rem;
    height: 29rem;
    position: relative;
}

.card-front, .card-back{
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    gap: 1rem;
    padding: 2rem;
    transition: transform 1s ease;
}

.card-back{
    transform: rotateY(180deg);
    background-color: rgb(20, 28, 36);
    backface-visibility: hidden;
}

.card-front{
    transform: rotateY(0deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(27, 40, 56, 0.2);
}

.card:hover .card-front{
    transform: rotateY(-180deg);
}

.card:hover .card-back{
    transform: rotateY(0deg);
}

.character{
    width: 80%;
    min-width: 18rem;
}


/*--------------------------------content--------------------------------*/

#logo{
    width: 1.5rem;
}

#profile{
    transition: all 1s;
}

#profile:hover{
    -ms-transform: scale(1.02);
    -webkit-transform: scale(1.02);
    transform: scale(1.02); 
}

.introduction{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#pic{
    width: 17%;
    min-width: 15rem;
    height: auto;
    padding: 2rem;
}

h1{
    font-size: 2.5rem;
}


/*--------------------------------game--------------------------------*/

#unity-container{
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    flex-direction: column;
    border-radius: 15px;
    padding: 1rem;
}

#unity-canvas { 
    background: #231F20
}

#unity-footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.unity-mobile #unity-canvas { 
    width: 100%; 
    height: 100% 
}

#unity-progress-bar-empty { 
    width: 141px; 
    height: 15px; 
    background: url('progress-bar-empty-dark.png') no-repeat center;
    border-style: solid;
    border-color: white;
    border-radius: 15px; 
}

#unity-progress-bar-full { 
    width: 0%; 
    height: 10px; 
    background: url('progress-bar-full-dark.png') no-repeat center;
    border-radius: 15px; 
}

#unity-fullscreen-button {
    transition: transform .2s;
}

#unity-fullscreen-button:hover {
    -ms-transform: scale(1.3);
    -webkit-transform: scale(1.3);
    transform: scale(1.3); 
}

#unity-build-logo { 
    width: auto;
    height: 38px;
}

#unity-fullscreen-button { 
    cursor:pointer;
    width: 38px; 
    height: 38px;
    float: right;
    background: url('fullscreen-button.png') no-repeat center 
}

#unity-warning { 
    position: absolute; 
    left: 50%; 
    top: 5%; 
    transform: translate(-50%); background: white; padding: 10px; display: none 
}
