* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%; /* Ensure the body and html take up the full height of the viewport */
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    padding-top: 80px;
    padding-bottom: 100px;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1; /* Pushes the footer to the bottom when content is short */
}

nav {
    background: #1a1a1a;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    transition: all 0.3s ease;
    font-weight: bold;
    border-radius: 4px;
}

nav a:hover {
    background-color: #ff3333;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1; /* Ensures the container takes up remaining space */
    min-height: calc(100% - 100px); /* Adjust this value to account for the footer height */
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ff3333;
}

p {
    font-size: 1.1em;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto;
}

.footer {
    margin-top: 50px;
    background: linear-gradient(#1a1a1a, #831d1d);
    color: #fff;
    text-align: center;
    padding: 20px 50px;
    border-top: 2px solid #ff3333;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-info, .social-links, .footer-nav {
    text-align: center;
}

.footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ff3333;
}

.footer-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* ... (your existing styles) ... */

.portfolio-container {
    position: relative;
    width: 80%;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.portfolio-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.portfolio-image:not(:first-child) {
    opacity: 0;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover {
    background-color: #ff3333;
    transition: all 0.3s ease;
}

.next:hover {
    background-color: #ff3333;
    transition: all 0.3s ease;
}

.contactinfo{
    background: #ff3333;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 400px;
    border-radius: 10px;
    text-align: center;
    margin-left: 535px;
}

.contactinfo {
    text-align: center;
}

.contactinfo .links {
    display: inline-block; 
    margin: 10px 0;
}

.contactinfo a{
    text-decoration: none;
    transition: all 0.3s ease;
}

.contactinfo a:hover{
    transition: all 0.3s ease;
    padding-left: 10px;
    padding-right: 10px;
    transform: translateY(5px);
    background-color: white;
    border-radius: 5px;
    color: black;
}

#info{
    float: right;
    margin-top: -180px;
}

.links{
    display: flex;
    margin-top: 20px;
    margin-left: 65px;
    color: white;
}

.infotekst{
    margin-top: 20px;
}

.Walsh{
    margin-left: 100px;
    transition: all 0.3s ease;
    margin-left: 50px;
    border-radius: 100px;
    width: fit-content;
}

.Walsh:hover{
    padding-left: 80px;
    transition: all 0.3s ease;
    transform: translateY(-5px);
    box-shadow: 0 2px 25px rgb(255, 255, 255);
    width: max-content;
    border-radius: 150px;
    background-color: white;
}

#link{
    float: left;
    margin-top: 110px;
    margin-right: 50px;
    color: #121212;
    text-decoration: none;
}