* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
}

/*-----------------------Sidebar--------------------------*/
.sidebar {
    width: 18%;
    background-color: rgb(21, 21, 21);
    text-align: center;
    color: #f1dec0;
    font-size: 17px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: fixed;
    height: 100%;
    padding: 20px;
}

.sidebar .top-text {
    margin-top: 20px;
}

.sidebar .categories{
    margin-top: 30%;
    font-weight: bold;
    font-size: 25px;
}

.category-link {
    text-decoration: none;
    color: #f1dec0; /* Default color */
}
.active {
    color: #d94400; /* Active category color */
}

.sidebar .categories a:hover{
    color: #eb6b1b;
}

.social-icons{
    width: 18%;
    position: fixed;
    bottom: 30px;
    right: 0px;
    left: 0px
}

.social-icons a{
    text-decoration:none;
    text-align: center;
    font-size: 30px;
    color: #353535;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover{
    cursor: pointer;
    color: #eb6b1b;
    transform: translateY(-5px);
}

.menu{
    display:none;
}




/*----------------Gallery-------------------*/
.gallery-container{
    margin-left: 18%;
    max-height: 100vh;
    width: 82%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #272727;
    overflow-x: hidden;
    overflow-y: auto; 
}

.gallery-container ul{
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 8px 
}

/*.gallery-container ul::after {
    content:"";
    flex-grow: 10;
}this code shrinks the last image*/

.image{
    height: 80vh;
    flex-grow: 1;
    margin: 8px;
    overflow: hidden;
    position: relative;
}

.imageS{
    height: 50vh;
    flex-grow: 1;
    margin: 8px;
    overflow: hidden;
    position: relative;
}
.imagethin{
    height: 20vh;
    flex-grow: 1;
    margin: 8px;
    overflow: hidden;
    position: relative;
}

.imagefull{
    flex-basis: 100%;
    flex-grow: 1;
    margin: 8px;
    overflow: hidden;
    position: relative;
}
.imagefull > * {max-width:100%;}

.image2{
    height: 50vh;
    flex-basis: 47%;
    flex-grow: 1;
    margin: 8px;
    overflow: hidden;
    position: relative;
}
.image2d{
    height: 62vh;
    flex-grow: 1;
    margin: 8px;
    overflow: hidden;
    position: relative;
}

.image3{
    height: 50vh;
    flex-basis: 30%;
    flex-grow: 1;
    margin: 8px;
    overflow: hidden;
    position: relative;
}

.image4{
    height: 50vh;
    flex-basis: 22%;
    flex-grow: 1;
    margin: 8px;
    overflow: hidden;
    position: relative;
}
.image2 video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    display: block;
}
.image3 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    display: block;
}
.image4 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    display: block;
}

.text p {
    margin: 10px;
    padding: 5% 10%;
    text-align: center;
    background-color: rgb(21, 21, 21);
    color: #f1dec0;
}

li img {
    max-height: 100%;
    min-width: 100%;
    object-fit: cover;
    vertical-align: bottom;
    transition: transform 0.5s;
}
li .image p {
    max-height: 100%;
    min-width: 100%;
    object-fit: cover;
    vertical-align: bottom;
    transition: transform 0.5s;
}
li video {
    max-height: 100%;
    min-width: 100%;
    object-fit: cover;
    vertical-align: bottom;
    transition: transform 0.5s;
}


li:last-child {
    flex-grow: 10;
}

/*-------------------Overlay---------------------*/

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 172, 30, 0); /* Transparent */
    color: rgba(240, 222, 192, 0);
    font-size: 24px;
    transition: background 0.3s;
    transition: color 0.3s;
}

.overlay a{
    text-decoration: none;
    color: rgba(240, 222, 192, 0);
}

li .overlay:hover {
    visibility: visible;
    background: #eb6b1ba8; /* Transparent */
    color: rgba(240, 222, 192, 1);
    transform: scale(1.1);
    cursor: pointer;
}
li .overlay:hover a{
    color: rgba(240, 222, 192, 1);

}

.wip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: top;
    justify-content: top;
}

/*-------------------Fullscreen--------------------*/
/* Fullscreen Overlay */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;

}
.fullscreen-overlay video {
    max-width: 90%;
    max-height: 90%;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #f1dec0;
    cursor: pointer;
}

/*-------------------Next Page---------------------*/

#nextpage{
    position: relative;
    margin-top: 20px;
}

#nextpage p{
    margin: 0 20%;
    margin-bottom:20px;
}

#nextpage a{
    text-decoration: none;
    color: #f1dec0;
    font-size: 17px;
    transition: color 0.5s;
    display: flex;
    width: 300px;
}

#nextpage a:hover{
    cursor: pointer;
    color: #eb6b1b;
}

.right-icon{
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-icon{
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*-------------------------About me-------------------------*/

.chat-container{
    margin-left: 18%;
    max-height:100vh;
    width: 82%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #272727;
    overflow-x: hidden;
    overflow-y: auto; 
    color: #f1dec0;
    font-size: 17px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

.chat-container img{
    float:right;
    width:40%;
    margin-left: 20px
}

.chat-container h{
    margin-top: 50px;
    font-weight: bold;
    font-size: 25px;
}

.chat-container span{
    font-weight: 100;
    font-size: 15px;
    color: #f1dec084;
    font-style: italic;
}

.chat-container ul{
    list-style: none;
}
.chat-container li{
    margin-bottom: 7px;
}

.lists{
    margin: 40px 0;
}


.chat-container a{
    text-decoration: none;
    transition: color 0.5s;
    color: #f1dec0;
}

.chat-container a:hover{
    cursor: pointer;
    color:#eb6b1b;
}

.downloadCV{
    width: 20%;
    text-align: center;
    background-color: rgb(21, 21, 21);
    padding: 10px;
    margin: 15px 0;
}

.chat-container i{
    margin-right: 15px;
    margin-bottom: 15px;
}

.postscript{
    font-weight: 100;
    font-size: 15px;
    color: #f1dec084;
    font-style: italic;
}

/*----------------Phone Screen---------------------*/
@media only screen and (max-width: 600px){
    .sidebar {
        position: fixed;
        top: 0px;
        left: -200px;
        width: 200px;
        height: 100vh;
        font-size: 15px;
        padding: 20px;
        z-index:2;
        transition: left 0.5s;
    }
    .social-icons{
        margin-top: 180%;
    }
    .sidebar .categories{
        margin-top: 80%;
    }
    
    .gallery-container{
        margin-left: 0px;
        width: 100%;
    }
    .chat-container{
        margin-left:  0px;
        width: 100%
    }
    .overlay {
        font-size: 20px;

    }
    .image{
        height: 30vh;
    }
    
    .imageS{
        height: 20vh;

    }

    .menu{
        display: block;
        margin: 3% 3% 0 3%;
        font-size: 20px;
        color:#f1dec0
    }
    .menu i:hover{
        cursor: pointer;
        color: #eb6b1b;
    }
    .downloadCV{
        width: 40%;
    }
    .chat-container img{
        display: none;

    }
}
