/* Page-level font styling */
body {
    margin: 0px;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* The main grid where app functionality lies */
#app {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto
                        0px;
    justify-content: center;
    margin: 0px;
    color: #333;
    position: absolute;
}

/* Styling for each control panel element */
.panel {
    border-RADIUS: 10px;
    box-shadow: 0px 0px 6px #dddddd;
    padding: 15px;
    margin: 10px;
    display: grid;
    align-items: center;
    width: 300px;
}

/* The control panel on the left of the screen */
.panel.metronome {
    grid-gap: 10px;
    grid-template-columns: 1fr auto auto;
}

/* The window.metronome on/off text */
#metronome-state {
    color: #ccc;
}

/* Not used due to p5 frameRate bug */
.panel.tempo {
    grid-gap: 10px;
    grid-template-columns: 1fr 100px;
}

.panel.editing {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 1fr auto auto;
}

.panel.examples {
    grid-gap: 10px;
    grid-template-columns: 1fr auto auto auto;
}

.panel button {
    border: 0px;
    width: 30px;
    height: 30px;
    background-color: #aaa;
    border-RADIUS: 5px;
    color: white;
    cursor: pointer;
}

.panel button:hover {
    background-color: blue;
}

/* Used for section titles in the control panel */
h3 {
    font-weight: 500;
    font-size: 16px;
    margin-block-start: 0px;
    margin-block-end: 0px;
}

/* List of sounds with keyboard shortcut */
.sound-table {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 5px;
}

.sound-section-title {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 12px;
    margin: 15px 0px 5px 0px;
}

/* The 'pill' for each sound */
.sound {
    display: grid;
    grid-template-columns: 1fr auto;
    font-size: 12px;
    background-color: #f0f0f0;
    border-RADIUS: 5px;
    align-items: center;
    padding: 5px 5px 5px 10px;
}

/* The box indicating which key triggers the given sound */
.key {
    border: solid 1px #aaa;
    padding: 0px 5px;
    border-RADIUS: 5px;
    background-color: white;
    min-width: 9px;
    display: flex;
    justify-content: center;
}

#canvas {
    margin: auto;
}

#loading_screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading_image {
    width: 75px;
    height: 75px;
}

/* The right panel with the title, name, and intro video selector */
#right-panel {
    position: absolute;
    right: 0px;
}

/* Used for the 'MUSIC BOX' logo */
h1 {
    margin-top: 10px;
    margin-right: 15px;
    font-weight: bold;
    display: block;
    font-size: 18px;
    margin-bottom: 0px;
}

#author-name {
    font-size: 14px;
    font-style: italic;
    margin-top: -2px;
}

/* Used for the name linking back to the main portfolio page */
a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: blue;
    cursor: pointer;
    text-decoration: underline;
}

/* The video intro button on the right of the screen */
#intro-button {
    margin-top: 15px;
    margin-right: 15px;
    color: #aaa;
    display: flex;
    justify-content: right;
    flex-direction: row-reverse;
    gap: 4px;
}

#intro-button:hover {
    cursor: pointer;
    color: blue;
}

/* For the video intro popup */
.popup-parent {
    background-color: #33333399;
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-item {
    background-color: white;
    border-RADIUS: 10px;
    box-shadow: 0px 2px 8px #333333;
}

/* Allows the 'X' to sit above the video, while video is vert. centered */
.video-grid {
    display: grid;
    grid-template-rows: 50px auto 50px;
}

.video {
    width: 600px;
    height: 350px;
}

/* The 'X' button on top of popup */
.popup-close {
    margin-left: auto;
    height: 30px;
    width: 30px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.popup-close:hover {
    cursor: pointer;
    color: #333;
}