/*  RULES
    elements will be structured (code layout) similar to Unity's default gameobject structure;
    
    1. POSITIONING
    2. SCALING
    2. STYLING
    3. EXTRA/SCRIPT VARIABLES
*/

/*  ROOT VARIABLES
    allows us to define and switch the colour palette of the website 
*/
:root {
    --primary-color: #f8bdd0;
    --secondary-color: #DFAABB;

    --primary-accent-color: #9e7682;
    --secondary-accent-color: #be8f9d;
}

.dark-mode {
    --primary-color: #555555;       
    --secondary-color: #666666;      
    
    --primary-accent-color: #888888;
    --secondary-accent-color: #777777; 
}

body, html{
    /*
    margin: 0 auto;
    width: 100%;
    */
    margin: auto;

    background-color: var(--secondary-color);
    color: var(--secondary-color)ck;

    font-family: Roboto;
    font-style: normal;
    font-weight: normal;
}

a, a:visited, a:hover, a:focus, a:active{
    color: white;

    text-decoration: none;
}

/*  NAVIGATION BAR
    the bar of buttons (about, projects, social) + our logo, positions at the top
*/
.navigationBar{
    top: 75px;
    margin: auto;
    z-index: 999;

    width: 80%;
    height: 60px;

    overflow: visible;
}

.navigationBar img{
    margin-top: 10px;

    width: 60px;
    height: 60px;

    transition: transform 0.3s;
}



.navigationBar img:hover{
    transform: scale(1.1);
    transition: transform 0.3s;
}

.navigationButtons{
    position: relative;
    float: right;
    right: 0;
    top: 40%;

    width: 340px;
    height: 24px;

    background-color: var(--primary-color);
    border-radius: 15px;

    text-align: center;
}

#themeToggle{
    right: 15px;

    width: fit-content;

    cursor: pointer;
}



.navigationBar a:visited{
    color: white;
}

.navigationButtons p{
    position: relative;
    margin: auto;
    margin-left: 15px;
    margin-right: 15px;
    top: 2px;

    display: inline-block;
    width: auto;

    color: white;
    line-height: 14px;
    font-size: 25px;
    text-align: center;
    font-family: "Nunito";

    transition: font-size 0.2s, transform 0.2s;
}

.navigationButtons p:hover{
    font-size: 30px;
    font-weight:900;

    transform: rotate(var(--hoverRotationDegrees));
}

/*  no longer used
    we used it before to keep the navigation bar on screen while the user scolls
*/
.sticky {
    position: fixed;
    left: 50%;
    top: 5px;

    width: 80%;

    transform: translate(-50%, 0);

    pointer-events: none;
}

.sticky .navigationButtons{
    margin: auto;

    box-shadow: 0 0 0pt 2pt var(--secondary-color);

    pointer-events: all;
}

.sticky img{
    box-shadow: 0 0 0pt 2pt var(--secondary-color);
}

@media only screen and (max-width: 1000px) {
    .navigationBar {
        margin-top: 200px;
        padding-bottom: 250px;

        scale: 1.8;
        width: 45%;
    }

    .navigationBar img{
        margin: auto;
        margin-bottom: 10px;

        width: 80px;
        height: 80px;

        display: block;
    }
    .navigationButtons{
        margin: auto;
        float: unset !important;

        scale: 1.6;
    }
    .navigationButtons p:hover{
        transition: unset !important;
        font-size: 28px;
    }

    #themeToggle{
        right: 0 !important;
        margin-top: 30px !important;
    }
}

/*  TEXT WRAPPER
    what we use as HEADINGS / SEPERATORS for our sections withins our website
*/
.textWrapper{
    display: inline-block;
    margin: auto;
    padding-left: 15px;
    padding-right: 15px;

    height: 48px;

    background-color: var(--primary-color);
    border-radius: 18px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.textWrapper h1{
    margin: auto;
    display: inline-block;
    vertical-align: middle;

    color: whitesmoke;
    font-weight: bold;
    font-size: 90px;
    text-align: center;
    font-family: "Nunito";
    font-weight: 900;
    line-height: 45px;
    letter-spacing: -3px;
    word-spacing: 8px;
}

#title_heyThere{
    margin-right: 175px;

    scale: 1.05;
    min-width: 850px; 

    --rotationStart: -2deg; 
    --rotationEnd: -3deg; 
}

#title_imMALGOW{
    margin-top: 50px; 
    margin-left: 375px; 

    scale: 1.1;
    min-width: 220px; 

    --rotationStart: 1deg; 
    --rotationEnd: 1.5deg; 
}



/* SOURCE : https://www.geeksforgeeks.org/css-floating-animation/ */
.floating {
    margin-left: 30px;
    margin-top: 5px;

    animation-name: floating;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.42,0,0.58,1);
}
 
@keyframes floating {
    0% { transform: translate(0,  0px) rotate(var(--rotationStart)); }
    50%  { transform: translate(0, 15px) rotate(var(--rotationEnd)); }
    100%   { transform: translate(0, -0px) rotate(var(--rotationStart));}    
}

/*  ABOUT SECTION
    information about us with most recent relevant experiences , like a CV
*/
.aboutSection{
    margin: auto;
    margin-top: 100px;
    margin-bottom: 250px;

    max-width: 1200px;

    text-align: center;
}



.aboutSection p{
    margin: 0 auto;
    margin-top: 25px;
    margin-bottom: 0px;

    width: 90%;

    font-family: "Nunito";
    color: aliceblue;
    font-size: 30px;
    font-weight: 700;
    line-height: 30px;
}

/* we're using a CLASS instead of ID because this section alread uses the "age" ID for our automatically age script */
.aboutSection_MyStats p{
    margin: 0;
    padding: 0;
    width: 100%;
}


@media only screen and (max-width: 1000px) {
    .aboutSection{
        margin-top: 65px;
    }

    .textWrapper{
        font-size: 8vw;
        line-height: 0vw;
    }

    #title_heyThere{
        margin-right: 50px !important;
    }

    #title_imMALGOW{
        margin-left: 350px !important; 
        margin-top: 80px; 
    }

    .aboutText {
        margin-top: 50px; 
        padding-bottom: 25px;

        font-size: 7vw !important;
        line-height: 7vw !important;
    }

    .aboutSection_MyStats p{
        margin-top: 50px !important; 
        margin-top: 0 !important;

        font-size: 7vw !important;
        line-height: 7vw !important;
    }
}

.aboutText{
    padding-bottom: 15px;
}


/*  EXERIENCES SECTIONS (UNDER ABOUT SECTION)
    our CV-like experiences we want to show off
*/
.experienceSection{
    margin: auto;
    padding-bottom: 25px;

    display: flex;
    flex-wrap: nowrap;
    max-width: 1200px;

    overflow-x: hidden;
    overflow-y: visible;
}

.exp-prevButton, .exp-nextButton {
  position: absolute;
  z-index: 999;
  
  width: 80px;
  height: 40px;

  font-weight: bold;
  color: #fff;
  font-size: 24px;

  background-color: var(--primary-color);
  border: none;
  cursor: pointer;
  border-radius: 25px;

  transition: background-color 0.1s;
  transition: box-shadow 0.3s;
}



.exp-prevButton {
    left: 30%;
}
.exp-nextButton {
    right: 30%;
}

.exp-prevButton:hover, .exp-nextButton:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s;
}

.experienceItem {
    margin: auto 10px;
    padding-bottom: 10px;

    display: inline-block;
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 400px;
    width: calc(33.33% - 20px); /* Adjust the width as per the screen size */
    min-height: 500px; /* Adjust the height as needed */
    max-height: 550px;
    
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 25px;

    transition: transform 0.5s ease;
}



/*
.experienceItem {
    width: calc(100% - 20px); 
}
*/

.experienceItem:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.experienceTrack {
    margin: auto;
    padding-top: 15px;

    display: flex;
    width: 100%;

    transition: transform 0.5s ease;
}

.experienceItemImg{
    margin: 0 15px;
    margin-top: 15px;

    height: 322px;

    background-color: var(--primary-color);
    border-radius: 15px;

    overflow: hidden;
}


.experienceItemImg img{
    height: 100%;

    width: 100%;

    object-fit: cover;
}

.experienceItem p{
    margin: 0;
    padding-left: 15px;
    padding-right: 5px;
    padding-top: 6px;

    display: inline-block;

    text-align: left;
    font-size: 27px;
    line-height: 28px;
}



@media only screen and (max-width: 1000px) {
    .experienceSection{
        height: 1500px;
    }

    .exp-prevButton, .exp-nextButton {

        scale: 2;
    }
    .experienceItem {
        width: 95% !important; 
        max-width: 100% !important;
        max-height: fit-content !important;
        border-radius: 35px;
        padding: 15px;
    }

    .experienceItem:hover{
        transform: unset !important;
    }

    .experienceTrack{
        width: 95% !important;
    }

    .experienceItemImg{
        height: 1050px !important;
    }

    .experienceItem p{

        font-size: 6vw;
        line-height: 6vw;
        text-align: center !important;
    }

    .tagButtons{
        bottom: 35px;
        left: 35px !important;
    }

    .platformButtons{
        display: none !important;
    }
}

/*  PROJECTS SECTIONS
    sections showing off our most recent digital projects
*/
.projectsSection{
    margin: auto;
    margin-top: 100px;

    display: flex;
    width: 100%;

    justify-content: center;
    align-items: center;
    flex-direction: column;

    text-align: center;
}

@keyframes appear{
    from{
        opacity: 0;
        scale: 0.5;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}

.projectItem{
    position: relative;
    margin: 0 auto;
    margin-top: 55px;
    margin-left: 15px;
    margin-right: 15px;

    display: block;
    height: 450px;
    max-width: 1200px;
    min-width: 1050px;
    transform: scale(1);

    text-align: center;

    border-radius: 15px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    transition: border-radius 0.15s, box-shadow 0.3s, transform 0.3s ease;
}

.projectInnerItem{
    margin: auto;
    position: absolute;
    left: 68%;
    top: 50%;

    display: flex; 
    width: 60%; 
    height: 90%; 

    overflow: hidden;
    border-radius: 12px;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.projectItemTitle{
    margin-top: 25px;
    padding-left: 20px; 

    width: 35%; 

    text-align: left; 
    font-family: "Nunito";
    font-size: 34px;
    font-weight: 900;
    line-height: 25px;
}

.projectItemDescription{
    padding-left: 20px; 
    margin-top: -25px; 

    width: 35%; 

    text-align: left; 
    font-family: 'Nunito';
    font-size: 28px; 
    font-weight: 700; 
    line-height: 23px;
}

.extraLineHeight{
    line-height: 30px;
}

.projectItemButtonContainer{
    display: flex;
    flex: none;
    margin-bottom: 5px;
    position: absolute;
    padding: 10px;
    bottom: 0; 
    left: 0;
}

.projectItemButton{
    padding: 5px;

    display: block;

    text-align: left;
}


.projectItemButton p{
    padding-left: 10px;
    padding-right: 10px;

    display: inline;

    color: white;
    font-family: 'Nunito';
    font-weight: 800; 
    font-size: 22px;

    border-style: solid;
    border-radius: 25px;
    border-width: 0px;
    background-color: var(--secondary-color);
    
    transition: font-size 0.3s, font-weight 0s, background-color 0.3s, border-width 0.1s;
}
.projectItemButton p:hover{
    background-color: var(--secondary-color);
    border-width: 3px;
}

.projectItemButton img{
    transition: transform 0.3s;
}
.projectItemButton img:hover{
    transform: scale(1.3);
    transition: transform 0.3s;
}

.projectItemTag{
    font-style: normal; 
    font-size: 2cqmin !important; 

    border-width: 1px; 
    border-color: var(--secondary-color); 
    background-color: var(--secondary-color);
    color: var(--primary-accent-color) !important; 

    cursor: default;
    white-space: nowrap ;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/*
    i dont think this is used anymore anymore in the site, defo not on the index
*/
.revealProjectInfo p{
    position: absolute;
    margin: auto;
    top: 45%;

    display: block;
    width: 100%;

	font-size: 24px;
    text-align: center;

	transition: opacity 0.5s;
	opacity: 0;
}

.tagButtons{
    bottom: 45px;
}



.projectItem:hover img{

    /*border-radius: 50%;*/
}

.projectItem:hover {
    /*border-radius: 50%;*/

    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s, box-shadow 0.3s;
}

.projectItem:hover .revealProjectInfo p{
    opacity: 1;
}

.hr.divider {
    border-top: 8px solid #bbb;

    width: 10px;

    border-radius: 5px;
}

@media only screen and (max-width: 1000px) {
    .projectsSection{
        width: 100%;
        text-align: center;
        margin: auto;
        margin-top: 100px;
    }

    .projectItem{
        margin-top: 75px;
        padding-bottom: 25px;

        width: 95% !important;
        min-width: 95% !important;
        height: fit-content;
        transform: unset !important;

        border-radius: 45px;
    }

    .projectInnerItem{
        position: unset !important; 

        width: 95% !important; 
        transform: unset !important;

        border-radius: 35px;
        overflow: hidden;
    }
    
    .projectInnerItem img{
        width: 100%;
    }
    .projectInnerItem video{
        width: 100%;
    }

    .projectItemTitle{
        padding-top: 25px;

        width: 95%;

        text-align: center;
        font-size: 8vw;
        line-height: 6vw;
    }

    .projectItemDescription{
        margin-top: -45px;

        width: 95%;

        text-align: center;
        font-size: 60px;
        line-height: 55px;
    }

    .tagButtons{
        bottom: 25px !important;
    }
}

/*  MINI PROJECTS 
    the bigger projects take up too much space, we can use mini pill sized ones instead for less space (or less important projects)
*/
.miniProjectsContainer{
    margin: auto; 
    margin-top: 40px;

    display: flex; 
    max-width: 1200px;
    min-width: 600px;

    flex-wrap:wrap; 
    justify-content: space-around; 
}

.miniProjectItem{
    margin: 10px;
    padding-right: 5px;
    border-radius: 15px;


    display: flex;
    width: fit-content;
    height: fit-content;

    align-items: center;

    transition: transform 0.3s, opacity 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
}

.miniProjectItem:hover{
    transform: scale(1.1) rotate(var(--hoverRotationDegrees));
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.miniProjectItem p{
    margin: 0;
    margin-top: -10px;
    padding-right: 10px;
    padding-left: 15px;

    font-weight: bold;
    font-family: 'Nunito';
    font-style: italic;
    font-size: 23px;
    font-weight: 600;
    text-align: left;
    color: white;
    letter-spacing: -2px;

    opacity: 0.8;

    transform: letter-spacing 0.3s;
}

.miniProjectItem h1{
    margin: 0;
    padding-left: 15px; 
    padding-right: 10px;

    font-size: 32px;
    font-weight: bold;
    font-family: 'Nunito';
    font-weight: 900;
    text-align: left;
    color: white;

    letter-spacing: -2px;
    transform: letter-spacing 0.3s;
}

.miniProjectItem img{
    margin-top: 5px;
    margin-left: 10px;

    height: 75px;
}

.miniProjectItemFooter{
    position: relative;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 10px;
    margin-bottom: 5px;
    margin-left: 12px;

    display: flex;
    flex: none;

    font-weight: 900;
    letter-spacing: 1px;
}

.miniProjectItemFooter p{
    margin-right: 5px;
    
    font-weight: 700;
}

.miniProjectItemTag{
    height:min-content;

    font-size: 2cqmin !important; 
    border-radius: 25px;
    background-color: var(--secondary-color);
    color: var(--primary-accent-color) !important; 
}

@media only screen and (max-width: 1000px) {
    .miniProjectsContainer{
        flex-direction: column !important;
        justify-content: space-evenly !important; 
        align-items: center;
    }
    .miniProjectItem{
        margin: 65px;

        transform: scale(2) !important;
        transition: unset !important;
    }
    .miniProjectItem:hover{
        transition: unset !important;
        transform: scale(2) !important;
    }
}

/*  SOCIAL SECTIONS
    a place to house all my social links
*/
.socialSection{
    margin: auto;
    margin-top: 100px;

    width: 80%;

    text-align: center;
}

.socialSection p{
    margin-top: 1px;

    font-size: 16px;
}

.socialItem{
    margin-top: -4px;
    margin-bottom: -4px;
    padding-left: 15px;
    padding-right: 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    transition: transform 0.3s;
}

.socialItem:hover{
    transform: scale(1.3) rotate(var(--hoverRotationDegrees));
    opacity: 1;
}

.socialItem p{
    padding-left: 20px;

    font-weight: bold;
    font-family: 'Nunito';
    font-size: 22px;

    letter-spacing: -1px;
    
    transform: letter-spacing 0.3s;
}

.socialItem img{
    width: 50px;
}

.socialsContainer{
    margin: auto; 
    padding-left: 25px;
    padding-right: 25px;

    display: flex; 
    max-width: 1200px;
    min-width: 600px;

    flex-wrap:wrap; 
    justify-content: space-around; 
}

#contactEmail{
    line-height: 20px;
}

@media only screen and (max-width: 1000px) {
    .socialSection{
        width: 95%;
    }
    
    .socialItem img{
        width: 80px;
    }

    .socialItem p{
        font-size: 7vw;
        margin-bottom: 30px;
    }

    .socialsContainer{
        flex-direction: column !important;
        justify-content: space-evenly !important; 
        align-items: center;
    }

    #contactEmail{
        margin-top: 95px !important;

        line-height: 60px !important;
    }

}

/*  FOOTER
    foot? mmmm
*/
.footer{
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-color: var(--primary-color);
    width: 100%;
    margin-top: 50px;
    flex-grow: 1;
    height: 100%;
}

.footer p{
    position: relative;
    padding: 0;
    margin: 0;
    margin-left: 15px;

    display: inline-block;
    width: 100%;

    font-weight: bold;
    font-family: 'Nunito';
    font-size: 20px;
    font-weight: 600;
    color: white;

    font-weight: bold;

}

/*
.footer p:hover{
    font-size: 16px;
    font-weight: 700;
}*/

#sntlt{
    font-style: normal;
    text-align: center;
    display: inline-block;
    margin: 0 auto;
    margin-top: 0px;   
    width: 70%;
    padding-top: 2px;
    padding-bottom: 0px; 
    pointer-events: none;
}

#soundcloudPlayer{
    margin: 0 auto;
    margin-top: 0px;
    margin-left: 25%;
    padding-bottom: 2px;

    display: inline-block;
    width: 50%;
    height: 20px;
}

.hideElement{
    display: none;
}

.hideElement table, td{
    text-align: center;
    border: none;
}