* {
    box-sizing: border-box;
}

body, .container {
    overflow: auto;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #4b4a4a;
    color: #fff;
}

header, footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

footer {
    position: relative;
    bottom: 0;
}

.container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    height: 100%;
}

.container-left, .container-right {
    padding: 20px;
}

.container-left {
    background-color: #40443f;
}

.container-right {
    background-color: #4b4a4a;
}

.project-container {
    display: grid;
    grid-template-columns: 3fr 4fr;
    flex-wrap: wrap;
}

.project-container-left {
    padding: 20px;
    background-color: #3b5335;
}

.project-container-right {
    padding: 0px;
    background-color: #3b5335;
    border: #3b5335;
    border-style: solid;
    border-width: 20px;
}

img {
    min-width: 200px;
    max-width: 100%;
    height: auto;
    display: block;
}

img:hover {
    transform: scale(1.2) translateX(-10%);
    transition: transform 0.4s ease;
}

img.fullscreen {
    position: fixed;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    object-fit: contain;
    z-index: 999;
    cursor: zoom-out;
}

img.fullscreen:hover {
    transform: scale(1.1);
}

.back-button {
    position: fixed;
    top: 95%;
    left: 50%;
    width: 40%;
    transform: translateX(-50%);
    font-size: large;
    background-color: #ffffff;
    color: #000000;
    padding: 10px 20px; /* Adjusted padding to make the button longer */
    border: 2px solid black;
    border-radius: 10px; /* Increased border radius for a prettier look */
    cursor: pointer;
    z-index: 999;
}

h1, h2 {
    color: rgb(77, 228, 190);
}

a {
    color: #65dde6;
    text-decoration: none;
}

.project {
    margin-bottom: 30px;
}

.project h2 {
    color: rgb(165, 235, 208);
    margin-top: 0;
}

.project p {
    margin-bottom: 10px;
}

/* Media Queries for Mobile Layouts */
@media only screen and (max-width: 600px) {
    .container {
        grid-template-columns: 1fr;
    }

    .container-left, .container-right {
        padding: 10px;
    }

    .project-container {
        grid-template-columns: 1fr;
    }

    .project-container-left, .project-container-right {
        padding: 10px;
    }

    img:hover {
        transform: none;
        transition: none;
    }

    img.fullscreen {
        top: 10%;
        left: 0%;
        width: 100%;
        height: 80%;
    }

    .back-button {   
        top: 90%;
        font-size: 24px; /* Increased font size */
        padding: 15px 30px; /* Increased padding for a larger button */
    }
}


.tag.python {
    background-color: #3572A5;
    color: white;
}

.tag.pytorch {
    background-color: #EE4C2C;
    color: white;
}

.tag.csharp {
    background-color: #0f5800;
    color: white;
}

.tag.unity {
    background-color: #222C37;
    color: white;
}

.tag.tensorflow {
    background-color: #FF6F00;
    color: white;
}

.tag.nodejs {
    background-color: #68A063;
    color: white;
}

.tag.html {
    background-color: #E34F26;
    color: white;
}

.tag.css {
    background-color: #1572B6;
    color: white;
}

.tag.javascript {
    background-color: #F7DF1E;
    color: black;
}

.tag.d3js {
    background-color: #F9A03C;
    color: white;
}

.tag.mongodb {
    background-color: #47A248;
    color: white;
}

.tag.postgresql {
    background-color: #336791;
    color: white;
}

.tag.redis {
    background-color: #D92B21;
    color: white;
}

.tag.rabbitmq {
    background-color: #FF6600;
    color: white;
}

.tag.docker {
    background-color: #2496ED;
    color: white;
}

/* Common styles for all tags */
.tag {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 3px;
    font-size: 0.8em;
}
