@import url('https://fonts.googleapis.com/css2?family=Goudy+Bookletter+1911&family=Major+Mono+Display&family=Major+Mono+Display&display=swap');

/*Always capitalize */
/* A G H M R V W X Z */
body {
    margin: 0;
    background-color: #191919;
    color: #758286;

    font-size: 18px;
    font-family: "Major Mono Display", monospace;
    font-weight: 400;
    font-style: normal;

    position: relative;
    isolation: isolate;
}
/* CRT EFFECT */
/* Screen vignette */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;

    background: radial-gradient(
        ellipse at center,
        transparent 55%,
        rgba(0, 0, 0, 0.35) 100%
    );
}
/* Horizontal scanlines */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;

    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.20) 3px,
        rgba(0, 0, 0, 0.20) 4px
    );
}

header {
    padding: 15px;
    margin-left: 50px;
}
h1 {
    font-size: 30px;
    font-family: "Major Mono Display", monospace;
    font-weight: 700;
    font-style: normal;
}
h2 {
    font-size: 25px;
}

/* ASIDE */
aside {
    width: 300px;
    padding: 10px 0px 10px 10px;
    margin: 0px 0px 0px 20px;
    border-right: 1px solid #aaaaaa;
}
aside.expanded {
    padding: 10px 35px 10px 10px;
}

/* MAIN */
main {
    padding: 0px;
}
.page {
    border-top: 1px solid #aaaaaa;
    display: flex;
    /* flex-direction determines the main axis, defaulted to row
            justify-content is centering on the main axis (would be row by default, so < or >)
            align-items is centering on the other axis */
    justify-content: flex-start;
    /* align-items: flex-start; */

    gap: 20px;
}
.page2 {
    border-top: 1px solid #aaaaaa;
    padding-bottom: 120px;
}
.gameSpace {
    flex-direction: column;
    flex: 1;
    padding: 15px;
}

/* DIV */
div {
    border-top: 1px solid #6b6b6b8c;
    padding: 10px;
}
.noBorder {
    border-top: none;
}
.chapter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
    border: 0;

}
.chapter.expanded {
    width: 300px;
}
.dictionaryHeader {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-left: 25px;
    gap: 15px;
}
.dictionarySection {
    display: grid;
    align-items: center;
    grid-template-columns: 180px 1fr;
    gap: 15px;
}
.dictionarySection p {
    margin: 0px;
}
.musicPlayer div {
    border: none;
}


/* SPAN */
.chapterName1, .chapterName2, .chapterName3 {
    flex-shrink: 0;
}
#levelSelector1, #levelSelector2, #levelSelector3 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-width: 0;
}
.levelNumber {
    cursor: pointer;
}
.levelNumber.completed {
    color: #758286;
}
.levelNumber.completed:hover, .levelNumber.current {
    color: #c9a96e;
    font-weight: bold;
}

/* P */
#refFreqText1{
    margin-bottom: 8px;
}
#refFreqText2{
    margin-left: 6px;
    margin-bottom: 8px;
    color: #96B891;
}


/* Signal Text */
#questionSignal{
    color: #96B891;
    white-space: pre-line;
}
#respondSignal{
    white-space: pre-line;
}
#hintSignal{
    white-space: pre-line;
}


/* INPUTS */
#signalInput {
    background-color: #00000000;
    color: #96B891;
    border: 1px solid transparent;
    padding: 10px;
    font-family: inherit;
    font-size: 18px;
    outline: none;
    transition: border-color 0.2s;
    caret-color: #c9a96e;
}
#signalInput:focus, #signalInput:hover {
    border-color: #c9a96e;
}
.dictionaryInput {
    background-color: #00000000;
    color: #96B891;
    border: 1px solid transparent;
    padding: 5px;
    font-family: inherit;
    font-size: 18px;
    outline: none;
    transition: border-color 0.2s;
    caret-color: #c9a96e;
}
.dictionaryInput:focus, .dictionaryInput:hover {
    border-color: #c9a96e;
}
.dictionaryInput.invalid {
    color: #ff4444;
    border: 1px solid #ff4444;
}


/* BUTTONS */
#sendButton {
    background-color: #00000000;
    color: #c9a96e;
    border: 1px solid transparent;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
}
#sendButton:hover {
    border-color: #c9a96e;
}
#recompileButton {
    background-color: #00000000;
    color: #c9a96e;
    border: 1px solid transparent;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
}
#recompileButton:hover {
    border-color: #c9a96e;
}
#recompileButton:disabled {
    color: #979797;
    border-color: #979797;
    cursor: not-allowed;
    opacity: 0.5;
}



/* INITIAL SETUP */
.navbar{
    display: none;
    border: 0;
    padding: 0px;
}
.dictionaryHeader {
    display: none;
}
.dictionarySection {
    display: none;
}
#currentLevelText{
    display: none;
}
.respondSignalDiv{
    display: none;
    padding: 0;
}
.hintSignalDiv{
    display: none;
    padding: 0;
}





::selection {
    background: #555555;
    color: #ffffff;
}













/* MUSIC PLAYER */
.musicPlayer {
    position: fixed;
    bottom: 0;
    width: 100%;
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;

    padding: 20px;
    background: #101114;
    border-top: 1px solid #303030;
    z-index: 1000;
}
.musicPlayer > div {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}

/* track info */
.playerTrack {
    flex: 1;
    min-width: 0;
}
#trackName {
    color: #eeeeee;
    font-size: 12px;
    margin: 0 0 5px;
}
#trackArtist {
    color: #777777;
    font-size: 10px;
    margin: 0;
}
#trackArtist a {
    color: #777777;
    text-decoration: none;
    transition: color 0.2s;
}
#trackArtist a:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* playback ctrl */
.playerControls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}
.playerControls button {
    background: none;
    border: none;
    padding: 5px 0;

    color: #777777;
    

    font-size: 12px;
    font-family: "Major Mono Display", monospace;
    font-weight: 400;
    font-style: normal;

    cursor: pointer;
    transition: color 0.2s;
}
.playerControls button:hover {
    color: #eeeeee;
}
#playButton {
    color: #aaaaaa;
}
#playButton:hover {
    color: #ffffff;
}

/* volume ctrl */
.playerVolume {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    color: #777777;
    font-size: 10px;
}
#volumeSlider {
    width: 90px;
    accent-color: #aaaaaa;
    cursor: pointer;
}

/* visualizer */
.playerVisualizer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #777777;
    font-size: 10px;

    width: 120px;
    height: 35px;
}
#visualizer {
    width: 100%;
    height: 100%;
    display: block;
    transform: translateY(-5px);
}


#signalBackground {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
header,
main,
footer,
section,
aside {
    position: relative;
    z-index: 1;
}

/* MOBILE maybe will implement
@media (max-width: 600px) {
    .musicPlayer {
        padding: 10px 4%;
        gap: 10px;
    }
    .playerControls {
        gap: 12px;
    }
    #volumeSlider {
        width: 55px;
    }
}

*/
