/* Fonts from `fonts` folder */
@font-face {
    font-family: 'brugty';
    src: url('../fonts/Brugty\ DEMO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'maloney';
    src: url('../fonts/Maloney.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'maloney-extrude';
    src: url('../fonts/Maloney\ extrude.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'nexa';
    src: url('../fonts/Nexa\ Light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'nexa-bold';
    src: url('../fonts/Nexa\ Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Variables */
:root {
    --green: #006241;
    --darkGreen: #004D2D;
    --turquoise: #77ddc5;
    --darkTurquoise: #2FA7B5;
    --yellow: #FFC100;
    --brown: #8A6B26;
    --blue: #2379BE;
    --darkBrown: #361B04;
    --lightBrown: #E5C493;
    --pink: #F27A7B;
}

/* style for all */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'nexa', sans-serif;
}

/* General styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

body {
    background-color: var(--turquoise);
}

/* navigation bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 11;
}

/* increase z-index to be on top */
nav * {
    z-index: 11;
}

/* container of the nav links */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 2.5rem;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

nav ul li a {
    text-decoration: none;
    color: #636363;
    font-size: 1rem;
    font-family: 'brugty', sans-serif;
    padding: 0.6rem 1.2rem;
    /* background-color: rgba(255, 255, 255, 0.55); */
    border-radius: 2.5rem;
    text-transform: uppercase;

    transition: all 0.4s;
}

/* ddifferent font color and bg color for active link */
nav ul li a.active {
    color: #000;
    background-color: rgba(255, 255, 255, 0.55);
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.55);
}

/* dropdown in navbar, making it positioned relative */
.dropdown {
    position: relative;
}

/* dropdown hidden by default */
.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    border-radius: .25rem;
    transform: translateY(-10px);
    transition: all 0.3s ease, visibility 0s;
    gap: 0;

    display: flex;
    flex-direction: column;
}

/* visible upon hovering */
.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    text-align: center;
    background-color: #fff;
}

.dropdown-content li {
    transition: all 0.3s;
    margin: 0;
    width: 100%;
}

.dropdown-content li a {
    width: 100%;
    font-size: .8rem;
    display: inline-block;
    padding: .8rem .2rem;
}

.dropdown-content li:hover {
    background-color: #d9d9d9;
}

.dropdown-content li a:hover {
    background: none !important;
}

/* adds a margin bottom on every link, except for the last link */
.dropdown:hover .dropdown-content li:not(:last-child) {
    margin-bottom: .7rem;
}

/* FOOTER */
footer {
    background-color: var(--turquoise);
    text-align: center;
    padding: .6rem 0;
    font-family: 'nexa', sans-serif;
    text-transform: uppercase;
    font-size: .8rem;
}

/* --- HOME PAGE --- */

/* set the minimum height to the height of the screen */
#hero {
    background-image: url('../images/home/bg-top.png');
    background-size: cover;
    background-position: center bottom;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#hero header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

#hero header h1 {
    font-family: 'maloney', sans-serif;
    font-size: 7rem;
    letter-spacing: 0.2rem;
    color: #fff;
    text-align: center;
    z-index: 9;
}

/* the text behind the h1 tag, making the font 'maloney-extrue' for bigger font, will serve as the outline of the h1 tag */
#hero header h1::before {
    content: 'Portfolio';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    font-family: 'maloney-extrude', sans-serif;
    font-size: inherit;
    font-weight: bold;
    letter-spacing: 0.2rem;
    color: var(--green);
    text-align: center;
    z-index: -1;
}

/* making it relative to the header and adjusting its position */
#hero header .board {
    position: absolute;
    top: -1.75rem;
    left: -2rem;
    padding: .5rem 3rem;
    background-color: var(--yellow);
    border-radius: 60%;
    rotate: -5deg;
    font-family: 'brugty', sans-serif;
    color: #fff;
    font-size: 1.2rem;
    border: 3px solid white;
    box-shadow: 0 0 0 10px var(--yellow);
    z-index: -2;
}

/* adding design to the button in hero section */
#hero a {
    background: none;
    border: none;
    outline: none;
    appearance: none;
    text-decoration: none;
    cursor: pointer;
    font-family: 'brugty', sans-serif;

    background-color: var(--green);
    color: #fff;
    padding: .4rem 1.5rem;
    font-size: 1.25rem;
    border-radius: .8rem;
    text-transform: uppercase;

    transition: all 0.3s;
}

#hero a:hover {
    background-color: var(--darkGreen);
}

#learning {
    padding: .5rem 0;
    background-color: var(--turquoise);
    position: relative;
}

/* section title for learning section */
#learning h2 {
    font-family: 'maloney', sans-serif;
    font-size: 3rem;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* positioned absolute to the title */
#learning h2::before {
    content: 'Learning Outcomes';
    display: block;
    font-family: 'maloney-extrude', sans-serif;
    font-size: inherit;
    font-weight: bold;
    color: var(--green);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

/* adding curved line background */
#learning .outcomes {
    background-image: url('../images/home/curved_lines.png');
    background-size: cover;
    background-position: center top;
    min-height: 40vh;

    display: flex;
    flex-wrap: wrap;
}

#learning .outcomes .outcome {
    flex: 1;
    padding: 2rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* adjusting the position of each outcome */
#learning .outcomes .outcome:nth-child(1) {
    transform: translateY(-2.6rem);
}

#learning .outcomes .outcome:nth-child(2) {
    transform: translateY(3.6rem);
}

#learning .outcomes .outcome:nth-child(3) {
    transform: translateY(-2.2rem);
}

#learning .outcomes .outcome:nth-child(4) {
    transform: translateY(-3rem);
}

#learning .outcomes .outcome:nth-child(5) {
    transform: translateY(1.6rem);
}

/* setting the size of the outcome image */
#learning .outcomes .outcome img {
    width: 60px;
}

/* adding an outline to the figcaption */
#learning .outcomes .outcome figcaption {
    font-family: 'brugty', sans-serif;
    text-shadow:
        -3px -3px 0 var(--darkGreen),
        0 -3px 0 var(--darkGreen),
        3px -3px 0 var(--darkGreen),
        3px 0 0 var(--darkGreen),
        3px 3px 0 var(--darkGreen),
        0 3px 0 var(--darkGreen),
        -3px 3px 0 var(--darkGreen),
        -3px 0 0 var(--darkGreen);
    font-size: 1.2rem;
    font-style: bold;
    color: #fff;
    margin: .5rem 0;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

#mabuhay {
    background-image: url('../images/home/bg-bottom.png');
    background-size: cover;
    background-position: center top;
}

/* setting the flex - shortcut for adding flex shring and grow */
#mabuhay .passport {
    flex: 4;
}

/* making the inmage cover its container */
#mabuhay .passport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

#mabuhay .mabuhay {
    flex: 5;
    padding: 2rem 2.5rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* section title */
#mabuhay .mabuhay h2 {
    font-family: 'maloney', sans-serif;
    font-size: 6rem;
    color: #fff;
    margin: 1rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

/* positioned absolute to the section title */
#mabuhay .mabuhay h2::before {
    content: 'Mabuhay!';
    display: block;
    font-family: 'maloney-extrude', sans-serif;
    font-size: inherit;
    font-weight: bold;
    color: var(--darkTurquoise);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

#mabuhay .mabuhay p {
    font-family: 'nexa', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.6;
    color: var(--brown);
    margin: 1rem 0;
    text-align: justify;
    position: relative;
    z-index: 2;
}

/* adding style for the button */
#mabuhay .mabuhay a {
    text-decoration: none;
    background-color: var(--darkTurquoise);
    color: #fff;
    padding: .4rem 2rem;
    border-radius: 30px;
    text-transform: uppercase;
    font-family: 'brugty', sans-serif;
    font-size: 1.2rem;
}

/* --- ABOUT PAGE --- */
#about .mabuhay {
    padding-bottom: 0;
}

#about .mabuhay h2 {
    margin-top: 3rem;
}

#about #mabuhay .row {
    padding-top: 5rem;
}

/* #about #mabuhay .passport {
    position: relative;
}

#about #mabuhay .passport img {
    max-height: 600px;
    position: absolute;
    bottom: 0;
    left: 0;
} */

#skill-interest {
    display: flex;
    width: 100%;
}

/* making the width 50% to display in two columns */
#skill-interest article {
    width: 50%;
}

/* cover the whole container */
#skill-interest article figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* adding max-width so that it won't be too wide for wide screens */
#skill-interest .title {
    position: relative;
    max-width: 250px;
    margin: 0 auto;
}

#skill-interest article h5 {
    font-family: 'brugty', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    margin: 1rem 0;
    text-transform: uppercase;
}

/* positioned absolute to the its container and adjusted the position to place it on center */
#skill-interest .title h5 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 1.5rem;
}

#skill-interest .title img {
    width: 90%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* adjust the heading title to position it according to the design */
#skill .title h5 {
    rotate: -5deg;
    top: 38%;
}

#interests .title h5 {
    top: 50%;
    rotate: 8deg;
}


/* --- OUTCOMES PAGE --- */
/* setting the min-height to the screen height minus the height of the footer (35.19px) */
#outcomes {
    min-height: calc(100vh - 35.19px);
    background-image: url('../images/outcomes/bg.png');
    background-size: cover;
    background-position: center top;
    padding-top: 6rem;
    padding-bottom: 2rem;
}

/* section title */
#outcomes h2 {
    font-family: 'maloney', sans-serif;
    font-size: 5rem;
    color: #fff;
    margin: .5rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

/* positioned absolute to the section title */
#outcomes h2::before {
    content: 'Learning Outcomes';
    display: block;
    font-family: 'maloney-extrude', sans-serif;
    font-size: inherit;
    font-weight: bold;
    color: var(--blue);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

/* made the container display flex and have a gap of 1rem */
#outcomes .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* setting the min and max width to avoid being too small and too big */
#outcomes .outcome {
    width: 20%;
    min-width: 250px;
    max-width: 300px;

    transition: all 0.3s;
}

/* animation of slightly going up upon hovering */
#outcomes .outcome:hover {
    transform: translateY(-10px);
}

/* making the image square */
#outcomes .outcome img {
    width: 100%;
    aspect-ratio: 1/1;
}

/* --- SUBOUTCOMES PAGE --- */
/* setting the min-height to the screen height minus the height of the footer (35.19px) */
.sub-outcome {
    min-height: calc(100vh - 35.19px);
    background-image: url('../images/interactive/bg.png');
    background-size: cover;
    background-position: center top;
    padding-top: 6rem;
    padding-bottom: 2rem;
}

/* section title - adding outline using text-shadow */
.sub-outcome h2 {
    font-size: 3rem;
    font-family: 'Brugty', sans-serif;
    color: var(--darkBrown);
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow:
        -3px -3px 0 #fff,
        0 -3px 0 #fff,
        3px -3px 0 #fff,
        3px 0 0 #fff,
        3px 3px 0 #fff,
        0 3px 0 #fff,
        -3px 3px 0 #fff,
        -3px 0 0 #fff;
}

.sub-outcome p {
    text-align: center;
    color: var(--darkBrown);
    max-width: 750px;
    margin: 0 auto 2rem;
}

.sub-outcome p.brief-desc {
    font-family: 'nexa-bold', sans-serif;
    font-weight: 700;
}

/* setting the mion-height to make the box be at least 171px regardless of its content */
.sub-outcome .box {
    background-color: var(--lightBrown);
    border: 4px solid var(--darkBrown);
    margin: .8rem auto 2rem;
    border-radius: .6rem;
    padding: .5rem;
    min-height: 171px;
    max-width: 900px;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

/* darker bg color on hover */
.sub-outcome .box:hover {
    background-color: #D1AF84;
}

/* makeing the img container square */
.sub-outcome .box .image-container {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 50%;
    background-color: var(--darkBrown);
    width: 100px;
}

/* cover the whole container */
.sub-outcome .box .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* allows the element to grow and shrink to take up any available space */
.sub-outcome .box .texts {
    flex: 1;
    padding: 1rem;
    color: var(--darkBrown);
}

.sub-outcome .box .texts h4 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
    text-transform: uppercase;
}

.sub-outcome .box .texts h3 {
    font-size: 2rem;
    font-family: 'Brugty', sans-serif;
    margin-bottom: .5rem;
}

.sub-outcome .box .texts p {
    margin: 0;
    text-align: justify;
}

/* --- MODAL --- */
/* fixed position, covers the entire screen, initially hidden */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: none;
}

.modal-content {
    background-color: var(--lightBrown);
    border: 3px solid var(--darkBrown);
    border-top-left-radius: .6rem;
    border-top-right-radius: .6rem;
    max-width: 1000px;
    margin: 6rem auto 0;
    position: relative;
    color: var(--darkBrown);
}

.modal-header {
    padding: 1.5rem 1rem 0;
}

/* adding outline on the title using text-shadow */
.modal-header h2 {
    text-transform: uppercase;
    font-size: 3rem;
    text-align: center;
    font-family: 'BruGty', sans-serif;
    letter-spacing: 3px;
    font-style: bold;
    text-shadow:
        -3px -3px 0 #fff,
        0 -3px 0 #fff,
        3px -3px 0 #fff,
        3px 0 0 #fff,
        3px 3px 0 #fff,
        0 3px 0 #fff,
        -3px 3px 0 #fff,
        -3px 0 0 #fff;
}

/* positioned absolutely at the top right */
.modal-header .close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--darkBrown);
    color: #fff;
    font-family: 'Brugty', sans-serif;
    padding: .3rem;
}

/* height calculated based on viewport height, allows vertical scrolling, thin scrollbar */
.modal-body {
    padding: 1rem 2rem;
    height: calc(100vh - 175px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--darkBrown) var(--lightBrown);
}

.modal-body article {
    margin-bottom: 2rem;
}

.modal-body article h2 {
    text-transform: uppercase;
    font-size: 1.6rem;
    font-family: 'Brugty', sans-serif;
    margin-bottom: 1rem;
}

.modal-body article h3 {
    text-transform: uppercase;
    font-family: 'nexa-bold', sans-serif;
}

.modal-body article p {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: justify;
}

.modal-body article p a {
    font-weight: bolder;
    color: #fff;
}

.modal-body .pdf {
    margin-bottom: 1rem;
    text-align: center;
}

.modal-body .pdf video {
    margin-bottom: 1rem;
    border-radius: .6rem;
}

.modal-body .pdf .images {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

/* sets the ration of the container to 5 / 3 */
.modal-body .pdf .img-container {
    flex: 1;
    width: 70%;
    max-width: 350px;
    aspect-ratio: 5/3;
    margin: 0 auto;
}


/* sets the ration of the container to 3 / 4 */
.modal-body .pdf .img-container2 {
    flex: 1;
    width: 70%;
    max-width: 350px;
    aspect-ratio: 3/4;
    margin: 0 auto;
}

.modal-body .pdf .img-container a {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

/* image covers the whole container */
.modal-body .pdf .img-container img,
.modal-body .pdf .img-container2 img {
    border-radius: .6rem;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* caption for images in modal */
.modal-body .pdf .img-container figcaption,
.modal-body .pdf .img-container2 figcaption {
    display: block;
    text-align: center;
    color: var(--darkBrown);
    padding: .5rem;
    font-size: .9rem;
}

/* adding style to the button */
.modal-body .pdf a {
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Brugty', sans-serif;
    text-transform: uppercase;
    background-color: var(--darkBrown);
    padding: .7rem 1rem .5rem;
    border-radius: .6rem;
    margin-top: .7rem;
    display: inline-block;
}

/* displayed as flex, allows wrapping of items */
.modal-body .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* grows and shrinks to take up available space */
.modal-body .row .col-6 {
    flex: 1;
    padding: 1rem;
}

.modal-body .row .col-6 .img-container {
    width: 100%;
    height: 100%;
    background-color: var(--darkBrown);
    border-radius: .7rem;
}

/* right arrow */
.modal-body .arrow img {
    height: 50px;
}

/* allows scrolling, no wrapping of content, items aligned at the center, thin scrollbar */
.modal-body div.scroll-container {
    overflow: auto;
    white-space: nowrap;
    padding: 10px;
    margin-top: 2rem;

    display: flex;
    gap: 1rem;
    align-items: center;

    scrollbar-width: thin;
}

.modal-body .scroll-container figure {
    display: inline-block;
    background-color: #1b1b1b;
    /* bg color of each picture in the scrollable gallery */
    padding: 0 0 .5rem;
}

/* fixed height */
.modal-body .scroll-container figure img {
    height: 300px;
    object-fit: cover;
}

/* for landscape figures -> set ratio to 16/9 */
.modal-body .scroll-container figure.landscape img {
    width: 350px;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.modal-body .scroll-container figure figcaption {
    display: block;
    text-align: center;
    color: #fff;
    padding: .5rem;
    word-break: break-all;
    font-size: .9rem;
}


/* --- PROJECTS PAGE --- */

/* setting the min-height to the screen height minus the height of the footer (35.19px) */
#projects {
    min-height: calc(100vh - 35.19px);
    background-image: url('../images/projects/bg.png');
    background-size: cover;
    background-position: center top;
    padding-top: 6rem;
    padding-bottom: 2rem;
}

/* section title */
#projects h2 {
    font-family: 'maloney', sans-serif;
    font-size: 5rem;
    color: #fff;
    margin: .5rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

/* positioned absolute to the section title */
#projects h2::before {
    content: 'Projects';
    display: block;
    font-family: 'maloney-extrude', sans-serif;
    font-size: inherit;
    font-weight: bold;
    color: var(--darkBrown);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

/* section */
.proj-container {
    max-width: 650px;
    margin: 0 auto;
    margin-bottom: 3.2rem;
}

/* title */
.proj-container h3 {
    font-family: 'Brugty', sans-serif;
    color: var(--darkBrown);
    text-transform: uppercase;
    font-size: 1.6rem;
    text-shadow: -1px -4px 0 grey;
    margin-bottom: .5rem;
}

/* displayed as grid, items centered, two columns of equal width */
#projects .grid-container {
    display: grid;
    justify-content: center;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-container a {
    text-decoration: none;
    color: #000;
}

/* padding on all sides (more at the bottom) */
#projects .project {
    background-color: #fff;
    padding: 1rem 1rem 4rem 1em;
    box-shadow: 4px 5px 0 gray;

    overflow: hidden;
    position: relative;
}


/* positioned absolute to the project box, hidden by default */
#projects .project .proj-type {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2rem;
    text-align: center;

    transition: all 0.3s;
}

/* display on hover */
#projects .project:hover .proj-type {
    bottom: 1.25rem;
}

/* full width, aspect ratio of 16:9 */
#projects .project .img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #B7A99A;

    overflow: hidden;
    position: relative;
}

/* positioned absolute to img-container, hidden by default */
#projects .project .proj-name {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;

    transform: translateY(100%);
    transition: all 0.3s;
}

/* show proj-name on hover */
#projects .project:hover .img-container .proj-name {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(0);
}


/* setting the min-height to the screen height minus the height of the footer (35.19px) */
#indiv-proj {
    min-height: calc(100vh - 35.19px);
    background-image: url('../images/projects/proj-bg.png');
    background-size: cover;
    background-position: center bottom;
    padding-top: 6rem;
    padding-bottom: 2rem;
}

/* upper part */
#proj-details {
    display: flex;
    gap: 1.2rem;
    color: #fff;
}

/* grows and shrinks to take up available space */
#proj-details .col {
    flex: 1;
    margin-bottom: 1rem;
}

/* project title */
.proj-title {
    font-family: 'brugty', sans-serif;
    font-size: 3.5rem;
    color: #fff;
    z-index: 2;
    margin-bottom: 1.5rem;
    text-shadow: 4px 3px 0 #5BBAA1;
}

#indiv-proj .col .other-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#indiv-proj .other-info h4 {
    text-transform: uppercase;
    font-size: 1.75rem;
    margin-bottom: .7rem;
}

#indiv-proj article.col p {
    text-align: justify;
    margin-bottom: 1rem;
}

#indiv-proj #images {
    text-align: center;
}

#indiv-proj .two-cols {
    display: flex;
    gap: 1rem;
}

#indiv-proj figure {
    background-color: #6CCDB3;
    box-shadow: 0 7px 0 #5EBCA3;
    margin-bottom: 1.3rem;
    height: 200px;
}

#indiv-proj figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* grows and shrinks to take up available space */
#indiv-proj .two-cols figure {
    flex: 1;
}

/* adding style to the button */
.try-me-btn {
    background-color: var(--darkGreen);
    text-decoration: none;
    color: #fff;
    font-family: 'brugty', sans-serif;
    font-size: 2rem;
    padding: .7rem 6rem;
    border-radius: 30px;
    display: inline-block;
    margin-top: .7rem;
    box-shadow: 0 3px 0 #00000060;
    text-transform: uppercase;

    transition: all 0.3s;
}

.try-me-btn:hover {
    background-color: var(--green);
}

/* displayed as flex, items spaced evenly along the line */
#indiv-proj #prev-next.container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

/* adding style to the button */
#indiv-proj #prev-next.container a {
    background-color: var(--darkBrown);
    color: #fff;
    padding: .5rem 1rem;
    text-transform: uppercase;
    font-family: 'brugty', sans-serif;
    text-decoration: none;
    border-radius: 30px;

    transition: all 0.3s;
}

#indiv-proj #prev-next.container a:hover {
    background-color: var(--lightBrown);
    color: #000;
}

/* CONTACT PAGE */

/* setting the min-height to the screen height minus the height of the footer (35.19px) */
#contact {
    min-height: calc(100vh - 35.19px);
    background-image: url('../images/contact/bg.png');
    background-size: cover;
    background-position: center bottom;
    padding-top: 6rem;
    padding-bottom: 2rem;

    position: relative;
    padding-bottom: 200px;
}

#my-info {
    margin-top: 3rem;
}

/* displayed as grid, two rows and two columns of equal size */
#my-info .container {
    background-color: rgba(255, 255, 255, 0.6);
    max-width: 800px;
    padding: 5rem 2rem 3.5rem;
    border-radius: 2rem;

    position: relative;

    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    row-gap: 2rem;
}

/* page title */
#my-info h2 {
    font-family: 'maloney', sans-serif;
    font-size: 5rem;
    color: var(--pink);
    margin: .5rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;


    position: absolute;
    top: -3.5rem;
    left: 0;
    right: 0;
    text-align: center;
}

/* positioned absolute to the page title */
#my-info h2::before {
    content: 'Contact Me';
    display: block;
    font-family: 'maloney-extrude', sans-serif;
    font-size: inherit;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

/* items aligned at the center */
#my-info figure {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* fixed width, scales the image to maintain its aspect ratio */
#my-info figure img {
    width: 75px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

/* breaks words to prevent overflow */
#my-info figure figcaption {
    background-color: #fff;
    padding: .7rem 1rem;
    border-radius: 12px;
    color: var(--pink);
    flex: 1;
    text-align: center;
    font-weight: 600;
    word-break: break-all;
}

/* breaks words to prevent overflow */
#my-info figure figcaption a {
    color: var(--pink);
    font-weight: 600;
    word-break: break-all;
}

/* rate */
/* positioned at the bottom of its container */
#rate {
    background-color: rgba(255, 255, 255, 0.8);

    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* items centered, gap between items, allows wrapping of items */
#rate .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/*  positioned relative to its normal position, higher stack order */
#rate h3 {
    font-family: 'maloney', sans-serif;
    font-size: 2.5rem;
    color: var(--pink);
    margin: .5rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
    text-align: left;
}

/* positioned absolute to its parent h3, lower stack order */
#rate h3::before {
    content: 'How did\A Briahna do?';
    display: block;
    font-family: 'maloney-extrude', sans-serif;
    font-size: inherit;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    white-space: pre;
}

/* fixed height */
#rate .container img {
    height: 100px;
    cursor: pointer;
}

/* modal for rating, initially hidden */
.modal-contact {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-color: rgba(0, 0, 0, 0.4);
    z-index: 5;
    display: none;
    justify-content: center;
    align-items: center;
}

/* added max-width */
.modal-contact-content {
    background-color: var(--pink);
    padding: 1.5rem;
    border-radius: 1rem;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* positioned absolute to the modal-contact-content */
.modal-contact-content .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bolder;
    color: #fff;
}

/* displayed as flex, items spaced evenly along the line */
.modal-contact-content form {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

/* fixed height */
.modal-contact-content form img {
    height: 100px;
    object-fit: cover;
    margin: 0 auto;
}

/* items centered */
.modal-contact-content form h4 {
    text-align: center;
    font-size: 1.5rem;
    color: #fff;
}

/* items centered */
.modal-contact-content form p {
    text-align: center;
    color: #fff;
    font-size: .9rem;
}

/* removed default outline */
.modal-contact-content form textarea {
    padding: .5rem;
    border-radius: .5rem;
    border: 2px solid var(--pink) !important;
    outline: none;

    transition: all 0.3s;
}

/* added border on focus */
.modal-contact-content form textarea:focus {
    border: 2px solid #9d4b4b !important;
}

/* adding style on the submit button */
.modal-contact-content form button {
    background-color: #fff;
    color: var(--pink);
    padding: .5rem;
    border-radius: .5rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bolder;

    transition: all 0.3s;
}

.modal-contact-content form button:hover {
    background-color: #c96363;
    color: #fff;
}

/* MEDIA QUERIES */
@media screen and (max-width: 768px) {
    nav ul {
        padding: 1rem;
    }

    nav ul li a {
        padding: 0.6rem 1rem;
    }

    #hero header h1 {
        font-size: 5.5rem;
    }

    #hero header .board {
        padding: .5rem 2rem;
        font-size: 1rem;
    }

    #hero button {
        padding: .4rem 1rem;
        font-size: 1rem;
    }

    #learning h2 {
        font-size: 3rem;
    }

    #learning .outcomes .outcome img {
        width: 50px;
    }

    #learning .outcomes .outcome figcaption {
        font-size: 1rem;
    }

    #mabuhay .mabuhay h2 {
        font-size: 4rem;
    }

    #about .mabuhay h2 {
        margin-top: 5rem;
    }

    .modal-body .row {
        flex-direction: column;
    }

    .modal-body .row.reverse {
        flex-direction: column-reverse;
    }

    .modal-body .row .col-6 .img-container {
        height: 250px;
    }

    #skill .title h5 {
        rotate: -5deg;
        top: 32%;
        font-size: .9rem;
    }

    #interests .title h5 {
        top: 42%;
        rotate: 8deg;
        font-size: .9rem;
    }

    #contact {
        padding-bottom: 350px;
        margin-top: 1rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    #rate h3 {
        font-size: 2rem;
    }

    #rate .container img {
        height: 75px;
    }

    #my-info .container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    nav ul {
        padding: 1rem;
    }

    nav ul li a {
        padding: 0.6rem 0.8rem;
    }

    footer {
        font-size: .8rem;
    }

    #hero header h1 {
        font-size: 4.7rem;
    }

    #hero header .board {
        padding: .5rem 1.5rem;
        font-size: 1rem;
    }

    #hero button {
        padding: .4rem 0.8rem;
        font-size: 1rem;
    }

    #learning h2 {
        font-size: 2.5rem;
    }

    #learning .outcomes .outcome img {
        width: 40px;
    }

    #mabuhay .passport {
        display: none;
    }

    #mabuhay .mabuhay h2 {
        font-size: 3rem;
    }

    #outcomes {
        padding-top: 9rem;
    }

    #outcomes h2 {
        font-size: 3rem;
    }

    #projects {
        padding-top: 9rem;
    }

    #projects h2 {
        font-size: 3rem;
    }

    #my-info h2 {
        font-size: 3rem;
        top: -2rem;
    }

    .sub-outcome {
        padding-top: 9rem;
    }

    #contact {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}