/*=================================== MAIN VARIABLES ===================================*/

:root {
    --body: #DFD5A5;
    --navbar-background: #DBAD6A;
    --navbar-a: #2A3D45;
    --subheading: #2A3D45;
    --other: #CF995F;
    --a-hover: blue;
    --heading: black;
}

@font-face {
    font-family: 'Nashville';
    src: url('../fonts/nashville_font/NASHVILL.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*================================= BASIC HTML ELEMENTS ================================*/

body {
    background-color: var(--body);
    font-family: Inconsolata, monospace;
    background: url('../pictures/background.jpeg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    z-index: 0;
    transition: margin-left 0.3s ease-in-out;
}

h3 {
    color: var(--subheading);
    font-size: 30px;
    font-weight: 700;
    margin-top: 50px;
    margin-left: 8%;
}

p {
    margin-left: 10%;
    margin-right: 10%;
    font-size: 18px;
    line-height: 30px;
}

img {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 5%;
    max-width: 90%;
    height: auto;
}

/*============================== GENERAL CLASSES AND IDS ===============================*/

#logo {
    filter: grayscale(100%) brightness(0%); 
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 500px;
}

.profile {
    border: 7px solid var(--other);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.75s ease-in-out;
}

.screenshot {
    border: 7px solid var(--other);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 5fr));
    align-items: center;
    gap: 10%;
    margin-bottom: 75px;
    margin-left: 70px;
}

#title {
    color: var(--heading);
    font-family: 'Nashville';
    font-size: 6rem;
    font-weight: 700;
    margin-top: 6rem;
    text-align: center;
}

/*============================= PAGE TITLE BOUNCE ANIMATION ============================*/

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

h1 span {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.bounce {
    animation: bounce 0.6s ease-in-out;
}

/*======================================== NAVBAR ======================================*/

#navbar {
    background-color: var(--navbar-background);
    position: fixed;
    margin-left: -10px;
    top: 0;
    width: 100%;
    z-index: 3;
}

#navbar li {
    display: inline-block;
    padding: 0px 20px;
}

#navbar a {
    text-decoration: none;
    color: var(--navbar-a);
}

#navbar a:hover {
    color: var(--a-hover);
}

/*======================================= SIDEBAR ======================================*/

#sidebar-toggle {
    position: fixed;
    top: 60px;
    left: 20px;
    z-index: 1000;
    padding: 10px;
    background-color: var(--navbar-background);
    border: none;
    cursor: pointer;
    transition: left 0.3s ease-in-out;
}

#sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: var(--navbar-background);
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 999;
    padding-top: 100px;
}

body.sidebar-open {
    margin-left: 250px;
}

body.sidebar-open #sidebar-toggle {
    left: 255px;
}

#sidebar.open {
    left: 0;
}

#sidebar h2 {
    padding: 10px;
    margin: 0;
    color: var(--navbar-a);
}

#sidebar-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#sidebar-links li {
    padding: 10px;
}

#sidebar-links a {
    color: var(--navbar-a);
    text-decoration: none;
}

#sidebar-links a:hover {
    color: var(--a-hover);
}

@media screen and (max-width: 768px) {
    #sidebar, #sidebar-toggle {
        display: none;
    }

    body.sidebar-open {
        margin-left: 0;
    }

    #main-content {
        margin-left: 0;
    }
}

button {
    font-size: 25px;
}

/*==================================== BOTTOM BLOCK ====================================*/

#bottom-block {
    background-color: var(--navbar-a);
    margin-top: 250px;
    padding-top: 0px;
    padding-bottom: 50px;
    margin-bottom: -10px;
    margin-left: -10px;
    margin-right: -10px;
}

.bottom {
    color: white;
    text-align: center;
    list-style-type: none;
}

.bottom li {
    display: inline-block;
    padding: 0px 5px;
}

/*========================== RELEASE UPDATES SHOW MORE BUTTON ==========================*/

#show-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: var(--navbar-background);
    color: var(--navbar-a);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

#show-more:hover {
    background-color: var(--other);
}

.link a:hover {
    color: var(--a-hover)
}

/*==================================== IMAGE GALLERY ===================================*/

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-images {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-image {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out;
    width: 60%;
    max-width: 400px;
}

.slider-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.slider-image h2 {
    margin-top: 10px;
    font-size: 1em;
    text-align: center;
}

.slider-image.prev {
    transform: translateX(-65%) scale(0.8);
    opacity: 0.7;
    z-index: 1;
}

.slider-image.current {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 2;
}

.slider-image.next {
    transform: translateX(65%) scale(0.8);
    opacity: 0.7;
    z-index: 1;
}

.slider-image.far-prev {
    transform: translateX(-65%) scale(0.6);
    opacity: 0;
    z-index: 0;
}

.slider-image.far-next {
    transform: translateX(65%) scale(0.6);
    opacity: 0;
    z-index: 0;
}

.slider-image.hidden {
    opacity: 0;
    z-index: 0;
}

#prevBtn, #nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-65%);
    font-size: 34px;
    cursor: pointer;
    border: none;
    background: none;
    z-index: 3;
}

#prevBtn {
    left: 10%;
}

#nextBtn {
    right: 10%;
}