/* Assign not-ugly font to body and make things easy to read */
body {
    font-family:'Abel', sans-serif;
    background-color: rgb(71, 69, 69);
    color: white;
    /* Remove default margin and padding */
    margin: 0;
    padding: 0;
}
h1 {
    margin-left: 10px;
}
h2 {
    margin-left: 10px;
}
h3 {
    margin-left: 10px;
}
h4 {
    margin-left: 10px;
}
h5 {
    margin-left: 10px;
}
h6 {
    margin-left: 10px;
}
p {
    margin-left: 20px;
    margin-right: 20px;
    background-color: rgba(0, 0, 0, 0.2); /* Black background with 50% transparency */
    border-radius: 15px; /* Rounded corners */
    padding: 10px; /* Padding inside the element */
    color: white; /* Text color for better readability */
    margin-bottom: 10px;
    transform: translateX(-100%);
    animation: slideIn 1s forwards;
}
p a {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

p a:hover {
    color: rgb(218, 56, 11);
}
li {
    margin-right: 20px;
}

.head {
    text-align: center;
    color: rgb(218, 56, 11);
}

.exp-head {
    text-align: center;
    text-decoration: underline;
    color: rgb(218, 56, 11);
}

ul {
    list-style-position: inside;
}

/* Let's make the navigation at the top of the page look better! */
.menu ul {
    list-style: none; /* No bullet points */
    display: flex; /* Row layout */
    /* Remove default margin and padding */
    margin: 0;
    padding: 0;
}
.menu li {
    margin-right: 20px; /* Space b/w items */
    position: relative;
}
.menu a {
    text-decoration: none; /* Links w/o underlines */
    color: rgb(255, 255, 255); /* Link color */
}
.menu a:hover {
    color: rgb(218, 56, 11); /* Change color on hover */
}
.dropdown {
    visibility: hidden;
    position: absolute;
    background-color: #333;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}
.dropdown li {
    padding: 12px 16px;
}
.dropdown li a {
    color: white;
    text-decoration: none;
}
.dropdown li a:hover {
    background-color: #575757;
}

.project-item:hover {
    filter: brightness(0.7);
}

.menu li:hover .dropdown {
    visibility: visible;
    display: block;
}
.navbar-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.name {
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
    margin-right: 20px;
    color: rgb(218, 56, 11);
}

.tech-list {
    list-style: none;
}

.variable {
    color: rgb(218, 56, 11);
    display: inline;
    white-space: nowrap;
}

/* Photo Gallery Styles */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    animation: popout 0.3s ease;
}
.gallery img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}
.gallery img:hover {
    filter: brightness(0.7);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}
.modal-content {
    margin: 15% auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    animation: popout 0.3s ease;
}
.modal-content img {
    width: 100%;
    max-width: 700px;
    border-radius: 5px;
}
.caption {
    margin-top: 10px;
    color: #ccc;
    text-align: center;
    font-size: 20px;
}
.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
    user-select: none;
}
.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.sect {
    background-color: rgba(0, 0, 0, 0.2); /* Black background with 50% transparency */
    border-radius: 15px; /* Rounded corners */
    padding: 10px; /* Padding inside the element */
    color: white; /* Text color for better readability */
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
    transform: translateX(-100%);
    animation: slideIn 1s forwards;
}
.sect:nth-child(2){
    animation-delay: 0.25s;
}

.year{
    margin-left: 20px;
    animation: popout 0.3s ease;
}

/* Popout animation */
@keyframes popout {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slide animation */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}