html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #E5D8B6;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    position: sticky;
}

.container {
    width: 85%;
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

h1, h2, h3 {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #b0b0b0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid lightgray;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: lightgray;
}

div {
    border-radius: 15px;
}

.name {
    font-family: Comfortaa, sans-serif;
    font-size: 40px;
}

a {
    text-decoration: none;
    font-weight: bold;
}

.instagram {
    font-size: 20px;
}

.instagram:hover {
    background: linear-gradient(to right, yellow, orange, red, purple, blue);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.linkedin:hover {
    color: aqua;
}

.github:hover {
    color: black;
}

.port:hover {
    color: lime;
}

img {
    border-radius: 30px;
    width: 200px;
    margin: 30px 30px 40px 10px;
    box-shadow: 4px 4px gray;
    border: 5px solid white;
    filter: grayscale(100%);
    transition: all 0.5s ease-in;
}

img:hover {
    transform: scale(1.11);
    filter: grayscale(0);
    box-shadow: 10px 10px 16px;
}

::selection {
    background-color: black;
    color: white;
}

.picture {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-right: 20px;
}

.media {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.quote {
    width: 80%;
    height: 80%;
    padding: 10px;
}

.pp {
    margin-bottom: 40px;
}

big {
    font-size: 150%;
    font-family: Arial, sans-serif;
}

.bubbles {
    position: fixed;
    width: 100%;
    height: 100vh;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 20px;
    height: 20px;
    background: gray;
    border-radius: 50%;
    box-shadow: 0 0 15px black;
    animation: rise 10s infinite linear;
    opacity: 0.8;
}

/* Keyframes for Bubble Animation */
@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-50vh) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

/* Responsive Media Queries */

/* Small devices (mobile phones, 600px and below) */
@media screen and (max-width: 600px) {
    body {
        height: auto;
    }

    .container {
        width: 90%; /* Increase width to avoid cutting off elements */
        margin: 10px auto;
        padding: 15px; /* Decrease padding */
    }

    .name {
        font-size: 28px; /* Smaller font size */
        text-align: center;
    }

    img {
        width: 150px; /* Smaller image width */
        margin: 10px auto; /* Center images */
    }

    .quote {
        width: 100%;
        height: auto;
        padding: 5px; /* Reduce padding */
        text-align: center;
    }

    .media {
        flex-direction: column; /* Stack elements vertically */
        align-items: center;
    }

    .picture {
        display: block; /* Stack images vertically */
        text-align: center;
    }

    table {
        font-size: 12px; /* Reduce font size for readability */
    }
}

/* Medium devices (tablets, 768px and below) */
@media screen and (max-width: 768px) {
    .container {
        width: 85%; /* Slightly reduce width */
        padding: 20px;
    }

    .name {
        font-size: 32px;
    }

    img {
        width: 160px; /* Slightly reduce image size */
        margin: 15px 10px; /* Decrease spacing */
    }

    .quote {
        width: 90%;
        text-align: left;
    }

    .media {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Large devices (desktops, 1024px and above) */
@media screen and (min-width: 1024px) {
    .container {
        width: 70%; /* Increase width */
        padding: 30px;
    }

    .name {
        font-size: 40px; /* Larger font size */
    }

    img {
        width: 200px;
        margin: 20px 20px 30px 10px;
    }

    .quote {
        width: 80%;
    }
}
