/*--
Colour Variables
--*/
:root {
    --sidebar-background-colour: #69995D;
    --sidebar-accent-colour : #B1C7AE;
    --sidebar-text-colour : #F9F5FF;
    --background-accent-colour : #EEE5E9 ;
    --text-colour : #020202;
    --sub-text-colour: #66666E;
}

/*
Overall Styling
*/
html, body, div, span, applet, object,ki
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
    border-style: solid;
}

body {
    color: var(--text_colour);
    font-family: Roboto, Verdana, Geneva, Tahoma, serif;
    display: flex;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*
Overall Font Styling
*/

/*
Sidebar Styling
*/
#sidebar {
    background-color: var(--sidebar-background-colour);
    color: var(--sidebar-text-colour);
    position: fixed;
    display: flex;
    width: 20vw;
    padding-left: 15vw;
    padding-top: 1rem;
    height: 100%;
    left: 0px;
}

#info{
    overflow-y: auto;
    margin-right: 5%;
    text-overflow: ellipsis;
    justify-content: space-between;
}

#profile-picture {
    border-radius: 100%;
    border: 2px solid var(--sidebar-accent-colour);
    width: 4vw;
    object-fit: cover
}

#profile-header {
    flex: 6;
    margin-left: 0.6vw;
    justify-content: center;
}

#profile-intro {
    color: var(--sidebar-accent-colour);
    font-size: 1.2rem;
    font-weight: bold;
}

#profile-name {
    font-size: 1.8rem;
    font-weight: bold;
}

#profile-tagline {
    font-size: 1.2rem;
    line-height: 0.;
}


#profile-description {
    margin-top: 0.5rem;
}

#skills-instructions {
    color: var(--sidebar-accent-colour);
    font-size: 0.8rem;
}

.skills{
    margin-top: 2vh;
    flex-wrap: wrap;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    gap: 0.3vw;
}

.skill{
    flex: 1 1;
}

.skill-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
  
.skill-text {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5vh;
    padding-left: 1vw;
    padding-right: 1vw;
    background-color: var(--sidebar-background-colour);
    border: 3px solid var(--sidebar-accent-colour);
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

.skill-check:checked + .skill-text {
    background-color: #fff;
    color: var(--text-colour);
}

#contact {
    margin-bottom: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 1vh;
    padding-top: 1vh;
    border-top: 1px solid var(--sidebar-accent-colour);
}

.contact-link {
    flex-basis: 22%;
    text-align: center;
}

.contact-icon {
    filter: brightness(0) saturate(100%) invert(81%) sepia(0%) saturate(7333%) hue-rotate(187deg) brightness(114%) contrast(120%);
    width: 50%;
}


/*
Project Styling
*/
#main {
    margin-left: 37vw;
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    width: 45vw;
}

#projects{
    flex: 1;
    gap: 1vw;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

.project {
    flex: 0 0 30%;
    border-radius: 13px;
    border: 3px solid var(--sidebar-background-colour);
    justify-content: space-between;
}


.project-title {
    background-color: var(--sidebar-background-colour);
    padding: 0.5vw;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: var(--sidebar-text-colour);
    font-weight: bold;
    font-size: 1.4rem;
 
}

.project-description {
    margin-top: 0.5vw;
    margin-left: 0.2vw;
}

.project-skills{
    white-space: nowrap;
    overflow: hidden;
    flex-wrap: wrap;
    gap: 0.3vw;
    margin: 0.3vw;
}

.project-skill {
    flex: 1 1;
    padding: 0.2vh;
    padding-left: 0.3vw;
    padding-right: 0.3vw;
    border-radius: 10px;
    border: 3px solid var(--sidebar-accent-colour);
    background-color: var(--background-colour);
    color: var(--text-colour);
    text-align: center;
    font-size: 0.8rem;
}

.project-footer {
    margin-top: 0.5vw;
    margin: 0.4vw;
    align-items: center;
}

.project-date {
    color: var(--sub-text-colour);;
}

.project-link {
    background-color: var(--background-accent-colour); 
    border: 2px solid var(--sidebar-accent-colour);
    color: var(--text-colour);
    padding: 0.2vw;
    border-radius: 0.3vw;
    text-decoration: none;
}

.project-link:hover {
    background-color: var(--sidebar-background-colour); 
    color: var(--sidebar-text-colour);
}

/**
Sizing Rules
**/
/**
Smaller Screens
**/
@media only screen and (max-width: 1500px) {
    #profile-picture {
      display: none;
      margin: 0;
      padding: 0;
    }

    #profile-header {
        margin: 0;
        padding: 0;
    }
}

/**
Smaller Screens
**/
@media only screen and (max-width: 1350px) {
    html {
        font-size: 90%;
    }
}


/**
Mobile Horizontal / Tablets
**/
@media only screen and (max-width: 1100px) {

    html {
        font-size: 65%;
    }

    #sidebar {
        padding-left: 2vw;
        width: 25vw;
    }

    #info{
        padding-right: 2vw;
    }

    #main {
        margin-left: 30vw;
        width: 100%;
    }

    .project{
        flex: 0 0 45%;
    }
}

/**
Mobile Vertical / Tablets
**/

@media only screen and (max-width: 500px) {

    html {
        font-size: 65%;
    }

    #sidebar {
        padding-left: 2vw;
        margin-right: 2vw;
        width: 34vw;
    }

    #info{
        padding-right: 2vw;
    }

    #main {
        margin-left: 38vw;
        width: 100%;
    }

    .project{
        flex: 0 0 93%;
    }

    .project-image {
        height: 4vh;
    }

    .contact-link {
        flex-basis: 50%;
    }

    .project-footer {
        margin: 1.5vw;
        margin-top: 1vw;
    }

    .project-skills{
        gap: 0.5vw;
        margin: 0.5vw;
    }
}