@font-face {
    font-family: 'Space Mono Bold';
    src: url('assets/SpaceMono-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Space Mono Regular';
    src: url('assets/SpaceMono-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inconsolata';
    src: url('assets/Inconsolata-Bold.ttf');
}

/* --- SCROLLBAR --- */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #C5B7F0;
}

::-webkit-scrollbar-thumb:hover {
    background: #8A7AF5;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    padding: 40px 10%;
    background-color: #111;
    color: #444;
}

/* --- MAIN CODE --- */

section {
    padding: 20px;
    padding-bottom: 40px;
    margin-bottom: 20px;
    background-color: #444;
    border-radius: 2px;
}

section>div {
    margin: 10px;
}

h1 {
    text-align: center;
    margin-top: 0px;
    font-family: 'Space Mono Regular';
    font-size: 48px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a:hover {
    color: rgb(255, 179, 0);
    transition: .3s;
}

h2 {
    font-size: 28px;
    text-align: left;
    line-height: 1;
    border-bottom: 1px solid #FFF;
    padding-bottom: 15px;
    font-family: 'Inconsolata';
    margin-left: 10px;
    color: #FFF;
}

img {
    margin: 10px;
    width: 65%;
    display: flex;
}

p {
    margin: 10px;
    font-family: 'Inconsolata';
    float: right;
    width: 30%;
    display: flex;
    font-size: 16px;
}

/* IMAGE GRID */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    margin: 20px;
    border-radius: 10px;
}

.images {
    width: 100%;
    padding-top: 100%; /* Create a square container based on its width */
    position: relative;
    background-color: white;
    overflow: hidden; /* Hide overflowing parts of images */
    text-align: center;
    border-radius: 10px;
}

.images img {
    max-width: 100%;
    max-height: 100%; /* Ensure the image doesn't overflow the container */
    width: auto;
    height: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto; /* Center the image both horizontally and vertically */
}

.overlay {
    position: absolute;
    padding-top: 2%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-family: Space Mono Regular;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 10px;
}

.images:hover .overlay {
    opacity: 1; /* Show the overlay on hover */
}

.text {
    font-size: 18px; /* Adjust the font size as needed */
}

/* Responsive design for tablets */
@media (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive design for phones */
@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}