body {
	background: linear-gradient(to bottom, #1e252d 0%, #39424e 100%);
	font-family: "Source Sans Pro", Helvetica, sans-serif;
}

h1 {
    font-size: 50; /* Adjust the size as needed */
	font-family: "Source Sans Pro", Helvetica, sans-serif;
    letter-spacing: 2px; /* Adjust the spacing between letters */
}

p, ul {
    color: grey;
}

.fa-linkedin .fab {
    padding: 0px;
    margin: 0px;
}

.responsive-image {
    width: 50% !important; /* Full width on small devices */
    border: 1px solid lightgrey;
}

.banner-text {
    position: relative;
    color: white;
    text-align: center;
    /* border: 1px solid #000; Just to show the container */
}

.banner-text p {
    position: relative;
    color: white;
    text-align: center;
    font-style: italic; /* Makes the text italic */
    font-size: 20px; /* Sets the font size to 16px */
}

.banner {
    position: relative;
    width: 82rem;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.banner-photo {
    position: absolute;
    top: 0px; /* Align top edge to the top of the container */
    right: 3%; /* Align right edge to the right of the container */
    width: 150px;
    height: auto;
}

.banner-photo img {
    position: relative; /* Positioning it absolutely inside the relative container */
    border-radius: 50%;
    width: 100%;
    z-index: 3;
}

.main {
    background-color: white;
    width: 82rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0;

}

.main img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    margin-bottom: 10px;
    margin-top: 10px;
}

.main p {
    margin: 0; /* Removes the default margin */
    padding-left: 5%; /* Padding set to 50px */
    padding-right: 5%; /* Padding set to 50px */
    padding-bottom: 3%; /* Padding set to 50px */
    line-height: 1.5; /* Add spacing between lines of text */
}

.main ul {
    margin: 0; /* Removes the default margin */
    padding-left: 10%; /* Padding set to 50px */
    padding-right: 5%; /* Padding set to 50px */
    padding-bottom: 3%; /* Padding set to 50px */
}

.main li {
    padding-bottom: 10px; /* Padding set to 50px */
}

.main h1 {
    margin: 0; /* Removes the default margin */
    text-align: center;
    padding: 70px; /* Padding set to 50px */
    text-transform: uppercase; /* Capitalizes all the text */
    font-size: 20;
    font-weight: bold; /* Makes the text bold */
}

.skills {
    color: rgb(55, 55, 55);
    margin: 0; /* Removes the default margin */
    text-align: center;
    font-style: italic;
    padding-bottom: 20px;
}

.content-label {
    color: rgb(55, 55, 55);
    margin: 0; /* Removes the default margin */
    text-align: center;
    font-style: italic;
}

.skills p {
    color: rgb(55, 55, 55);
}

.main h3 {
    margin: 0; /* Removes the default margin */
    padding-top: 3%; /* Padding set to 50px */
    padding-bottom: 2%; /* Padding set to 50px */
    border-top: 1px dotted; /* Only bottom border is dotted */

    padding-left: 5%; /* Padding set to 50px */
    padding-right: 5%; /* Padding set to 50px */
    font-size: 20;
    font-weight: bold; /* Makes the text bold */
}

.main h4 {
    color: rgb(0, 0, 0);
    margin: 0; /* Removes the default margin */
    padding-top: 3%; /* Padding set to 50px */
    padding-bottom: 2%; /* Padding set to 50px */
    padding-left: 5%; /* Padding set to 50px */
    padding-right: 5%; /* Padding set to 50px */
    font-size: 18;
}

.main h2 {
    margin: 0; /* Removes the default margin */
    padding-top: 3%; /* Padding set to 50px */
    padding-bottom: 3%; /* Padding set to 50px */
    padding-left: 3%; /* Padding set to 50px */
    padding-right: 3%; /* Padding set to 50px */
    font-size: 20;
    font-weight: bold; /* Makes the text bold */
}

.main iframe {
    padding-top: 20;
    width: 100%;
    height: 100%;
}

.title-image {
    position: relative;
    width: 100%; /* Ensure the container takes the full width of its parent */
    height: auto; /* Adjust height as needed or keep it auto */
    overflow: hidden; /* Optional: Ensures no part of the image spills out */
}

.title-image img {
    width: 100%;
    height: 20%; /* Set a fixed height */
    object-fit: cover; /* Crop and cover the area without distorting the aspect ratio */
    padding: 0 !important;
    margin: 0 !important;
}

.title-image h1 {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust position to the exact center */
    color: rgb(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.8); /* Slightly transparent background */
    text-align: center;
    padding: 10px 10px; /* Increased padding for better visual separation */
    margin: 0px; /* Important to keep it at zero */
    font-size: 24px; /* Larger font size */
    font-weight: bold; /* Bolder font for better readability */
    white-space: nowrap;
    border-radius: 10px;
}

.article-heading {
    padding-left: 3%;
}

.welcome-container {
    display: flex;
    align-items: center; /* Keeps items vertically aligned in the middle */
    height: 450px;
    padding: 0px;
    margin: 0px;
}

.welcome-message {
    flex: 1; /* Takes up 1 part of the available space */
    padding: 0;
    text-align: center;
}

.welcome-video {
    flex: 2;
    padding: 0;
    margin: 0;
    /* display: flex; */
    display: none;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.welcome-video iframe {
    padding: 10px;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: white;
}

.article {
    position: relative; /* Ensure it's positioned */
    margin: 40px; /* Match the padding of the paragraph */
    padding: 0;
    background-color: white;
    overflow: hidden; /* This should now effectively clip the overflow */
    border-radius: 10px; /* Rounds the edges of the box */

}

.article h2 {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust position to the exact center */
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    border-radius: 10px; /* Rounds the edges of the box */
    padding: 10px;
}

.article p {
    position: absolute;
    display: flex;
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    bottom: 0; /* Position it at the bottom of the container */
    width: 100%; /* Adjust width to automatically calculate based on position */
    height: 100px; /* Corrected height with unit */
    color: white;
    background-color: rgba(0, 0, 0, 0.699);
    text-align: center;
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default margins */
}

.article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    transition: transform 0.3s ease; /* Smooth transition for the transform property */
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default margins */
}

.article img:hover {
    transform: scale(1.1); /* Scales up the image to 110% of its original size on hover */
}

#wrapper {
    position: fixed; 
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("../../images/overlay.png"), linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url("../../images/bg.jpg");
    overflow: auto; /* Allows scrolling */
    background-size: cover;
    height: 100%;
}

nav, nav * {
    margin: 0;
    padding: 0;
    line-height: 0; /* Reset line-height */
}

nav {
    display: flex; /* Use flexbox to align children */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Align items vertically */
    background: rgb(102, 102, 102);
    color: white;
    width: 82rem; /* Ensure the nav bar extends full width */
    margin-left: auto;
    margin-right: auto;
    position: sticky;
    top: 0; /* Stick to the top of the viewport */
    z-index: 2; /* Higher z-index to ensure it stays on top */
}

nav ul {
    padding: 0px;
    margin: 0px;
}

nav li {
    display: inline-flex;
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Align items vertically */
    flex-direction: row; /* Stacks the items vertically */

}

nav a {
    text-decoration: none;
    color: white;
    padding: 20px;
}

a:hover {
	border-bottom-color: transparent;
	color: #18bfef !important;
	text-decoration: none;
}


.fields{
    padding: 0;
    margin-left: 5%;
    margin-right: 5%;
}

.field {
    width: 100%;
    box-sizing: border-box;
}

.field.half {
    width: 50%;
    float: left;
    box-sizing: border-box;
    padding-bottom: 10px;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
    width: 100%;
    box-sizing: border-box;
}

.field.half:first-child {
    padding-right: 10px; /* Adjust the padding as needed */
}

.submit-button {
    list-style-type: none; /* Removes bullet points */
    margin-top: 10px; /* Padding set to 50px */
    margin-left: 5%; /* Padding set to 50px */
    margin-bottom: 10px; /* Padding set to 50px */
}

.main iframe {
    width: 80%;
    height: auto;
    aspect-ratio: 16 / 9; /* Adjust this value based on the desired aspect ratio */
    padding: 0px;
}

.actions input[type="submit"] {
    padding: 0px; /* Adjust padding for the button */
    margin: 0px; /* Ensure no margin is affecting the button */
}

input[type="submit"].primary,
button.primary,
.button.primary {
	background-color: #212931;
	box-shadow: none;
	color: #ffffff !important;
}

input[type="submit"].primary:hover,
button.primary:hover,
.button.primary:hover {
	background-color: #18bfef;
}

.field textarea {
    height: 200px;
}

@media (max-width: 1024px) {
    nav {
        width: 100%;
    }
    
    nav a {
        padding: 10px;
    }

    .main {
        width: 100%;
    }

    .banner-photo {
        top: 50px; /* Align top edge to the top of the container */
        right: 0; /* Align right edge to the right of the container */
        width: 100px;
        height: auto;
    }

    .banner {
        width: 100%;
    }

    .article h2 {
        padding: 0px;
        font-size: 15;
    }
    
    .article p {
        font-size: 15;
        height: 80px; /* Corrected height with unit */
    }
}

@media (max-width: 844px) {
    nav {
        width: 100%;
    }
    
    nav a {
        padding: 10px;
    }

    .main {
        width: 100%;
    }

    .welcome-container {
        padding: 0px;
        height: 300px;
    }

    .welcome-message {
        padding: 0px;
    }

    .article-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        color: white;
    }
    
    .banner-photo {
        right: 0px;
        top:60px;
        width: 70px;
        padding: 0px;
    }

    .banner-photo img {
        width: 100%;
    }

    .banner {
        width: 100%;
    }

    .article h2 {
        padding: 0px;
        font-size: 15;
    }
    
    .article p {
        font-size: 15;
        height: 80px; /* Corrected height with unit */
    }
}

@media (max-width: 800px) {
    .article-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .article h2 {
        padding: 0px;
        font-size: 15;
    }
    
    .article p {
        font-size: 15;
        height: 80px; /* Corrected height with unit */
    }

    .banner-photo {
        display: none
    };
}

@media (max-width: 500px) {
    nav {
        width: 100%;
    }
    
    nav li {
        display: flex;
        flex-direction: column;
    }
    
    nav a {
        padding: 10px;
    }

    .main {
        width: 100%;
    }

    .welcome-container {
        display: inline;
        padding: 0px;
        height: 0px;
    }

    .welcome-message {
        padding: 0px;
    }
    
    .welcome-video {
        height: 250px;
        display: flex;
        align-items: flex-start;
        padding: 0;
        margin: 0;
    }

    .title-image h1 {
        font-size: 10px; /* Larger font size */
    }

    .title-image img {
        height: 10%; /* Set a fixed height */
    }

    .welcome-video iframe {
        width: 350px; /* Makes the iframe responsive within its container */
        height: auto;
        aspect-ratio: 16 / 9; /* Adjust this value based on the desired aspect ratio */
        padding: 0px;
    }

    .responsive-image {
        width: 90% !important; /* Full width on small devices */
        border: 1px solid lightgrey;
    }
    
    .banner-photo {
        display: none
    };

    .banner {
        width: 100%;
    }

    .article-container {
        grid-template-columns: 1fr;
    }
}