
/* GLOBALS */
:root{
    --bg-col:#0a0a0a;
    --bg-col-light: #222223;
    --panel-col: #26221e;
    --panel-col-light:#464135;
    --panel-col-light-alpha:rgba(52, 49, 43,0);
    --tex-col: #cac39e;
    --highlighted-tex-col: #f5f2e7;
    --shadow-col: rgba(0,0,0,0.4);
    --line-col: #655d40;
    --light-transparent-col: rgba(0,0,0,0.25);
    --strong-transparent-col: rgba(20, 15, 11, 0.657);
    --error-col: red;
    --danger-col: rgb(139, 58, 58);
}

body{
    color:var(--tex-col);
    font-family: 'Commissioner', sans-serif;
    background-image: radial-gradient(circle at top, var(--bg-col-light), var(--bg-col));
    margin-top: -10vh 0;
    min-height: 120vh;
    background-attachment: fixed;
}

a{
    color: inherit;
    font-style: inherit;
    text-decoration: inherit;
}

h1{
    font-size: 4rem;
    line-height: 3rem;
    font-family: 'Rajdhani', sans-serif;
}

@media only screen and (max-width:900px) {
    h1{
        font-size: 3rem;
    }
}

hr{
    background-color: var(--bg-col-light);
    height: 2px;
    min-height: 2px;
    border-width: 0px;
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

h2{
    font-size: 1.5rem;
    font-weight: 400;
}


/* STATIC ELEMENTS */
#watermark{
    position: fixed;
    bottom: 2px;
    left: 5px;
    color: rgba(179, 171, 132, 0.251);
    font-size: 0.7rem;
}

#top-row{
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 1001;
    backdrop-filter:blur(1px) grayscale(80%);
}

#top-menu{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    background-image: linear-gradient(
        90deg,
        var(--panel-col-light-alpha) 10%,
        var(--panel-col-light) 35%,
        var(--panel-col-light) 65%,
        var(--panel-col-light-alpha) 90%
    );
    box-shadow: 0px 2px 10px var(--shadow-col);
    height: 2rem;
    transition: box-shadow 0.5s;
}

#top-menu hr{
    width: 2px;
    height: 1.5rem;
    border-width: 0;
    background-color: var(--line-col);
    margin: 0;
}

#top-menu .clickable{
    width: max-content;
}

#top-menu >*{
    white-space: nowrap;
}

@media only screen and (max-width:900px){
    #top-menu >*{
        white-space:normal;
        text-align: center;
    }

    #top-menu{
        height: 4rem;
        background-image: none;
        background-color: var(--panel-col-light);
    }
}

#top-menu:hover{
    box-shadow: 0px 10px 10px var(--shadow-col);
}

#side-column{
    position: fixed;
    z-index: 10;
    left: 0px;
    top: 0px;
    height: 100vh;
    width: min-content;
}

#side-menu{
    display: flex;
    flex-direction: column;
}

#contact{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    padding: 1rem;
    gap: 0.5rem;
}

@media only screen and (max-width:900px){
    #contact{
        padding: 0.5rem;
    }
}

.side-menu-item{
    display: flex;
    min-width: 3rem;
    width: max-content;
    min-height: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0px 4px 4px var(--shadow-col);
    align-items: center;

    background-color: var(--panel-col);

    transition: background-color 0.5s, color 0.5s;
}

@media only screen and (max-width:900px){
    .side-menu-item{
        min-width: 2rem;
        min-height: 2rem;
    }
}

.side-menu-item:hover{
    background-color: var(--panel-col-light);
    color: var(--highlighted-tex-col);
    padding-right: 1rem;
    cursor: pointer;
}

.side-menu-icon{
    min-width: 3rem;

    text-align: center;
    vertical-align: middle;
}

@media only screen and (max-width:900px){
    .side-menu-icon{
        min-width: 2rem;
    }
}

.fa-brands, .fa-solid{
    font-size: 1.5rem;
} 

@media only screen and (max-width:900px){
    .fa-brands, .fa-solid{
        font-size: 1rem;
    }
}

.side-menu-item a{
    display: none;
}

.side-menu-item:hover a{
    display: inline;
}

/*Main*/
#main{
    display: flex;
    flex-direction: column; 
    justify-self: center;
    
    margin: 20vh 10vw;
    
    gap: 10vh; 
}

#game-main{
    display: flex;
    flex-direction: column; 
    justify-self: center;
    
    margin: 20vh 10vw;
    
    gap: 10vh; 
}

@media only screen and (max-width:900px){
    #main{
        margin: 20vh 2vw 20vh 10vw;
    }

    #game-main{
        margin: 2vh 0vw;
    }
}

.content{
    box-shadow: 0px 5px 10px var(--shadow-col);
    background-image: radial-gradient(circle at top, var(--panel-col-light), var(--panel-col));
    padding: 1rem;
    border-radius: 0.5rem;
    position: relative;
}

#about-me{
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
}

#about-me p{
    text-indent: 2rem;
    text-align: justify;
}

h1{
    margin-top: 0px;
    margin-bottom: 0px;
}

h2{
    margin-top: 0px;
    line-height: 1.2rem;
}

p{
    font-weight: lighter;
    line-height: 2rem;
    font-size: 1.25rem;
}

@media only screen and (max-width:900px){
    p{
        line-height: 1.2rem;
        font-size:1rem;
    }
}

#profile-pic{
    float: left;
    max-height: 60vh;
    max-width: 30vw;
    object-fit: cover;
    margin: 1rem 1rem 1rem 0rem;
    border-radius: 5px;
    box-shadow: 0px 0px 10px var(--shadow-col);
}

p{
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.clickable{
    text-shadow: 0px 0px 0px var(--shadow-col);
    position: relative;
    bottom: 0px;
    transition: text-shadow 0.5s, bottom 0.1s, color 0.5s;
}

.clickable:hover{
    color: var(--highlighted-tex-col); 
    text-shadow: 0px 3px 4px black;
    bottom: 1px;
    
    cursor: pointer;
}

hr{
    margin-top: 0px;
    height: 1px;
    background-color: var(--line-col);
    border-width: 0;
}

#exp-body{
    display: grid;
    grid-template-columns: min-content auto;
    column-gap: 1rem;
}

.exp-date{
    text-align: left;
    grid-column-start: 1;
    grid-column-end: 2;
    white-space: nowrap;
}

.exp-desc{
    text-align: left;
    grid-column-start: 2;
    grid-column-end: 3;
}

/* GAMEFLOW */
#game-flow{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.pic-box{
    position: relative;
    height: 300px;
    width: 200px;
    max-width: 30vw;
    max-height: 45vw;
    transition: transform 0.5s, box-shadow 0.5s;
}

.pic-box:hover{
    transform: scale(1.05);
    box-shadow: 0px 5px 10px var(--shadow-col);
    cursor: pointer;
}

.game-box{
    position: relative;
    max-width: 30vw;
}

.game-pic{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
}

.game-logo{
    position: absolute;
    bottom: 0;
    width: 80%;
    margin-left: 10%;
    margin-bottom: 0.5rem;
}

.top{
    opacity: 100%;
    transition: opacity 1s;
}

.top:hover{
    opacity: 0%;
}

.game-title{
    font-weight: bold;
    margin-bottom: 0;
}

.game-firm{
    font-size: 1rem;
    margin-top: 0;
    line-height: 1rem;
}

.icon-line{
    display: flex;
    gap: 0.5rem;
}

.icon-line i{
    font-size: 1.2rem;
}

#tool-info{
    display:none;
    position: fixed;
    top: 10px;
    background-color: #b3ab84;
    color: #1C1B19;
    padding: 0.25rem;
    border-radius: 5px;
    box-shadow: 0px 5px 10px var(--shadow-col);
    z-index: 1000;
}

/* SIDE PROJECTS */
.header-img{
    position: relative;
    left: -1rem;
    top: -1rem;
    width: calc(100% + 2rem);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.header-logo-img{
    position: absolute;
    top: 10px;
    left: 10px;
    width: 15%;
}

/*Game Content*/
.content-box{
    display:grid;
    grid-template-columns: 200px auto 20vw;
    gap: 2rem;
}

@media only screen and (max-width:900px){
    .content-box{
        grid-template-columns: 120px auto;
        grid-template-rows: min-content min-content;
    }
}
    

.content-info{
    display: flex;
    flex-direction: column;
}

.content-text{
    text-indent: 3rem;
    text-align: justify;
}

@media only screen and (max-width:900px){
    .content-text{
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 1;
        grid-row-end: 3;
    }
}

.content-text p{
    margin-top: 1rem;
}

.content-text hr{
    border: none;
    border-top: dotted;
    border-width: 0.5rem;
    border-color: var(--line-col);
    width: 2rem;
    background-color: transparent;
}

.content-media > *{
    width: 20vw;
    height: auto;
    margin-bottom: 1rem;
    
    transition: transform 0.5s, box-shadow 0.5s;
}

@media only screen and (max-width:900px){
    .content-media >*{
        width: 120px;
        min-height: 60px;
    }
}

.content-media iframe{
    height: 10vw;
}

.content-media >*:hover{
    transform: scale(1.05);
    box-shadow: 0px 5px 5px var(--shadow-col);
    cursor: pointer;
}

.content-info h3{
    margin-top: 1rem;
    margin-bottom: 0rem;
    font-size: 1.5rem;
}

.content-info p{
    margin: 0;
}

.content-info a{
    margin: 0;
    text-align: justify;
    font-weight: lighter;
    line-height: 2rem;
    font-size: 1.25rem;
    padding-left: 3px;
}

@media only screen and (max-width:900px){
    .content-info a{
        font-size: 1rem;
        line-height: 1.3rem;
    }

    .content-info h3{
        font-size: 1.1rem;
    }
}

.content-info a:hover{
    background-color: var(--line-col);
}

#not-found{
    text-align: center;
    position: relative;
    top: 45vh;
    text-shadow: 0px 10px 10px var(--shadow-col);
}

/* Image viewer */
#image-viewer-background{
    display: none;

    background-color: rgba(0,0,0,0.25);
    backdrop-filter: blur(5px) grayscale(50%) brightness(50%);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0px;
    left: 0px;
}

#image-viewer{
    position: fixed;
    width: 80vw;
    height: 40vw;
    margin: 0;
    left: 10vw;
    top: calc((100vh - 40vw)*0.5);
    background-color: var(--panel-col);
    border-width: 20px;
    border-radius: 1rem;
    box-shadow: 0px 10px 10px var(--shadow-col);
}

#image-viewer img{
    width: 100%;
    height: 100%;
    object-fit:contain;
    border-radius: 1rem;
}

#image-viewer .side-button{
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    width: 4%;
    height: 100%;
    top: 0;
    background-color: var(--light-transparent-col);
    cursor: pointer;
    backdrop-filter:blur(1px) grayscale(80%);

    transition: background-color 0.5s, backdrop-filter 0.5s;
}

#image-viewer p{
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0px 0px 10px black;
}

#image-viewer #to-left{    
    left: 0;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

#image-viewer #to-right{    
    top: calc(4rem + 2px);
    right: 0;
    height: calc(100% - 4rem - 2px);
    border-bottom-right-radius: 1rem;
}

#image-viewer #close{
    right: 0px;
    height: 4rem;
    border-top-right-radius: 1rem;
}

#image-viewer #close p{
    font-size: 2rem;
    font-weight: normal;
}

#image-viewer .side-button:hover{
    backdrop-filter:blur(3px) grayscale(100%);
    background-color: var(--strong-transparent-col);
}

@media (max-width:900px){
    .side-menu-item{
        width: 2rem;
    }
}

/*-LOGIN-*/
#login{
    display: flex;
    flex-direction: column;
    justify-self: center;
    /*width: 500px;*/
    min-height: min-content;
}

#login label{
    display:block;
    width: 100px;
}

#login input{
    width: 200px;
}

.error{
    color: var(--error-col);
    font-size: 0.7rem;
}

button{
    width: 100px;
    height: 25px;
    background-color: var(--panel-col-light);
    border-width: 0;
    border-radius: 12px;
    color: var(--tex-col);
    font-family: 'Commissioner', sans-serif;
    margin-top: 5px;
}

button:hover{
    box-shadow: 0px 2px 10px var(--shadow-col);
}

.new-project{
    width: 80%;
    height: 20%;
    font-size: 1rem;
    margin-top: 0;
}

.edit-button{
    position: absolute;
    top: 0px;
    left: 5px;
    width: 50px;
}

.edit-data{
    display: flex;
}

.edit-data > label{
    width: 10rem;
    text-align: right;
    padding-right: 0.5rem;
}

.edit-data > input,
.edit-data > a,
.edit-data > select,
.edit-data > textarea{
    width: 15rem;
    align-self: left;
}

.edit-data button{
    width: max-content;
    padding-left: 10px;
    padding-right: 10px;
    margin: 2px;
    background-color:var(--danger-col);
}

.delete-button{
    width: max-content;
    white-space: nowrap;
    margin: 2px;
    margin-bottom: 6px;
    background-color: var(--danger-col);
}

.flow-container{
    display: inline-block;
    width: 100%;
}

.flow-container > form{
    width: min-content;
    display: inline-block;
}

#create-project{
    width: 80%;
    position:absolute;
    top: 50%;
    left:50%;
    transform: translate(-50%,-50%);
    padding: 5px;
}

#create-project *{
    width: 100%;
    max-width: 100%;
    margin-top: 5px;
}