:root {
  --background: rgb(199, 199, 199);
  --main: rgb(255, 255, 255);
  --text: rgb(0, 0, 0);
  --leftObject: rgb(50, 169, 86);
  --rightObject: rgb(84, 181, 200);
  --link: rgb(103, 138, 255);
  --linkHover: rgb(253, 56, 56);
}

body,html{
    background-color: var(--background);
    font-family: 'Lexend';
    margin: 0;
}

.main{
    background-color: var(--main);
    width: 65%;
    margin: 0 auto;
    padding-top: 2.5%;
    padding-bottom: 15%;
}

.container{
    width: 90%;
    margin: 0 auto;
    gap: 15px;
}

.left{
  width: 50%;
}

.right{
  width: 50%;
}

p{
    margin: 0;
    color: var(--text);
}

.profile{
    display: flex;
}

.profile img{
    margin-right: 10px;
    width: 50%;
}

.object{
    margin: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
    color: var(--text);
}


.highlightText{
    color: var(--highlightText);
}

.inner{
    padding: 5px;
}

table{
    width: 100%;
}

a{
    color: var(--link);
    text-decoration: none;
}

a:hover{
    color: var(--linkHover);
    text-decoration: underline;
}

table a,table a:visited{
    color: var(--text);
    text-decoration: none;
}

h1{
    margin: 0;
    margin-bottom: 10px;
}

.section{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.app{
    width: 100%;
    border: 1px solid rgb(0,0,0);
    text-align: center;
}

.app img{
    margin: 5%;
    width: 90%;
    height: auto;
}

.development{
    background-color: rgb(171, 122, 48);
    color: rgb(255,255,255);
    font-size: 30px;
    text-align: center;
}

.finished{
    background-color: rgb(80, 195, 103);
    color: rgb(255,255,255);
    font-size: 30px;
    text-align: center;
}

h3{
    font-size: 25px;
}

.app .desc{
    margin-bottom: 15px;
}

.desc{
    font-size: 20px;
}

.subcontainer{
    display: flex;
}

.gap{
    margin: 5%;
}

.center{
    text-align: center;
}

.banner{
    text-align: center;
    width: 100%;
}

iframe{
    width: 100%;
}

.iframe{
    width: 100%;
    height: 50vmin;
}

#iframe{
    width: inherit;
    height: inherit;
}

.control{
    display: flex;
    justify-content: left;
    align-items: center;
    height: 50px;
}

.key{
    image-rendering: pixelated;
    width: 50px;
}

#controls{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 5%;
}

.control{
    font-size: 20px;
}

.action{
    font-size: 20px;
}

.gallery{
    display: flex;
    overflow-x: auto;
    width: 100%;
    gap: 15px;
    padding: 15px;
    background-color: #452D32;
}

.gallery img{
    width: 50%;
}

.gallery img:active{
    position: fixed;
    width: 25%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2); 
}

.gallery::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.gallery::-webkit-scrollbar-track {
  background: #452D32;
}

.gallery::-webkit-scrollbar-thumb {
  background: #BD9ADF;
}

.gallery::-webkit-scrollbar-thumb:hover {
  background: #83769C;
}

/* media queries */

@media screen and (max-width: 1390px) {
    nav{
        width: 90%;
    }
    .main{
        width: 90%;
    }
}

@media screen and (max-width: 950px) {
    nav{
        width: 95%;
    }
    .main{
        width: 95%;
    }
}

@media screen and (max-width: 1000px) {
    .subcontainer{
        display: block;
    }
    .left,.right{
        width: 100%;
    }
}


@media screen and (max-width: 900px) {
    nav{
        width: 100%;
    }
    .main{
        width: 100%;
    }
}


@media screen and (max-width: 550px) {
    #controls{
        grid-template-columns: repeat(1,1fr);
        width: 100%;
    }
    .action,.control{
        display: flex;
        margin: 0 auto;
        width: 100%;
    }
}