/* CSS stylesheet for the portfolio website */

html, body{
    margin: 0;
    height: auto;
    overflow: visible;
}

body {
    display: flex;
    flex-direction: column;
}

/* background video */
.bg-video {
    z-index: -10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* background overlay */ 
.overlay {
    z-index: -10;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

/* content styling */
main {
    flex: 1;
    margin: 8px;
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
}

main h1 {
    font-size: 200%;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
}

main p {
    font-family: "Cardo", serif;
    font-size: 125%;
}

/* styling for the cards containing the main content of the page */
.main-section {
    background-color: rgba(0, 0, 0, .9);
    border: 2px solid rgba(0, 0, 0, .9);
    border-radius: 10px; 
    box-shadow: 0px 0px 15px white;
    width: 90%;
    margin: 0 auto;
    margin-top: 2.5%;
    margin-bottom: 2.5%;
    padding: .5%;

    display: flex;
    align-items: center;
}

.main-section img {
    border-radius: 10px;
    width: 33%; /* Takes up 33% of the card */
    height: auto;
    object-fit: cover;
}

/* Default card behavior; has image*/
.card-details {
    width: 66%; /* Takes up 66% of the card */
    padding-left: 15px;
    text-align: left;
    margin: 0;
}

/* Override for cards without images */
.main-section.no-image .card-details {
  width: 100%;
}

.card-details ul li {
    font-family: "Cardo", serif;
    font-size: 125%;
    margin-bottom: 10px;
}

.card-details ul li a {
    font-family: "Cardo", serif;
    text-decoration: none;
}

.card-details a:hover {
    text-decoration: underline;
}

.card-details a {
    font-family: "Cardo", serif;
    text-decoration: none;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    margin-left: 8px;
    border-radius: 12px;
    border: 2px solid;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
}

/* navigation bar styling */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2;
}

header ul{
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    background-color: rgba(0, 0, 0, .9);
}

header ul li {
    float: left;
}

header ul li a {
    display: block;
    color: white;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

header ul li a:hover{
    background-color: rgba(255, 255, 255, .1);
}

/* header theme select styling */
header ul li button {
    display: block;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 100%;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    border: 0px;
    color: white;
    background-color: rgba(0, 0, 0, 0);
}

header ul li button:hover {
    background-color: rgba(255, 255, 255, .1);
}

/* footer styling */
footer {
    color: white;
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

footer ul {
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 1;
    list-style: none;
    background-color: rgba(0, 0, 0, .9);
}

footer li {
    float: left;
}

footer li a {
    display: block;
    color: white;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

footer li a:hover{
    background-color: rgba(255, 255, 255, .1);
}

footer p {
    color: white;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    text-align: center;
    margin: 0;   /* Reset any extra margin */
    padding: 14px 16px;
}