/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    background-color: black; 
    margin: 0; 
    padding: 0;
}

.container {
    background-color: black; 
    padding: 0; 
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    touch-action: pan-y;
}

.topImage {
    position: relative; 
    top: 0; 
    left: 0;
    height: auto;
}

.fullImage {
    position: relative; 
    top: 0; 
    left: 0;
}

.overlayImage {
    position: absolute; 
    top: 10px; 
    right: 30px;
}

.portfolioDiv {
    display: flex;
    overflow: auto;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

.year {
    flex-basis: 100%;
}

.year h2 {
    text-align: center;
    color: grey;
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
    margin: 5px 0;
}

.jobs {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Display jobs in five columns */
    gap: 0;
    padding-top: 0;
}

.job {
    padding: 0;
    margin-bottom: 0;
    height: 100%;
}

.job button {
    padding: 0;
    margin-bottom: 0;
    height: 100%;
    width: 100%;
    border: none;
}

.jobOdd, .jobEven {
    height: 100%;
    display: flex; /* Use Flexbox */
    flex-direction: column; /* Arrange fields vertically */
    justify-content: center; /* Vertically center the fields */
    background-size: 0%;
    background-repeat: no-repeat;
    background-position: center;
}

.jobOdd:hover, .jobEven:hover, .jobOdd:active, .jobEven:active {
    background-size: contain;
}

.jobOdd:hover > .jobDetails, .jobEven:hover > .jobDetails, .jobOdd:active > .jobDetails, .jobEven:active > .jobDetails {
    opacity: 0.8;
}

.jobOdd {
    background-color: grey;
}

.jobEven {
    background-color: darkslategrey;
}

.jobDetails {
    height: auto;
    margin: auto;
    width: 90%;
}

.jobDetails p {
    margin: 7px 0;
}

.jobDetails .field p {
    padding: 0;
    text-align: center;
}

.contactDiv {
    display: none;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;
}

.contactDiv p {
    text-align: center;
    font-size: 30px;
    padding: 0;
    letter-spacing: 6px;
    font: "Courier";
}

.contactDiv img {
    width: 60px;
    height: auto;
    position: relative;
    display: block;
    margin: auto;
    filter: grayscale(1);
}

.contactDiv:hover img {
    filter: grayscale(0);
}

.footerContainer {
    background-color: black;
    position: fixed;
    height: 30px;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0;
    margin: 0;
}

.footer {
    border-top: 1px solid grey;
    z-index: 200;
    margin: auto;
}

.footer p {
    text-align: center;
    line-height: 0;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

h1 {
    color: grey; 
    text-align: center; 
    margin-top: 0;
    margin-bottom: 0; 
    font-size: 25px;
}

.menu h2:hover {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 5px;
}

h2 {
    color: white; 
    padding: 0 30px;
}

h3 {
    color: white; 
    padding-left: 40px;
}

p {
    color: white; 
}

a {
    color: white; 
    text-decoration: none;
}

.popup-container {
    background-color: black; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    bottom: 0; 
    left: 0; 
    right: 0;
    z-index: 1000;
    display: none;
    overflow: auto;
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
}

.popup-title-container {
    width: 100%; 
    height: 60px; 
    display: flex;
    margin-bottom: 20px;
    margin-top: 20px;
}

.popup-title-container p {
    text-align: center;
    color: white;
    margin: 0;
}

#popupTitle {
    font-size: 20px;
}

#popupYear {
    font-size: 18px;
}

.popup-title-column {
    flex-grow: 1;
    padding: 10px;
}

.popup-title-column img {
    height: 100%; 
    cursor: pointer; 
    float: right; 
    padding-right: 15px;
}

.popup-image-and-arrows {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between; /* Adjust alignment */
    width: 100%;
}

.popup-arrow {
    display: flex;
    align-items: center;
    padding: 2px;
    flex-shrink: 0; /* Prevent shrinking */
}

.popup-arrow img {
    width: auto;
    max-width: 60px;
    max-height: 60px;
    cursor: pointer;
    width: 100%;
}

.popup-image-container {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    width: 100%; /* Ensure full width */
    box-sizing: border-box;
}

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

@media (max-width: 800px) {
    .jobs {
        grid-template-columns: repeat(3, 1fr); /* Display jobs in three columns */
    }
}

@media (max-width: 500px) {
    .jobs p {
        font-size: 10px;
    }
}
