body {
    background-color: #3B3B3B;
    font-size: 40px;
    font-weight: bold;
    color: #4CAF50;
    font-family: Arial, sans-serif;
}
p {
    font-size: 55px;
    text-align: center;
}
.normaltext{
     font-size: 35px;
}
.nav_bar {
    background-color: #222222;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
}

.nav_bar a {
    display: block;
    padding: 10px 20px;
    border: 2px solid #4CAF50;
    text-decoration: none;
    color: #4CAF50;
    background-color: #222222;
    border-radius: 8px;
}

.nav_bar a:hover {
    background-color: #4CAF50;
    color: #222222;
}

.pics {
     width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
}
.notmepics {
     width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.edpics {
    width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.resume-viewer {
    width: 100%;
    margin: 40px auto;
    text-align: center;
}

.resume-viewer object {
    width: 50%;
    height: 1200px;
    display: block;
    margin: 0 auto;
}
.mylink {
    color: #0026FF;
}
mark {
    background-color: #4CAF50;
    color: #222222;
}



.gallery-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.gallery-section h2 {
    text-align: center;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.photo-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.photo-gallery img:hover {
    transform: scale(1.03);
}



/* TryHackMe writeup table */
.thm-section {
    max-width: 1100px;
    width: calc(100% - 40px);
    margin: 40px auto;
    box-sizing: border-box;
}

.thm-section h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 25px;
}

.thm-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
    font-weight: normal;
    color: #4CAF50;
}

.thm-table th,
.thm-table td {
    padding: 16px;
    border: 1px solid #555;
    text-align: left;
    overflow-wrap: anywhere;
}

.thm-table th {
    background-color: #222;
    font-weight: bold;
}

.thm-table td {
    background-color: #303030;
}

.thm-table a {
    color: #4CAF50;
    text-decoration: underline;
}

.thm-table a:hover {
    color: white;
}

/* iPhone and other small screens */
@media (max-width: 600px) {
    .thm-section {
        width: 100%;
        margin: 25px auto;
    }

    .thm-section h2 {
        font-size: 24px;
    }

    .thm-table,
    .thm-table tbody,
    .thm-table tr,
    .thm-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .thm-table thead {
        display: none;
    }

    .thm-table tr {
        margin-bottom: 18px;
        border: 1px solid #555;
        border-radius: 8px;
        overflow: hidden;
    }

    .thm-table td {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
        border: none;
        border-bottom: 1px solid #555;
        font-size: 15px;
    }

    .thm-table td:last-child {
        border-bottom: none;
    }

    .thm-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: white;
    }
}



/* Mobile / iPhone */
@media (max-width: 600px) {

    body {
        font-size: 20px;
        margin: 0;
        padding: 0 15px;
    }
    .normaltext{
     font-size: 15px;
    }

    .nav_bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 10px;
    }

    .nav_bar a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    h2 {
        font-size: 28px;
    }

    p {
        font-size: 18px;
    }

    .pics {
        width: 180px;
        height: 180px;
    }
    .notmepics {
     width: 180px;
    height: 180px;
    }
    .edpics {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    }

    .resume-viewer {
        width: 100%;
    }
    .resume-viewer object {
        width: 100%;
        height: 500px;
    }

        .photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-section {
        padding: 0 10px;
    }
  
}
