* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/*Mobile*/
#logo {
    padding-left: 15px;
    max-width: 70px;
}

header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background-color: #F3D77A;
    position: fixed;
    z-index: 10;
    padding: 15px;
    width: 100%;
}

/* mobile nav*/
#mobile.show {
    display: block;
    position: absolute;
    width: 100%;
    height: 100vh;
    background: #F3D77A;
    top: 0px;
    left: 0px;
    text-align: center;
    padding: 30px;
    padding-top: 10vh;
    z-index: 100;
} 

#mobile.show li {
    display: block;
    list-style: none;
    line-height: 2em;
    font-size: 2rem;
}

.bar1,.bar2,.bar3 {
    width: 35px;
    height: 5px;
    background-color: #593B14;
    margin: 6px 0;
    transition: 0.4s;
}
  
#hamburger {
    display: inline-block;
    cursor: pointer;
    padding: 1rem;
    position: absolute;
    right: 4px;
    top: 6px;
    z-index: 110;
}

.change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
}

#mobile {
    display: none;
}
/*--------*/

/*desktop nav*/
nav {
    display: flex;
    margin-right: 0%;
    margin-left: auto;
} 

#desktop {
    display: none;
    height: 100%;
    margin-right: 0%;
    margin-left: auto;
    display: flex;
    align-items: center;
    padding-right: 25px;
}

#desktop li, #mobile li {
    list-style-type: none;
}

#desktop li a, #mobile li a{
    padding-left: 15px;
    font-family: "Luckiest Guy", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    color: #593B14;
    text-decoration: none;
}

#desktop a:hover, #mobile a:hover {
    color: #C28734;
    text-decoration: underline;
}
/*--------*/

#desktop {
    display: none;
}

#hamburger {
    display: block; 
}

main{
    padding: 20px;
    margin: 0 auto;
    position: relative;
}

body {
    min-height: 100vh;
    display:flex;
    flex-direction: column;
}

#hero {
    height: 100vh;
    background-image: url(../images/headerBG.png);
    background-size: cover;
    background-repeat: no-repeat;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#intro {
    top: 190px;
    color: #b97b2a;
    font-size: 2rem;  
    position: relative; 
    margin-bottom: 20px;  
}

#Duck {
    animation: fadeIn 1s ease-in-out;
    top: -130px;
}

#Duck2 {
    animation: fadeIn2 2s ease-in-out;
    top: -130px;
}

#Duck, #Duck2 {
    position: absolute;
    max-width: 300px;
    width: 100%;
    height: auto;
}

.DUCKS {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

@keyframes fadeIn2 {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 100;
        transform: translateY(0);
    }
}

#Displayed {
    overflow: none;
    white-space: wrap;
    width: 100%;
    padding: 10px;   
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#Displayed img{
    max-width: 300px;
    width: 300px;
    height: 220px;
    padding: 10px;
    border-radius: 20px;
}

#buttons {
    text-align: center;
    padding-top: 0px;
    padding-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;  
    gap: 5px;
}

#container {
    padding-top: 150px;
    display: flex;
    flex-direction: column;   
    justify-content: center;  
    align-items: center;     
    text-align: center;       
    position: relative;
}

.overlay-text {
    display: none;
}

#reveal {
    display: show;
    padding-bottom: 25px;
}

#reveal a {
    font-size: larger;
    height: 45px;
    width: 10em;
    font-family: "Comfortaa", sans-serif;
    font-optical-sizing: auto;
    font-weight:400;
    font-style: normal;
    color: #593B14;
    cursor:pointer;
    text-decoration: none;
}

#SeeMore, #PortfolioPDF,#Resume, #check {
    font-family: "Comfortaa", sans-serif;
    font-optical-sizing: auto;
    font-weight:400;
    font-style: normal;
    font-size: larger;
    background-color: #F3D77A;
    border-radius: 15px;
    border-style: none;
    text-decoration: none;
    height: 45px;
    cursor:pointer;
    color: #593B14;
    width: 8em; 
    text-align: center;
    justify-content: center;
}

#SeeMore a, #PortfolioPDF a,#Resume a, #check a { 
    text-decoration: none;  
    color: #593B14; 
}

#SeeMore:hover, #PortfolioPDF:hover, #Resume:hover, #check:hover {
    color: white;
    background-color: #593B14 ;
    text-decoration: none;
}

#check {
    width: 10em; 
    margin-top: 200px;  
}

#check:hover {
    color: white;
    background-color: #593B14;
}

#Aboutme {
    grid-template-columns: 1fr;
    display: grid;
    justify-content: center;
    
}

.anchorContainer {
    position: relative;
}
 
.anchor {
    position: absolute;
    top: -100px;
    left: 0px;
}

figcaption {
    text-align: center;
}

#Info {
    order: 2;
    padding-top: 15px;
}

#me {
    position: relative;
    order: 1;
    max-width: 300px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#me img{
    border-radius: 50%;
    border-color: #593B14;
    border-style: solid;
    display: block;

}

#me .visible{
    width: 15em;
    height: 15em;
}

#me .hidden{
    display: none;
    width: 15em;
    height: 15em;
}

#links {
    padding-top: 15px;
    padding-bottom: 10px;
}

#links img {
    width: 60px;
    padding-right: 15px;
}

#Portfolio, #About, #Contacts {
    padding-top: 80px;
    max-width: 100vw;
}

#Contacts {
    padding-bottom: 25px;
}

footer {
    background-color: #F3D77A;
    text-align: center;
    padding: 25px;
    height: 70px;    
    margin-top: auto;
}

#myname {
    font-family: "Luckiest Guy", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    color: #593B14;
}

span {
    padding-top: 50px;
    font-family: "Luckiest Guy", cursive;
    font-weight: 600;
    font-style: normal;
    font-size: 50px;
    color: #C28734;
}

p {
    font-size: 18px;
    font-family: "Comfortaa", sans-serif;
    font-optical-sizing: auto;
    font-weight:400;
    font-style: normal;
    color: #593B14;
}

footer p {
    font-size: 20px;
}

/*ipad*/
@media only screen and (min-width: 810px) {
    #Displayed {
        display: grid;
        grid-template-columns: 1fr 1fr;
        place-items: center;
    }

    main {
        max-width: 750px;
    }
}


@media only screen and (min-width: 1020px) {

    main {
        max-width: 1000px;
    }

    #reveal {
        display: show;
    }

    header {
        height: 100px;
    }

    #container {
        padding-top: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #logo{
        max-width: 90px;
    }

    #hamburger {
        top: 15px;
    }

    #intro {
        top: 20px;
        font-size: 3rem; 
    }

    #Duck {
        top: -300px;  
    }

    #Duck2 {
        top: -340px;  
    }

    #check {   
        height: 50px;  
        width: 12em; 
        margin-top: 30px;  
    }

    #Displayed img {
        max-width: 400px;
        width: 350px;
        height: 250px;
    }

    #links img {
        width: 130px;
        padding-right: 50px;
    }

    #buttons {
        padding-top: 25px;
    }

    #SeeMore, #PortfolioPDF, #Resume, #check {
        font-size: large;
        height: 50px;
        width: 12em;  
    }

    #Aboutme {
        grid-template-columns: 2fr 1fr;
    }

    #Info {
        padding-top: 0;
        order: 1;
    }

    #me {
        order: 2;
    }

    #me img {
        position: absolute;
        top: -70px;
    }

    #me .visible{
        width: 17em;
        height: 17em;
    }

    #me .hidden{
        width: 17em;
        height: 17em;
    }

    #myname {
        font-size: 45px;
    }

    span {
        font-size: 65px;
    }

    p {
        font-size: 20px;
    }

    #portfolio, #About, #Contacts {
        padding-top: 160px; 
    }
    
    footer {
        height: 100px;
        align-items: center;
        display: flex;
        justify-content: center;
    }
}

/*Desktop*/
@media only screen and (min-width: 1500px) {
    main {
        max-width: 1300px;
    }

    .image-wrapper {
        position: relative;
        display: inline-block;
        margin: 10px;
        border-radius: 20px;
        overflow: hidden;
    }
    
    .image-wrapper img {
        transition: transform 0.3s ease;
        border-radius: 20px;
    }
    
    .image-wrapper:hover img {
        transform: scale(1.1); 
    }
    
    .overlay-text {
        display: show;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        font-family: "Comfortaa", sans-serif;
        font-size: 1.5rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        text-align: center;
    }
    
    .image-wrapper:hover .overlay-text {
        opacity: 1;
    }
    
    .overlay-text a {
        color: white;
        text-decoration: none;
    }
    
    .overlay-text a:hover {
        text-decoration: underline;
    }
    
    #reveal {
        display: none;
    }

    #desktop {
        display: flex;
    }

    #hamburger {
        display: none;
    }

    #mobile{
        display: none;
    }

    #intro {
        font-size: 5rem; 
    }

    #check:hover {
        color: white;
        background-color: #593B14;
    }

    #Displayed {
        padding-top: 25px;
        display: inline-block;
        overflow: auto;
        white-space: nowrap;
        scrollbar-gutter: stable;
    }

    #me .visible{
        width: 20em;
        height: 20em;
    }

    #me .hidden{
        width: 20em;
        height: 20em;
    }

    p {
        font-size: 22px;
    }
}