﻿.inventory-column {
    overflow: auto;
}

.item-tracker {
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    overflow-y: auto;
    height: 100%;
    min-height: 0;
    background-image: url('../images/backgrounds/tracker.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
}

.item-slot-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    object-fit: contain;
    image-rendering: optimizeQuality;
    cursor: pointer;
    max-width: 45px;
}

.item-slot {
    width: 100%;
    height: 100%;
    background: none;
    cursor: pointer;
    border: none;
    padding: 2px;
}

    .item-slot img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .item-slot.not-obtained img {
        filter: grayscale(1) brightness(0.4);
        opacity: 0.5;
    }

    .item-slot.obtained img {
        filter: none;
        opacity: 1;
    }

    .item-slot.age-locked img {
        filter: grayscale(1) brightness(0.4);
        opacity: 0.5;
    }

    .item-slot.obtained.age-locked img {
        filter: grayscale(1) brightness(0.4);
        opacity: 0.5;
    }


.tracker-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    
}
.tracker-controls-left {
    display: inline-flex;
    gap: 4px;
    margin-left: 10px;
}

.tracker-controls-right {
    display: inline-flex;
    gap: 4px;
    margin-right: 10px;
}

.tracker-background {
    min-height: 0;
    width: 100%;
    
    display: flex;
    flex-direction: column;
    
    position: relative;
}

.inventory-button {
    background: linear-gradient(180deg, #2a2a2e, #151517);
    color: var(--oot-gold, #d4af37);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 6px;
    padding: 4px;
    height: 22px;
    font-size: 0.6rem;
    text-transform: uppercase;
    cursor: pointer;
}

    .inventory-button:hover {
        background: linear-gradient(180deg, #38383d, #1c1c1f);
        border-color: var(--oot-gold, #d4af37);
    }

.portrait-zone {
    position: fixed;
    left: 102px;
    top: 445px;
    width: auto;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .portrait-zone.rando {
        left: 115px;
    }

.link-portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    gap: 4%;
    width: 65%;
}

    .link-portrait img {
        width: auto;
        height: 100px;
        max-height: 85%;
        object-fit: contain;
        cursor: pointer;
    }

.portrait-caption {
    font-size: 0.7rem;
    color: #333;
    text-align: center;
}

.tracker-section {
    flex: 1;
    position: relative;
    display: flex;
}

.tracker-equipment {
    display: flex;
    flex-direction: row;
}

.tracker-quest {
    flex-direction: column;
}

.item-grid, .equipment-grid, .song-grid {
    position: fixed;
    left: 30px;
    top: 140px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: min-content;
    align-content: start;
    gap: 10px;
    padding: 8px;
}

.equipment-grid {
    left: 210px;
    top: 405px;
    grid-template-columns: repeat(3, 1fr);
}

.song-grid {
    left: 3px;
    top: 771px;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    grid-row-gap: 12.5px;
}

    .song-grid .item-slot-cell {
        max-width: 25px;
    }

.ocarina-buttons-grid {
    position: fixed;
    display: inline-flex;
    height: 50px;
}

.ocarina-buttons-grid .item-slot-cell {
    max-width: 32px;
}
    .ocarina-buttons-grid > :nth-child(1) {
        position: fixed;
        top: 871px;
        left: 30px;
    }

    .ocarina-buttons-grid > :nth-child(2) {
        position: fixed;
        top: 863px;
        left: 60px;
    }

    .ocarina-buttons-grid > :nth-child(3) {
        position: fixed;
        top: 856px;
        left: 90px;
    }
    .ocarina-buttons-grid > :nth-child(4) {
        position: fixed;
        top: 851px;
        left: 120px;
    }
    .ocarina-buttons-grid > :nth-child(5) {
        position: fixed;
        top: 844px;
        left: 150px;
    }

.equipment-side {
    position: fixed;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    align-content: start;
    gap: 1.8px;
    padding: 4px;
    left: 12px;
    top: 390px;
}

.ability-grid {
    position: fixed;
    display: inline-flex;
    flex-direction: column;
    flex-wrap: wrap;
    left: 75px;
    top: 415px;
    justify-content: center;
}

    .ability-grid .item-slot-cell {
        max-height: 45px;
        margin: -2.5px;
    }

.adult-quest-grid {
    position: fixed;
    display: grid;
    grid-template-rows: 38px 66px 40px 30px;
    grid-template-columns: repeat(3, 61px);
    left: 195px;
    top: 670px;
}

    .adult-quest-grid > :nth-child(1) {
        grid-column: 3;
        grid-row: 2;
    }

    .adult-quest-grid > :nth-child(2) {
        grid-column: 3;
        grid-row: 3;
    }

    .adult-quest-grid > :nth-child(3) {
        grid-column: 2;
        grid-row: 4;
    }

    .adult-quest-grid > :nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .adult-quest-grid > :nth-child(5) {
        grid-column: 1;
        grid-row: 2;
    }

    .adult-quest-grid > :nth-child(6) {
        grid-column: 2;
        grid-row: 1;
    }

    .adult-quest-grid .item-slot-cell {
        width: 50px;
    }
    .adult-quest-grid .item-slot-cell img{
        width: 45px;
    }

.adult-quest-wrapper,
.child-quest-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.child-quest-wrapper {
    top: 34px;
    align-items: center;
}

.dungeon-key-wrapper {
    position: absolute;
    display: grid;
    grid-template-rows: repeat(2, 20px);
    cursor: pointer;
    justify-items: center;
    z-index: 2;
    top: 22px;
}
.dungeon-key-row,
.dungeon-item-row {
    position: relative;
    border-radius: 5px;
    align-items: center;
    display: inline-flex;
    cursor: pointer;
    background: rgba(0,0,0,0.6);
    gap: 2px;
    padding: 4px 4px;
    z-index: 2;
}

.dungeon-item-row {
    grid-row: 1
}

.dungeon-key-row {
    grid-row: 2
}

.dungeon-item-row.child1 {
    top: 4px;
    left: -25px;
}
.dungeon-item-row.child2 {
    top: 4px;
    left: 0.2px;
}

.dungeon-item-row.child3 {
    top: 4px;
    left: 25px;
}

.key-icon, .key-badge {
    width: auto;
    height: 16px;
    padding: 1px 2px;
    filter: grayscale(1) brightness(0.4);
    opacity: 0.6;
}

    .key-icon.obtained {
        filter: none;
        opacity: 1;
    }

    .key-icon.smallkey,
    .key-icon.heart {
        filter: none;
        opacity: 1;
    }

    .key-icon.heart {
        filter: none;
        height: 24px;
        opacity: 1;
    }

.key-badge {
    font-size: 13px;
    color: white;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;
    opacity: 1;
    margin: 0 2px;
}

    .key-badge.heart {
        font-size: 15px;
    }

    .key-badge.desc {
        font-size: 10px;
    }

.child-quest-grid {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(3, 53.5px);
    left: 190px;
    top: 860px;
    gap: 1px;
}

    .child-quest-grid .item-slot-cell,
    .other-quest-grid .item-slot-cell,
    .sticks-nuts-grid .item-slot-cell {
        max-width: 35px;
    }

.heart-quest-grid .item-slot-cell,
.misc-row .item-slot-cell {
    max-width: 30px;
}

.heart-quest-grid {
    position: fixed;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    justify-items: flex-start;    
    top: 674px;
    left: 110px;
}

.triforce-hunt-grid {
    position: fixed;
    display: grid;
    top: 645px;
    left: 340px;
}

.extra-keys-grid {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    align-content: center;
    top: 945px;
    left: 130px;
    gap: 5px;
}

.heart-row,
.misc-grid {
    display: inline-flex;
    background: none;
    padding: 5px 0;
    border-radius: 5px;
}

.misc-grid {
    position: fixed;
    top: 585px;
    left: 105px;
}

    .misc-grid.rando {
        left: 120px;
    }

.greg-grid {
    position: fixed;
    top: 850px;
    left: 340px;
    display: inline-flex;
    
}

.greg-grid .item-slot-cell {
    max-height: 30px;
}

.jabbers-grid {
    display: grid;
    position: fixed;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    top: 900px;
    left: 5px;
}

.jabbers-grid .item-slot-cell {
    max-height: 40px;
}

.sticks-nuts-grid {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(2, 47px);
    top: 642px;
    left: 17px;
}

.other-quest-grid {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(2, 47px);
    top: 682px;
    left: 15px;
}

    .other-quest-grid span {
        position: absolute;
        top: 58px;
        left: 50px;
        text-align: start;
        font-size: 15px;
    }

.misc-grid .item-slot-cell {
    max-height: 30px;
}