:root {
    --body-font-color: #ffffff;

    --container-border-width: 1px;
    --container-border-radius: 10px;
    
    --black: rgb(0, 0, 0);
    --grey--dark: rgb(49, 47, 47);

    --brown: rgb(99, 69, 40);
    --brown--dark: rgb(54, 43, 36);
    --brown--dark-alt: rgb(68, 62, 58);
    --brown--light: rgb(150, 133, 121);

    --red: rgb(255, 120, 120);

    --gold: rgb(255, 215, 0);
    --orange--burnt: rgb(194, 153, 123);
    --orange--light: rgb(207, 192, 158);
}

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

body {
    color: var(--body-font-color);
    font-size: 16px;
}

.container {
    background-color: var(--black);
    width: max-content;
    max-width: 1050px;
    border: var(--container-border-width) solid var(--brown);
    border-radius: var(--container-border-radius);
    box-shadow: 0 0 2px 2px var(--brown);
    margin: 3rem auto 0;
    position: relative;
}

/*
        ACCESSIBILITY
*/

.sr-only {
    position: absolute;
    left: -1000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 
        HEADER - Name and external links
*/

.container--header {
    padding: 0.3rem 0.3rem 0.3rem 0.5rem;
    display: flex;
    position: relative;
}

.header--title {
    font-size: 1.4rem;
    font-weight: 400;
}

.content--container {
    width: 100%;
    display: grid;
    grid-template-columns: 300px 425px 270px;
}

.container--nav {
    position: absolute;
    left: 45%;
    top: -24px;
}

.container--nav-list {
    list-style-type: none;
    display: flex;
    justify-self: center;
    gap: 5px;
}

.container--nav-link {
    display: block;
    height: 46px;
    width: 46px;
    background-color: var(--black);
    border: 3px solid var(--brown);
    border-radius: 50%;
}

.container--nav-img {
    width: 100%;
    height: auto;
}

.container--nav-img.smaller {
    width: 36px;
    margin: 1px 0 0 2px;
}

.container--nav-img.larger {
    width: 46px;
    position: relative;
    left: -3px;
    top: -3px;
}

/* 
        COLUMN 1 - Tobias Summary
*/

.content--summary {
    max-width: 320px;
    background-color: var(--brown--dark);
    padding: 1rem 1rem 0;
    border: 2px solid var(--brown);
    border-radius: var(--container-border-radius);
    margin: 0 0 .25rem .25rem;
}

.content--summary-title {
    color: var(--orange--light);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    margin: 0 0 1rem;
}

.content--summary ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.attribute--label {
    color: var(--orange--burnt);
}

.attribute--value {
    color: var(--orange--light);
}

.list--attributes-horizontal {
    display: flex;
}

.list--attributes-horizontal.evenly {
    justify-content: space-evenly;
}

.list--attributes-horizontal.wrap {
    flex-wrap: wrap;
}

.content--summary li {
    margin-bottom: .25rem;
}

.list--attributes-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--orange--light);
}

.list--attributes-value {
    text-align: center;
    color: var(--orange--light);
}

.tags {
    color: var(--orange--burnt);
}

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

li.between span:first-of-type {
    flex-grow: 1;
}

li.between span:last-of-type {
    width: 50%;
    text-align: right;
}

/* 
        COLUMN 2 - Level, Equipment, Photo 
*/

.content--character {
    width: 100%;
    max-width: 400px;
    height: 100%;
    padding: 0 1.75rem 0 1rem;
    display: grid;
    grid-template-rows: 50px 1fr 80px;
}

.tobias--level-container {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.level--container {
    display: flex;
    flex-grow: 1;
    background-color: var(--brown--dark);
    padding: 0.3rem 0.6rem;
    border: 2px solid var(--gold);
    border-radius: 20px;
    margin: 0 0.4rem;
}

.level--indicator {
    height: 6px;
    width: 33%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    background-color: var(--gold);
}

/* 
        CHARACTER EQUIPPABLE LAYOUT
*/

.character--equippable-container {
    width: 100%;
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    margin: 0 0 2.5rem;
}

.character--equippable-column {
    padding: 1rem 0 0;
}

.character--outfit-column {
    position: relative;
}

.character--image {
    position: absolute;
    top: 0;
    left: 15%;
    transition: all ease 100ms;
    width: 179px;
    height: auto;
    opacity: 100%;
}

.gandalf {
    position: relative;
    left: -5px;
    width: 300px;
}

.image--hidden {
    opacity: 0;
}

.character--equippable-row {
    display: flex;
    justify-content: space-around;
    padding: 0 1rem;
}

.character--equipment-column {
    width: 28%;
}

.character--equipment-title {
    font-size: 1rem; 
    font-weight: 400;
    text-align: center;
    margin: 0 0 .4rem;
}

.content--inventory-title,
.content--inventory-hovered {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 .25rem;
}

.content--inventory-hovered {
    font-size: 1rem;
    margin: 0 0 1rem;
}

.content--inventory-container {
    padding: 0 0 .25rem;
    max-width: 320px;
    margin: 0 .25rem .25rem 0;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-flow: wrap;
    grid-area: contentInventory;
}

.equipped--dropzone {
    width: 50px;
    height: 50px;
    background-color: var(--brown--dark-alt);
    border: 2px solid  var(--brown--light);
    border-radius: 10px;
    margin: .5rem;
    transition: ease all 150ms;
}

.equipped--dropzone {
    &:focus {
        outline: 2px solid white;
    }
}

.margin-top-large {
    margin-top: 7rem;
}

.break {
    margin-bottom: 3rem;
}

.inventory--dropzone {
    width: 51px;
    height: 51px;
    background-color: var(--grey--dark);
    transition: all ease 100ms;
    border: 1.5px solid var(--black);
}

.highlighted--dropzone {
    background-color: rgb(74,74,74);
}

.dropzone--valid {
    transition: ease all 200ms;
    box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.4);
    border-color: white;
}

.dropzone--invalid {
    transition: ease all 200ms;
    background-color: var(--black);
    box-shadow: 0 0 1px 1px var(--red);
    border-color: rgb(255, 173, 173);
}

.item--container {
    padding: 4px;
    transition: all ease 100ms;
}

.item--img {
    width: 100%;
    height: auto;
}

.draggable {
    cursor: grab;
}

/* 
            INVENTORY WEIGHT
*/

.inventory--weight-container {
    display: flex;
    align-items: center;
    padding: .5rem 1rem 1rem;
    margin: 0;
}

.inventory--weight-indicator {
    display: flex;
    flex-grow: 1;
    height: 24px;
    background-color: rgb(13, 10, 8);
    padding: 0.4rem 0.8rem;
    border: 2px solid rgb(73, 57, 46);
    border-radius: 20px;
    margin: 0 0.4rem;
}

.inventory--weight-indicator--background {
    width: 100%;
    height: 8px;
    display: flex;
    background: rgb(126,126,126);
    background: linear-gradient(90deg, rgba(126,126,126,1) 0%, rgba(126,126,126,1) 67%, rgba(228,227,126,1) 70%, rgba(228,227,126,1) 88%, rgba(255,0,0,1) 93%);
    border-radius: 10px;
    padding: 1px 0;
}

.inventory--weight-indicator-length {
    height: 6px;
    background-color: rgb(197, 197, 197);
    border-radius: 10px;
    transition: all ease 100ms;
}

/* 
        OVERLAY & MODAL
*/

.overlay--container {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 2rem 0 0;
}

.overlay--container.hidden {
    display: none;
}

.overlay--content {
    position: relative;
    width: 340px;
    height: max-content;
    background-color: var(--brown--dark);
    padding: 1rem 1.2rem .5rem;
    border: 2px solid var(--brown);
    border-radius: 20px;
    margin: 5rem;
}

.overlay--close-button {
    position: absolute;
    top: -14px;
    right: -10px;
    font-size: 2rem;
    transform: rotate(45deg);
    background-color: var(--grey--dark);
    padding: 0 .55rem;
    border: 3px solid var(--brown);
    border-radius: 50%;
    cursor: pointer;
}

.overlay--title {
    color: var(--orange--light);
    font-weight: 400;
    margin: 0 0 1.5rem;
}

.overlay--text {
    color: var(--orange--burnt);
    font-size: 1.1rem;
    line-height: 1.4rem;
    margin: 0 0 1.5rem;
}

/* 
            RESPONSIVE BREAKPOINTS
*/

@media (max-width: 768px) {
    .container {
        max-width: 96%;

    }

    .container--nav {
        right: 0;
    }

    .content--container {
        display: grid;
        grid-template-columns: 330px 1fr;
    }

    .content--summary {
        max-width: 330px;
    }

    .content--character {
        width: 340px;
    }

    .character--equippable-container {
        grid-template-columns: 1fr 50px;
    }

    .character--equippable-column:first-of-type {
        display: none;
    }
    
    .equipped--dropzone {
        width: 40px;
        height: 40px;
    }

    .content--inventory {
        display: none;
    }
}

@media (max-width: 425px) {
    .container {
        max-width: 96%;
        margin: 10% auto;
    }

    .container--nav {
        right: 0;
    }

    .content--container {
        display: block;
        margin: 0 0.5;
        max-width: 99%;
    }

    .content--summary {
        max-width: 330px;
    }

    .content--character {
        display: none;
    }

    .content--inventory {
        display: none;
    }
}
