/* index.css is primarily used in the index.html home page, but
includes general styling used by all pages e.g. hyperlinks and tables */

* {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: regular;
    font-style: normal;
}

/* Container for animated background */
.bg-image {
    position: fixed;
    z-index: -1;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: transparent;
    top: 0;
    left: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(8px);
    animation: moveCircle 20s linear infinite;
    transform: scale(1);
    will-change: transform;
}

.circle:nth-child(1) {
    width: 150px;
    height: 150px;
    background: rgba(169, 169, 169, 0.5); /* dark grey */
    top: 10%;
    left: 20%;
    animation-duration: 25s;
}

.circle:nth-child(2) {
    width: 100px;
    height: 100px;
    background: rgba(192, 192, 192, 0.5); /* silver */
    top: 40%;
    left: 60%;
    animation-duration: 30s;
}

.circle:nth-child(3) {
    width: 200px;
    height: 200px;
    background: rgba(211, 211, 211, 0.5); /* light grey */
    top: 70%;
    left: 30%;
    animation-duration: 35s;
}

.circle:nth-child(4) {
    width: 120px;
    height: 120px;
    background: rgba(169, 169, 169, 0.5); /* dark grey */
    top: 20%;
    left: 70%;
    animation-duration: 40s;
}

.circle:nth-child(5) {
    width: 180px;
    height: 180px;
    background: rgba(192, 192, 192, 0.5); /* silver */
    top: 50%;
    left: 10%;
    animation-duration: 45s;
}

.circle:nth-child(6) {
    width: 140px;
    height: 140px;
    background: rgba(211, 211, 211, 0.5); /* light grey */
    top: 80%;
    left: 50%;
    animation-duration: 50s;
}

.circle:nth-child(7) {
    width: 160px;
    height: 160px;
    background: rgba(169, 169, 169, 0.5); /* dark grey */
    top: 30%;
    left: 80%;
    animation-duration: 55s;
}

.circle:nth-child(8) {
    width: 135px;
    height: 135px;
    background: rgba(192, 192, 192, 0.5); /* dark grey */
    top: 60%;
    left: 40%;
    animation-duration: 45s;
}

@keyframes moveCircle {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 50px) scale(1.1);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.page-container {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-left: 15%;
}

.content {
    flex: 1;
    padding: 2em;
    overflow-y: auto;
}

footer {
    font-size: 10px;
    padding: 1em;
    font-family: "Inter", sans-serif;
    text-align: center;
    max-width: 100%;
}


/* Hyperlinks in <p> bodies */
.body a {
    color: black;
    font-weight: bold;
    text-decoration: underline;
    transition: 0.3s ease;
}

.body a:hover {
    background-color: #68ca18;
    transition: 0.3s ease;
}

.body a:visited {
    color: black;
}

/* Hyperlinks in <footer> */
footer a {
    color: black;
    text-decoration: underline;
    transition: 0.3s ease;
}

footer a:hover {
    background-color: #68ca18;
    transition: 0.3s ease;
}

footer a:visited {
    color: black;
}

/* Tables */
table {
    border: 2px none black;
}

th {
    background-color: #68ca18;
}

th, td {
    padding: 1em;
}

td {
    background-color: #F8F8F8;
}

table .main {
    border-left: 2px solid black;
    background-color: #F1F1F1;
    width: 15%;
}

button {
    color: black;
    background-color: white;
    padding: 1em;
    font-size: 16px;
    cursor: pointer;
    transition-duration: 0.3s;
    border-style: solid;
    border-color: black;
    border-width: 2px 2px 2px 2px;
    display: flex;
    align-items: center;
}

button:hover {
    background-color: #68ca18;
    border-width: 2px 2px 4px 2px;
    transition-duration: 0.3s;
}

/* Image pop-up when clicked/tapped */
.clickable-image {
    transition: 0.3s ease;
}

.clickable-image:hover {
    cursor: pointer;
    transform: scale(1.03);
    transition: 0.3s ease;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s ease;
    background-color:rgba(0, 0, 0, 0.5)
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.form-container {
    display: flex;
    flex-direction: column;
    width: 40vw;
}

form {
    position: relative;
}

::placeholder {
    color: grey;
}

form input {
    position: relative;
    bottom: 5px;
    border: 1.5px solid black;
    outline: none;
    padding: 1em;
    width: 30vw;
    transition: 0.3s ease;
}

form input:focus {
    border-left: 3px solid #68ca18;
    transition: 0.3s ease;
}

form input:focus::placeholder {
    transition: 0.3s ease;
}

form textarea {
    border: 1.5px solid black;
    outline: none;
    padding: 1em;
    resize: none;
    width: 30vw;
    height: 15em;
    transition: 0.3s ease;
}

form textarea:focus {
    border-left: 3px solid #68ca18;
    transition: 0.3s ease;
}

form button[type="submit"] {
    position: relative;
    top: 0.2em;
}

.tiny-warning {
    font-size: 12px;
    color: grey;
}

.content-container {
    display: flex;
    padding: 1em;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.content-card {
    border-left:2px black solid;
    background-color: #b7b7b735;
    flex-direction: row;
    padding: 1em;
    margin: 0.2em;
    width: 25vw;
}

.text-center {
    text-align: center;
}

.overview-title {
    margin-bottom: 1em;
    text-align: center;
}

.home-title {
    font-weight: 800;
    font-variant: small-caps;
    font-size: 42px;
}

.home-body {
    text-align: center;
    font-size: 24px;
}

/* Experience card container */
.experience-card {
    padding-top: 2px;
    padding-left: 0.5em;
    /* margin: 1em 0; */
    border-left: 2px solid #0000004b;
    /* padding-left: 10px; */
    /* border-left: 2px black solid; */
    /* box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.1); */
}

.experience-card .title {
    font-size: 18px;
    font-weight: 700;
    /* margin-bottom: 0.5em; */
    color: #333; /* Darker text color */
}

/* Experience-info container */
.experience-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Employer */
.experience-info .employer {
    font-size: 14px;
    font-weight: 600;
    color: #555; /* Medium-dark text color */
    padding-right: 5px;
}

/* Date */
.experience-info .date {
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
}

/* Education */
.education-card {
    border-left: 2px solid #0000004b;
    padding-left: 10px;
}

.education-card p {
    font-size: 14px;
    color: #00000091;
    /* color: rgb(69, 69, 69); */
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
    .experience-card .title {
        font-size: 16px;
    }
    
    .experience-info .employer {
        font-size: 12px;
    }
    
    .experience-info .date {
        font-size: 10px;
    }

    .home-title {
        font-size:36px;
    }

    .home-body {
        font-size: 20px;
        text-align: center;
    }

    .content-card {
        width: 100vw;
    }

    .close {
        font-size: 30px;
        padding: 5px;
    }

    /* Center footer for mobile devices */
    footer {
        position: absolute;
        width: 85%;
    }

    .form-container {
        width: 60vw;
    }

    form input, form textarea {
        width: 70%;
    }

    .circle {
        filter: blur(8px);
    }

    .circle:nth-child(1) {
        width: 75px;
        height: 75px;
    }

    .circle:nth-child(2) {
        width: 50px;
        height: 50px;
    }

    .circle:nth-child(3) {
        width: 100px;
        height: 100px;
    }

    .circle:nth-child(4) {
        width: 60px;
        height: 60px;
    }

    .circle:nth-child(5) {
        width: 90px;
        height: 90px;
    }

    .circle:nth-child(6) {
        width: 70px;
        height: 70px;
    }

    .circle:nth-child(7) {
        width: 80px;
        height: 80px;
    }
}