/* _____________________________________________

GENERAL
________________________________________________*/
/* Importing a font */
@font-face {
    font-family: Lovelo;
    src: url(font/Lovelo\ Black.otf);
}

body {
    background-color: #eaeaeb;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* A style that formats a text heading */
h1 {
    font-family: Lovelo;
    font-size: 2rem;
}

hr {
    border: 0;
    height: 0.6vh;
    min-height: 3px;
    background-color: #be8746;
    margin: 1vh 1vw;
}

h2 {
    font-family: Lovelo;
    font-size: 1.5rem;
}

/*	A style that formats all paragraph tags */
p {
    font-family: sans-serif;
    font-size: 1rem;
}

/*	A generic class definition */
.highlight {
    color: #e5c466
}

/* _____________________________________________

ANIMATIONS
________________________________________________*/
@keyframes pan {
    0% {
        transform: translateX(-50%) translateY(0%) scale(1.2);
    }

    50% {
        transform: translateX(-50%) translateY(-10%) scale(1.2);
    }

    100% {
        transform: translateX(-50%) translateY(0%) scale(1.2);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* _____________________________________________

MAIN FRAME 
________________________________________________*/

html,
body {
    height: 100%;
    width: 100%;
}

.frame-page .container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 2rem 3.5rem 1fr;
    grid-template-areas:
        "frame-bg"
        "frame-nav"
        "frame-main"
        "contact-me";
    height: 100%;
    width: 100%;
}

/* Above navigation */
.frame-page .frame-bg {
    grid-area: frame-bg;
    background-image: url(Pictures/framebg_star.gif);
    overflow: hidden;
    width: 100%;
}

/* Navigation */
.frame-page .frame-nav {
    grid-area: frame-nav;
    background-color: #be8746;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: top;
    padding: 0.5rem;
    width: 100%;
}

.frame-page .frame-nav a {
    font-family: Lovelo;
    color: #ffffff;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.5em;
}

.frame-page .frame-nav a:hover {
    color: #e5c466;
    text-decoration: underline;
}

.frame-page .frame-nav a:focus {
    color: #fce7ad;
}

/* Main Content Frame */
.frame-page .frame-main {
    grid-area: frame-main;
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.frame-page .content-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact me section */
.frame-page .contact-me {
    grid-area: contact-me;
    background-color: #be8746;
    display: flex;
    flex-direction: row;
    padding: 0.5rem;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-height: 2rem;
    position: static;
}

.frame-page .contact-me p {
    font-family: Lovelo;
    color: #ffffff;
    font-size: 1rem;
    text-wrap: wrap;
}

.frame-page .contact-container {
    display: flex;
    justify-content: center;
    margin: 0 1rem;
}

.frame-page .contact-container a img {
    max-width: 4vh;
    min-width: 25px;

    transition: transform 0.3s ease;
}

.frame-page .contact-container a img:hover {
    transform: scale(1.2);
}

/* _____________________________________________

HOME 
________________________________________________*/

body.home-page {
    height: 100vh;
    background-image: url(Pictures/home_bg2.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

body.home-page .my-picture {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50vw;

    transition: transform 0.3s ease;
    animation: pan 10s infinite alternate ease-in-out;
}

body.home-page .black-fade {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
}

body.home-page .arrow_down {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 5vw;

    transition: transform 0.3s ease;
    cursor: pointer;
}

body.home-page .arrow_down:hover {
    transform: translateX(-50%) scale(1.2);
}

/* _____________________________________________

ABOUT ME 
________________________________________________*/

/* Main container to hold the two sub-containers */
/* Base Layout: Picture on the left, text on the right */
body.aboutme-page .main-container {
    display: flex;
    align-items: center;
    flex-wrap: row;
    justify-content: space-between;
    padding: 5%;
    width: 80%;
    gap: 20px;
    margin: auto;
}

/* Picture container */
body.aboutme-page .picture-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1vw solid #be8746;
    border-radius: 15px;
    width: 40vw;
    height: 70vh;
    max-height: max-content;
    background-color: #ac7531;
    box-shadow: 1.5vw 2vh 2px #84827f;

    transition: transform 0.5s ease;
    transform-origin: center center;
}

body.aboutme-page .picture-container:hover {
    transform: rotate(-5deg);
}

body.aboutme-page .picture-container img {
    max-width: 100%;
    max-height: 100%;
    width: 40vw;
    object-fit: cover;
    border-radius: 10px;

    transition: transform 0.75s ease;
}

body.aboutme-page .picture-container:hover img {
    transform: rotate(5deg);
}

/* Text container */
body.aboutme-page .text-container {
    display: flex;
    flex-direction: column;
    margin-left: 3vw;
}

body.aboutme-page .text-container .header-container {
    margin-bottom: 1vh;
    text-align: center;
    color: #be8746;
}

body.aboutme-page .text-container .header-container:hover {
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

body.aboutme-page .text-container .paragraph-container {
    display: flex;
    align-items: center;
    margin: auto;
    border-radius: 15px;
    padding: 10px;
    width: 30vw;
    height: auto;
    background-color: #fcfcfc;
    text-align: left;
    color: #84827f;
}

body.aboutme-page .text-container .paragraph-container ul {
    transform: translateX(-5%);
    font-size: 2.5vw;
}

body.aboutme-page .text-container .paragraph-container:hover {
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

body.aboutme-page .text-container .footer-container {
    position: relative;
    justify-content: center;
    /* Center the bg box */
    text-align: center;
    margin-top: 1vh;
    font-size: 1.65vw;
    color: #252324;
}

body.aboutme-page .text-container .footer-container:hover {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

body.aboutme-page .text-container .footer-container .background-box {
    position: absolute;
    z-index: -1;
    /* Ensure it stays behind the arrows */
    background-color: #aca9a4;
    height: 60%;
    width: 60%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 15px;
}

/* Arrows */
body.aboutme-page .arrow {
    position: absolute;
    z-index: 2;
    /* Above the background-box */
    width: 6vw;
    height: 3vw;
    cursor: pointer;
}

body.aboutme-page .arrow-left {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

body.aboutme-page .arrow-right {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}


/* _____________________________________________

FAVORITE PLACE
________________________________________________*/

body.place-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main container */
body.place-page .main-container {
    margin: auto;
    display: flex;
    width: 85%;
    height: 60%;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    overflow: hidden;
    padding: 2vw;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);

    transition: transform 0.4s ease;
}

body.place-page .main-container:hover {
    transform: scale(1.01);
}

/* Text container */
body.place-page .text-container {
    flex: 0.4;
    padding: 3vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

body.place-page .text-container:hover {
    transform: scale(1.02);
}

/* Header container */
body.place-page .header-container h1 {
    min-height: 60px;
    margin-bottom: 1vh;

    transition: transform 0.5s ease;
}

/* Subtitle container */
body.place-page .subtitle-container h2 {
    text-decoration: none;
    color: #fcfcfc;
    font-family: Lovelo;

    transition: transform 0.5s ease;
}

body.place-page .subtitle-container a {
    text-decoration: none;
}

body.place-page .subtitle-container h2:hover {
    color: #be8746;
    cursor: pointer;
    transform: scale(1.02);
}

/* Paragraph container */
body.place-page .paragraph-container p {
    line-height: 1.5;
    margin-left: 10%;
    margin-right: 10%;
    color: #fcfcfc;

    transition: transform 0.5s ease;
}

/* Picture container */
body.place-page .picture-container {
    flex: 0.6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5vw;
    margin-right: 2vw;
    background-color: rgba(0, 0, 0);
    border-radius: 15pt;
    height: 30vh;
    width: 40vw;
    min-height: min-content;
    overflow: hidden;

    transition: transform 0.5s ease;
}

body.place-page .picture-container:hover {
    transform: scale(1.02);
}

body.place-page .picture-container img {
    height: 30vh;
    width: 40vw;
    min-height: min-content;
    object-fit: cover;
    border-radius: 10px;

    transition: opacity 0.3s ease;
}

body.place-page .picture-container img:hover {
    opacity: 0.8;
    cursor: pointer;
}

/* Arrows */
body.place-page .picture-container .arrow {
    width: 6vw;
    height: 3vw;
    cursor: pointer;
}


body.place-page .picture-container .arrow-left {
    position: absolute;
    left: 0;
}

body.place-page .picture-container .arrow-right {
    position: absolute;
    right: 0;
}


/* _____________________________________________

FAVORITE THINGS
________________________________________________*/

body.things-page {
    background-color: #eaeaeb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Header Styles */
body.things-page .header {
    text-align: left;
    color: #be8746;

    transition: transform 0.5s ease;
}

body.things-page .header:hover {
    transform: scale(1.05);
}

/* Main Container */
/* Base Layout: Picture on the right, text on the left */
body.things-page .main-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 2vw;
    padding: 1vh 2vw;
    max-width: 100%;
    margin-top: 10px;
}

/* Text Container */
body.things-page .text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 10pt;
    padding: 10pt;
    width: 40vw;
    min-width: 250px;
    background-color: #be8746;

    transition: transform 0.5s ease;
}

body.things-page .text-container:hover {
    transform: scale(1.05);
}

body.things-page .subtitle-container h2 {
    margin-bottom: 10px;
}

body.things-page .paragraph-container p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Picture Container */
body.things-page .picture-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    border-radius: 10pt;
    width: 45vw;
    min-width: 250px;
    padding: 10pt;
    overflow: hidden;
    background-color: #fcfcfc;

    transition: transform 0.5s ease;
}

body.things-page .picture-container:hover {
    transform: scale(1.05);
}

body.things-page .picture-container .picture {
    width: 30vw;
    max-width: 300px;
    border-radius: 10px;
    object-fit: cover;
    margin: 0;

    transition: transform 0.5s ease;
}

body.things-page .picture-container .picture:hover {
    transform: scale(1.05);
}

/* Arrows */
body.things-page .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    text-decoration: none;
}

body.things-page .arrow-left {
    left: 5vw;
}

body.things-page .arrow-right {
    right: 5vw;
}

body.things-page .arrow-img {
    width: 10vw;
    min-width: 4rem;
    max-width: 7rem;
}