@font-face {
    font-family: 'Noto Sans';
    src: url('fonts/DMSerifText-Regular.ttf') format('truetype');
}

* {
    margin: 0;

    box-sizing: border-box;
}

:root {
  --text: black;
  
  --primary : white;
  --secondary :  silver;
  --tertiary : rgb(129, 129, 129);

  --shadow-color : black;

  --text-size : 16px;
  --spaceing : 1rem;
  --hero-gradient : circle at bottom right, #221302, #130800;
  --body-background : #000000;
}

body {
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    color: var(--text);
    background: radial-gradient(circle at center right, #361e01, #0a0703);
    height: 100%;
    width: 100%;
    overflow-x: hidden;

}

/* Common Styles */
.yt-video {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
}

.bold {
    font-weight: bold;
}

.under-line {
    text-decoration: underline;
}

.score-through {
    text-decoration: line-through;
}

.text-shadow {
    text-shadow: rgba(255, 255, 255, 0.596) 0px 0px 1em;
}

.button {
    cursor: pointer;
    padding: 1rem;
    text-decoration: none;
    color: var(--text);
    background-color: var(--tertiary);
    text-align: center;
    padding: 0.5rem, 1rem;
    color: white;
    border : none;

    transition: all 0.2s;
}

.button:hover { 
    color: var(--tertiary);
    background-color: var(--text);
    text-shadow: var(--tertiary) 0px 0px 1rem;
    box-shadow: var(--secondary) 0px 0px 1rem;

    transition: all 0.2s;
}

.simpleNumberInput {
    direction: none;
    width: 6em;
    text-align: left;
    margin: 0;
    overflow: visible;
    border: black 1px solid;
    border-radius: 0;

}

.shadow {
    box-shadow: rgba(44, 44, 44, 0.747) 0px 0px 1rem;
}

.social-link {
    display: flex;
    padding: 0em;
    margin: 0em;
    width: 3em;
    height: 3em;
    border-radius: 50%;
    background-color: white;
    transition: all 0.5s cubic-bezier(.28,2.04,.64,.93); 
    img {
        border-radius: 50%;
    }
}

.social-link:hover {
    transform: scale(1.3);
    transition: all 0.5s cubic-bezier(.28,2.04,.64,.93); 
}

.section-header {
    text-align: center;
    font-size: 2rem;
    width: 100%;
}


/* links */ 
#links {
    display: flex;
    justify-content: center;
    align-items: center;
    li {
        padding: 0;
        margin: 0 0.5em;
    }

}
/* Header */
.header-full {
    width: 100%;
    left: 0;
    justify-content: space-between;
    align-self: center;
    padding: 1rem 1rem;
}

.header-shrink {
    width: 66%;
    align-self: center;
    justify-content: space-between;
    padding: 1rem 5rem;
}

.header_container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}
header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0px 0px 1rem var(--shadow-color);

    position: sticky;
    top: 0%;
    z-index: 1000;
    transition: all 1s, padding 1s 1s;
 
    h1 {
        a {
            text-decoration: none;
            color: var(--text);
        }
    }
    nav {
        ul li {
            display: inline;
            margin: 0 1rem;
            max-width: 10rem
        }
    }
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--text);
    width: 100%;
    position: relative;
    bottom: 0;

    p {
        margin: 0;
        padding: 0;
        font-size: 0.8rem;
        text-align: center;
    }
}

/* Special Stuff */
.project-heading {
    text-align: center;

    p {
        text-align: justify;
        margin-bottom: 0.5em;
        max-width: 66%;
        align-self: center;
    }

    h3 {
        text-align: left;
        text-decoration: underline;
    }

    img {
        max-width: 50%;
        align-self: center;
    }

    h3 {
        text-align: center;
    }
    ul {
        max-width: 66%;
        list-style-type: disc;
        margin-left: 2rem;
        align-items: center;
        align-self: center;

        li {
            margin-bottom: 0.5em;
            text-align: left;
        }
    }
}
#portal-calc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;

    padding: 1rem;
    background-color: var(--primary);
    color: var(--text);
    margin: 0 0 1rem 0;
    border: black 1px solid;
}
.calculator {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--text);
    width: 100%;
    margin: 0 0 1rem 0;
    border: black 1px solid;

    h3 {
        text-align: center;
        width: 100%;
    }

    .coordinates-input {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-bottom: 1rem;

        label {
            font-weight: bold;
        }

        input {
            width: 6em;
            text-align: left;
            margin: 0 0.5rem;
            padding: 0.5rem;
        }
    }

    .calc-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        background-color: var(--primary);
        color: var(--text);
        max-width: 100%;

        input {
            width: 100%;
            padding: 0.5rem;
            margin-bottom: 1rem;
            border-radius: 0.5rem;
            border: none;
            box-shadow: rgba(44, 44, 44, 0.747) 0px 0px 1rem;
        }
    }
}

/* Hero */
#hero {
    position: relative;
    display: flex;
    flex-direction: column;
    color: var(--text);
    max-width: 100%;
    height: 100vh;

    background: none;

    img {
        width: 100%;
        height: 100vh;
        object-fit: cover; 
        object-position: center;
        content: cover;

        animation: fadeIn 1s linear forwards, slide-middle-to-2-third 1s ease-in-out forwards 1s;
    }

    #hero-text {
        font-weight: bold;
        position: absolute;
        color: white;
        transform: translate(-33%, -50%);
        top: 50%;
        left: 25%;
        text-align: left;

        h1 {
            font-size: 4rem;
            margin: 0;
            padding: 0;
            opacity: 0;
            animation: fadeIn 1s ease-in-out forwards 2s;
        }

        h2 {
            font-size: 2rem;
            margin: 0;
            padding: 0;

            /* fade in animation */
            opacity: 0;
            animation: fadeIn 1s ease-in-out forwards 2.5s;
        }
    }


}   

/* hero */
main {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: none;
    color: var(--text);
    width: 66%;
    margin: auto;
    padding: 0;
    height: 100vh;
}

/* general section */
section {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--text);
    width: 100%;
    margin: 0 0 1rem 0;
}

.project-heading {
    h2 {
        text-align: center;
    }
}

.project-content {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--text);
    max-width: 100%;
    align-items: center;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        content: cover;
    }
}
#about #about-content {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--text);
    max-width: 100%;

    img {
        width: 30%;
        /* height: 30%; */
        object-fit: cover;
        object-position: center;
        content: cover;

    }

    p {
        width: 70%;
        text-align: left;
    }
}

/* About */
#about {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--text);
}

/* Project card */
#projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    #project-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
        gap: 1rem;
        width: 100%;
    }
}
.project-card {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0.5rem;
    width: 100%;
    aspect-ratio: 4 / 3;

    .project-card-banner {
        background-color: rgba(0, 0, 0, 0.793);
        position: absolute;
        bottom: 0;
        display: flex;
        flex-direction: row;

        justify-content: space-between;
        width: 100%;
        height: 6rem;

        .project-card-text {
            display: flex;
            flex-direction: column;
            padding: 1rem;
            color: var(--primary);
            
            text-align: center;
            justify-content: center;

            h2 {
                font-size: 1.5rem;
                margin: 0.5em 0;
                text-align: left;
                text-shadow: black 0px 0px 0.5em;
                margin: 0;
                text-decoration: underline;
            }

            p {
                font-size: 1rem;
                margin: 0.5em 0;
                text-align: left;
                text-shadow: black 0px 0px 0.5em;
                margin: 0
            }
        }

         .project-card-application-logo {
            width: auto;
            height: 100%;
            object-fit: cover;
            object-position: center;
            content: cover;
        }
    }
    

    .project-card-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        content: cover;
    }

    transition: all 0.2s cubic-bezier(.28,2.04,.64,.93);;
}

.project-card:hover {
    transform: scale(1.05);
    transition: all 0.2s cubic-bezier(.28,2.04,.64,.93);;
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slide-middle-to-2-third {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(16%);
    }
}

@keyframes hero-gradient {
    0% {
        background: radial-gradient(circle at bottom right, #0a0400, #0a0400);
    }
    5% {
        background: radial-gradient(circle at bottom right, #0d0602, #0a0400);
    }
    10% {
        background: radial-gradient(circle at bottom right, #100805, #0a0400);
    }
    15% {
        background: radial-gradient(circle at bottom right, #130a07, #0a0400);
    }
    20% {
        background: radial-gradient(circle at bottom right, #160c09, #0a0400);
    }
    25% {
        background: radial-gradient(circle at bottom right, #19100b, #0a0400);
    }
    30% {
        background: radial-gradient(circle at bottom right, #1c120d, #0a0400);
    }
    35% {
        background: radial-gradient(circle at bottom right, #1f140f, #0a0400);
    }
    40% {
        background: radial-gradient(circle at bottom right, #221612, #0a0400);
    }
    45% {
        background: radial-gradient(circle at bottom right, #251914, #0a0400);
    }
    50% {
        background: radial-gradient(circle at bottom right, #281b16, #0a0400);
    }
    55% {
        background: radial-gradient(circle at bottom right, #2b1d18, #0a0400);
    }
    60% {
        background: radial-gradient(circle at bottom right, #2e1f1a, #0a0400);
    }
    65% {
        background: radial-gradient(circle at bottom right, #30211c, #0a0400);
    }
    70% {
        background: radial-gradient(circle at bottom right, #32231e, #0a0400);
    }
    75% {
        background: radial-gradient(circle at bottom right, #342520, #0a0400);
    }
    80% {
        background: radial-gradient(circle at bottom right, #362722, #0a0400);
    }
    85% {
        background: radial-gradient(circle at bottom right, #382924, #0a0400);
    }
    90% {
        background: radial-gradient(circle at bottom right, #3a2b26, #0a0400);
    }
    95% {
        background: radial-gradient(circle at bottom right, #3c2d28, #0a0400);
    }
    100% {
        background: radial-gradient(circle at bottom right, #301b03, #0a0400);
    }
}

@keyframes growGradient {
    0% {
        background: radial-gradient(circle at bottom right, #301b03, #0a0400);
        background-size: 200%;
    }
    100% {
        background: radial-gradient(circle at bottom right, #301b03, #0a0400);
        background-size: 100%;
    }
}


/* Media Querys */
/* Mobile layout */
@media (max-width: 768px) {

    body {
        height: 100vh;
        width: 100%;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;

        #hero {
            display: none;
        }
    }
    .header-shrink {
        width: 100%;
        padding: 1rem;
    }

    .header-full {
        width: 100%;
        padding: 1rem;
    }
    header {
        position: sticky;
        transition: none;
    }

    .header-full {
        width: 100%;
    }

    .header-shrink {
        width: 100%;
    }

    main {
        width: 95%;
        position: static;
        height: auto;
        flex-direction: column;
        justify-content: center;
        margin-top: 1em;
    }

   /* remove all main width restrictions */
    main {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box;

        #about #about-content p{
            flex-direction: column;
            align-items: center;
            width: 100%
        }
    }

    .project-heading {
        img {
            align-self: center;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            content: cover;
            max-width: none;
        }
    }

    #hero {
        width: 100%;
        height: 50vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: radial-gradient(var(--hero-gradient));

        #hero-text {
            position: static;
            transform: translate(0,0);
            align-self: center;
            width: 100%;
            height: 30%;
            animation: none;
        }

        h1 {
            text-align: center;
        }
        h2 {
            text-align: center;
        }
    }


    #hero img {
        height: 50vh;
        display: none;
    }

    #about #about-content {
        flex-direction: column;
        align-items: center;
    }

    #about #about-content img {
        width: 100%;
        height: auto;
    }
}







