@font-face {
    font-family: 'VT323';
    src: url('/assets/VT323.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: "Courier New", Courier, monospace;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mainContainer {
    display: flex;
    flex: 1;
    flex-direction: row; 
}

main {
    flex-grow: 1;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 200px; 
    overflow-y: auto; 
    height: 100vh;

    background-color: #282828;
    color: #66ff66;
    max-width: 100vw;
    box-sizing: border-box;
}

.typewriter {
    font-size: 2em;
    color: #66ff66; 
    background-color: #282828;
    padding: 20px;
    white-space: normal;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.cursor {
    display: inline-block;
    border-right: 2px solid #66ff66;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #66ff66;
    }
}

header {
    width: 200px;
    background-color: #1a1a1a;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    font-size: large;
}

/* Stiler for navigasjonsmenyen */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 10px 0;
}

#active {
    text-decoration: underline;
    opacity: 1;
}

/* Stil for logo */
#logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
}

/* Stiler for footer-content */
.footer-content {
    text-align: center;
    padding-bottom: 50px;
    color: white;
}

/* footer ting */

footer {
    text-align: center;
    padding: 20px 0;
    color: white;
    background-color: #1a1a1a;
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 100;
    display: none;
}

a {
    color: #ffb000;
    text-decoration: none;
}

@media (max-width: 768px) {
    header {
        width: 100px; 
    }

    main {
        margin-left: 100px; 
    }
}

/* my work page */
main.myWorkGrid-container {
    display: grid;
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-gap: 20px;
    justify-items: center;
    width: 100%;
    height: 100vh;
}

.card-link {
    display: block;
    width: 85%;
    text-decoration: none;
    color: inherit;
}

.card {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.card-link:hover .card {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.github-button {
    display: inline-block;
    background-color: #282828;
    color: #ffb000;
    padding: 10px 15px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.github-button:hover {
    background-color: #333; 
}

@media (max-width: 768px) {
    .card-link {
        width: 90%;
    }
}

main.myWorkGrid-container > .card:nth-child(1) {
    grid-row: 2;
}

main.myWorkGrid-container > .card:nth-child(2) {
    grid-row: 3; 
}

main.myWorkGrid-container > .card:nth-child(3) {
    grid-row: 4;
}


.card p {
    max-width: 80%;
    color: #66ff66;
    font-size: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .card {
        width: 90%; 
    }
    .card img {
        max-height: 200px;
    }
}

/* About and resume */

.aboutSection, .resumeSection {
    display: grid;
    grid-template-columns: 1fr auto auto auto 1fr;
    width: 100%;
    padding: 40px;
    text-align: left;
}

.aboutContent, .resumeContent {
    grid-column: 2 / 5;
    background-color: #282828;
    color: #66ff66;
    text-align: left;
    max-width: 950px;
    padding-right: 12px;
}

.aboutContent h1, .resumeContent h1 {
    color: #ffb000;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.aboutContent h2, .resumeContent h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.aboutContent h3, .resumeContent h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #66ff66;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aboutContent p, .resumeContent p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.aboutContent ul, .resumeContent ul {
    list-style: none;
    padding-left: 0;
}

.aboutContent ul li, .resumeContent ul li {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.aboutContent ul li::before, .resumeContent ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #ffb000;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .aboutSection, .resumeSection {
        grid-template-columns: 1fr;
    }
    .aboutContent, .resumeContent {
        grid-column: 1 / -1;
    }
}

/* contact from */
.contactForm {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #ffb000;
    text-align: left;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #66ff66;
    background-color: #282828;
    color: #66ff66;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ffb000; 
}

button {
    background-color: #ffb000;
    color: #1a1a1a;
    padding: 12px 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 100%;
}

button:hover {
    background-color: #e69e00; 
}

button:active {
    background-color: #cc8e00; 
}

@media (max-width: 768px) {
    .contactForm {
        padding: 20px;
        max-width: 100%;
    }

    button {
        font-size: 1rem;
        width: 100%;
    }
    
    input, textarea {
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: 15px;
    }
}

.contactInfo {
    margin-top: 30px;
    text-align: center;
}

.contactInfo p {
    margin-bottom: 10px;
}

.contactInfo a {
    color: #ffb000;
    text-decoration: none;
    font-weight: bold;
}

.contactInfo a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px; 
    margin-top: 10px;
}

.social-links a {
    display: inline-block;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2); 
}

@media (max-width: 768px) {
    .contactForm {
        padding: 20px;
        width: 100%;  
    }

    button {
        font-size: 1rem; 
    }

    .social-icon {
        width: 30px; 
        height: 30px;
    }
}

.social-icon:hover {
    transform: scale(1.2);  
}

@media (max-width: 768px) {
    .social-icon {
        width: 30px;  
        height: 30px;
    }
}

/* responsiv meny ting med hamburger */

#menu-toggle {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: #ffb000;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    header {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        display: flex;
        flex-direction: row;
        justify-content: space-between; 
        align-items: center;
        padding: 10px 20px;
    }

    header a {
        margin-left: 0;
    }

    .header-content {
        display: flex;
        justify-content: space-between; 
        align-items: center; 
        width: 100%; 
    }

    #logo {
        margin-left: 0;
    }

    #menu-toggle {
        display: block;
        font-size: 30px;
        background: none;
        border: none;
        color: #ffb000;
        cursor: pointer;
        padding: 10px;
    }

    main {
        margin-left: 0;
        margin-top: 70px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: #1a1a1a;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        padding: 10px;
        z-index: 999;
    }
    
    .footer-content {
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
    }

    footer {
        display: block;
        text-align: center;
        padding: 20px 0;
        color: white;
        background-color: #1a1a1a;
        width: 100%;
        position: relative;
        bottom: 0;
    }

    footer .footer-content {
        display: block;
    }
}

/* @media (max-width: 768px) {
    footer {
        text-align: center;
        padding: 20px 0;
        color: white;
        background-color: #1a1a1a;
        width: 100%;
        position: relative;
        bottom: 0;
        z-index: 100;
    }
}
 */