/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #333;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
    overflow: scroll;
    overflow-y: auto;
    overflow-x: hidden;
}

button {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    border: none;
    border-radius: 0;
    padding: .75rem;
    background-color: #dcdcea;
    cursor: pointer;
    transition: background-color 0.3s ease box-shadow 0.3s ease transform 0.3s ease;
}

button:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Close button inside the sidebar */
.sidebar .close-btn {
    font-size: 30px;
    color: white;
    background: none;
    border: none;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    display: none;
    /* Hide by default */
}

/* Header for mobile view */
.mobile-header {
    display: none;
    position: fixed;
    width: 100%;
    /* Initially hidden */
    background-color: #333;
    color: white;
    padding: 10px 20px;
    justify-content: space-between;
    align-items: center;
}

.mobile-header h1 {
    font-size: 24px;
}

.menu-btn {
    font-size: 30px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}

.sidebar h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: left;
}

.sidebar-menu {
    list-style: none;
    height: 100%;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
    width: auto;
}

.sidebar-menu li a,
.sidebar-menu li span {
    font-size: 14px;
    color: white;
    text-decoration: none;
    padding-left: 0;
    display: block;
    transition: color 0.3s ease;
}

.nested-menu {
    list-style: none;
    padding-left: 20px;
    /* Indentation for nested items */
}

.nested-menu li {
    margin-bottom: 8px;
}

.nested-menu li a {
    font-size: 16px;
}

.sidebar nav {
    flex-grow: 10;
}

.sidebar nav ul {
    list-style: none;
    width: auto;
    padding: 0;
}

.sidebar nav ul li {
    margin-bottom: 15px;
}

.nested-menu-sequel {
    margin-left: 20px;
}

a.secret-link {
    color: rgb(51, 51, 51) !important;
}

a.secret-link:hover {
    color: #868996 !important;
}

.sidebar nav ul li a {
    color: rgb(188, 188, 188);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    margin-left: 15px;
    width: auto;
}

.sidebar nav ul li a.current-page {
    color: rgb(234, 234, 234);
}

.sidebar nav ul li a:hover {
    color: #ffffff;
    /* Highlight color */
}

.dropdown a:hover {
    text-decoration: none;
}

/* Skill section */
.skills-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.spacer {
    flex: 1;
    /* Spacer takes up the remaining space */
}

.column {
    position: relative;
    flex: 3;
    padding: 4rem;
    background-color: #fafafa;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    z-index: 0;
    min-width: 400px;
}

.gallery-wrapper {
    text-align: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.gallery-wrapper *:not(:last-child) {
    margin-bottom: 3rem;
}

.column img {
    width: 100%;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.dark-background {
    background-color: #333 !important;
}

/* Skill bar */
.skill {
    margin-bottom: 15px;
}

.skill p {
    margin: 0;
    font-size: 18px;
}

.progress-bar {
    width: 100%;
    background-color: #dddddd;
    border-radius: 10px;
    height: 10px;
    margin-top: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #b4b4c5;
    border-radius: 10px;
}

/* About Section Styling */
.cut-in-bg {
    background-color: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    z-index: 4;
    position: relative;
}

.top-margin {
    margin-top: 4rem;
}

p.top-margin {
    margin-top: 2rem !important;
}

p.margin-bottom {
    margin-bottom: 2rem !important;
}


h2.no-margin {
    margin: 0;
}

.column.short {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.bottom-margin {
    margin-bottom: 4rem;
}



.page-heading {
    background-color: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-top: 4rem;
    font-size: 2.5rem;
    display: inline-block;
    padding-left: 10%;
    padding-top: 1rem;
    padding-right: 5rem;
    padding-bottom: 1rem;
}

.cut-in-content {
    width: 80%;
    padding-top: 5rem;
    padding-bottom: 5rem;
    margin: 0 auto;
}

#pdf-frame {
    width: 700px;
    margin: 5rem auto;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.hori-flex {
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 0rem;
    justify-content: center;
    align-items: center;
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 a {
    text-decoration: none;
    color: #333;
}

h2 a:hover {
    color: #868996;
}

.cut-in-bg p {
    font-size: 1.2rem;
    line-height: 170%;
    margin: 0 auto;
    max-width: 900px;
}

/* Projects Section Styling */

.right-aligned {
    display: flex;
    width: 70%;
    margin: 0 auto;
    justify-content: space-between;
}

.mirror {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.project-list {
    display: block;
    margin-top: 3rem;
}

.project-item {
    background-color: rgba(255, 255, 255, 0.8);
    /* Slight transparency */
    border-radius: 15px;
    overflow: hidden;
    width: 90%;
    margin: 2rem auto;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.thumbnail {
    width: 50%;
    object-fit: cover;
}

.project-content {
    padding: 2rem;
    flex: 1;
}

.project-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn {
    text-decoration: none;
    color: white;
    background-color: #b1b5c7;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background-color: #868996;
}

.custom-pentagon {
    width: 300px;
    background-color: #ed5c2f;
    aspect-ratio: 1/2;
    clip-path: polygon(0 0, 80% 0, 100% 10%, 100% 100%, 0 100%);
    /* Creates a pentagon-like shape with a cut-off corner */
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #222;
    color: white;
    margin-top: 2rem;
}

.gallery-wrapper-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.cut-in-vertical-images {
    display: flex;
    gap: 3rem;
    flex-direction: column;
    align-items: center;
    background-color: #fafafa;
    padding: 3rem;
    box-shadow: inset 0 8px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.cut-in-vertical-images img {
    width: 256px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.self-photo {
    margin-bottom: 1rem;
    width: 256px;
    height: auto;
}

#animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

/* Wrapper for centering the video and limiting its max width */
.center-game-wrapper {
    display: flex;
    justify-content: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

#shrink-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transform-origin: 0 0; /* Ensures transformation starts at top-left */
    zoom: 0.5; /* Adjust this value to zoom out (0.5 = 50% of the size) */
}

.center-game {
    position: relative;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio (9/16 * 100) */
    height: 0;
}

.under-frame-disclaimer {
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 400;
    font-size: 1rem;
}

#shrink-iframe-parent {
    padding-bottom: 59.70% !important;
    background-color: #fff;
}

/* Responsive iframe */
.center-game iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.standard-list {
    list-style-type: none;
}

.standard-list>li {
    display: flex;
    align-items: center;
}

.standard-list>li:not(:last-child) {
    margin-bottom: 8px;
}

.standard-list>li>img,
.standard-list>li>em {
    margin-right: 0.5rem;
}

.standard-list>li>a {
    text-decoration: none;
    transition: color 0.3s ease;
    color: #333;
}

.standard-list>li>a:hover {
    color: #aaa;
}

p.small-text-p {
    line-height: 2em;
    font-size: 1em;
}

p a:hover, h3 a:hover {
    color: #868996;
}

p a, h3 a {
    color: #333;
}

.small-text-p:not(:first-of-type) {
    margin-top: 2rem;
}

/* Content section styles */
.content {
    margin-left: 250px;
    /* Leave space for the sidebar */
}

/* Sidebar for larger screens */
@media (min-width: 769px) {
    .sidebar .close-btn {
        display: none;
        /* Ensure close button is hidden on large screens */
    }

    .center-game-wrapper {
        width: 60%;
    }
}

@media (max-width: 1443px) {
    #about-spacer {
        display: none;
    }


    .cut-in-with-vertical-images {
        display: none;
    }

}

@media (max-width: 1275px) {
    #skills-spacer {
        display: none;
    }
}

/* Responsive Design for Full-Width Items */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        /* Hidden off-screen by default */
        width: 100%;
        /* Full width when shown */
        box-shadow: none;
    }

    .mobile-header {
        display: flex;
        margin-bottom: 5rem;
        z-index: 100;
        box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
        
        /* Show the header with name and menu button */
    }

    .content {
        margin-left: 0;
        padding-top: 4rem;
        /* Reset margin */
    }

    .sidebar.open {
        transform: translateX(0);
        /* Slide in the sidebar */
    }

    .sidebar .close-btn {
        display: block;
        /* Ensure close button is hidden on large screens */
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .mobile-header h1 {
        font-size: 18px;
    }

    .menu-btn {
        font-size: 24px;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    #pdf-frame {
        width: 90%;
    }
}