/* ==================================================
   HOMEPAGE BASE
================================================== */

* {
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

nav,
section,
footer,
.tickerwrapper {
    width: 100%;
}

section {
    margin: 0;
    padding: 0;
}


/* ==================================================
   WELCOME BANNER
================================================== */

#welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35em;
    padding: 1em;
    background-color: #eac08c;
    text-align: center;
}

#welcome h1 {
    margin: 0;
}

#greeting {
    font-size: 1.5em;
}

#intro-text {
    color: #eac08c;
    font-size: 5em;
    -webkit-text-stroke: 2px #9A3227;
}

#portfolio-text {
    color: #9A3227;
    font-size: 8em;
}


/* ==================================================
   RUNNING BANNER
================================================== */

.tickerwrapper {
    position: relative;
    top: 30px;
    left: 0;
    width: 100%;
    height: 50px;
    padding: 0 10px;
    overflow: hidden;
    background-color: #9A3227;
    color: #eac08c;
    cursor: url("../img/pointer.png"), pointer;
}

.tickerwrapper ul.list {
    position: relative;
    display: inline-block;
    margin: 0.6em;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.tickerwrapper ul.list.cloned {
    position: absolute;
    top: 0;
    left: 0;
}

.tickerwrapper ul.list li {
    float: left;
    padding-left: 50px;
    font-size: 1.5em;
}


/* ==================================================
   INTRODUCTION SECTION
================================================== */

#intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    max-width: 70em;
    margin: 10em auto;
    padding: 2em;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#intro img {
    width: 400px;
    height: auto;
    border-radius: 8px;
}

#intro .content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
}

#intro h1 {
    margin: 0;
    padding: 0;
    font-size: 5em;
}

#intro .content p {
    margin-bottom: 1.5em;
    font-size: 1em;
    line-height: 1.6;
}

#intro .button {
    display: inline-block;
    width: 10em;
    padding: 0.8em 1.5em;
    background-color: #9A3227;
    color: white;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
}

#intro .button:hover {
    background-color: #eac08c;
    color: #9A3227;
}


/* ==================================================
   PROJECT SECTION
================================================== */

#indexproj {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2em 0;
    background-color: #9A3227;
    color: white;
}

#indexproj h2 {
    margin-bottom: 0;
    color: #eac08c;
    font-size: 5em;
}

#indexproj p {
    margin-bottom: 1em;
    color: white;
    text-align: center;
}

#indexproj > a {
    margin-top: 20px;
    padding: 5px 50px;
    color: #eac08c;
    border: 1px solid #eac08c;
    border-radius: 10px;
    font-size: 1.25em;
    font-weight: bold;
    transition: 0.5s;
}

#indexproj > a:hover {
    background-color: #eac08c;
    color: #9A3227;
}

#indexproj button{
    border: none;
}

#indexproj .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin:2em;
}

#indexproj .gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 768px) {
    #welcome {
        height: auto;
        padding: 5em 1em;
    }

    #greeting {
        font-size: 1em;
    }

    #intro-text {
        font-size: 3em;
    }

    #portfolio-text {
        font-size: 5em;
    }

    #intro {
        flex-direction: column;
        width: calc(100% - 30px);
        margin: 5em auto;
        padding: 1em;
    }

    #intro .image {
        width: 100%;
        max-width: 400px;
    }

    #intro h1 {
        font-size: 3em;
        text-align: center;
    }

    #intro .content {
        align-items: center;
    }

    #intro .content p {
        font-size: 1em;
        text-align: center;
    }

    #intro .button {
        width: auto;
        font-size: 0.9em;
    }

    #indexproj h2 {
        font-size: 3em;
    }

    #indexproj p {
        padding: 0 1em;
        font-size: 1em;
    }

    #indexproj > a {
        padding: 0.5em 2em;
        font-size: 1em;
    }

    #indexproj .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    #indexproj .gallery img {
       height: 240px;
       width: auto;
    }

    .tickerwrapper ul.list li {
        padding-left: 20px;
        font-size: 1em;
    }
}


/* ==================================================
   SMALL PHONES
================================================== */

@media (max-width: 480px) {
    #greeting{
        font-size: .7em;
    }
    
    #intro-text {
        font-size: 1.5em;
    }

    #portfolio-text {
        font-size: 3em;
    }

    #intro h1 {
        font-size: 2.5em;
    }

    #indexproj .gallery {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #indexproj .gallery img {
       height: auto;
    }

    #indexproj h2 {
        font-size: 2.5em;
    }

    #indexproj p {
        font-size: 0.9em;
    }

    #indexproj > a {
        padding: 0.5em 1.5em;
        font-size: 0.9em;
    }
}
