@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

:root {
    --red-color: #930133;
}

body {
    font-family: "Quicksand", sans-serif;
    /* background-color: #dddde6; */
    background-color: #F9FBFDEE;
    background-blend-mode: color;
    /* background-color: rgb(150,150,150); */
    /* background-image: url("https://images.unsplash.com/photo-1523650055327-53aeba964f5f"); */
    /* background-image: url("https://images.unsplash.com/photo-1614292253389-bd2c1f89cd0e"); */
    /* background-image: url("https://images.unsplash.com/photo-1615800098779-1be32e60cca3"); */
    background-image: url("https://images.unsplash.com/photo-1615799998603-7c6270a45196");
    /* background-size: cover; this stopped looking good on chrome */
    /* height: 100vh; */
}

.hidden {
    display: none;
}

.animate-fade {
    opacity: 1;
    transition: opacity 200ms;
}

.animate-fade.fade-out {
    opacity: 0;
}

/*
*
* 
*override built-in styles
*
*
*/

.collection {
    background-color: white;
}

.collection-item {
    /* make collection item better*/
    display: grid;
    /* 1fr for main content, auto for secondary content*/
    grid-template-columns: 1fr auto;
    align-items: center;
}

.secondary-content {
    /* undo stupid float and make secondary content work better*/
    float: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.btn,
.btn-large,
.btn-small {
    background-color: var(--red-color);
    color: white;
}

.btn:hover,
.btn-large:hover,
.btn-small:hover {
    background-color: var(--red-color);
    filter: brightness(1.15);
}


.btn-flat {
    color: var(--red-color);
}

.btn-flat:hover {
    filter: brightness(1.5);
}

.brand-logo {
    margin-left: 1rem;
}

.brand-logo>img {
    vertical-align: sub;
    height: 42px;
    padding: 0 1rem 0 1rem;
}

/* make modals narrower on wider screens */
@media screen and (min-width: 1200px) {
    .modal {
        width: 40%;
    }
}

.modal-content>p,
.modal-footer>a {
    font-size: 1.2rem;
}

/*
*
*
* my styles
*
*
*/

.modal-content,
.modal-footer {
    background-color: white !important;
}

.btn.other-action,
.btn-large.other-action {
    color: var(--red-color);
    background-color: #fff4f4;
}

.btn.other-action:hover,
.btn-large.other-action:hover {
    color: var(--red-color);
    background-color: #fff4f4;
    filter: brightness(1.15)
}

.toast.error {
    background-color: red;
    color: white;
}

/* interview list */

#interview-collections {
    width: 75vw;
    margin: 0 auto;
}

/* make the interview list take up the full
        screen width on narrower screens */
@media screen and (max-width: 1200px) {
    #interview-collections {
        width: auto;
    }
}

#interview-collections .collection-header {
    /* font-variant-caps: small-caps; */
    /* letter-spacing: 0.5rem; */
    color: var(--red-color);
    /* background-color: #fffefe; */
    /* border-bottom: 2px solid #ddd; */
}


.interview {
    display: grid;
    gap: 0.25rem;
    grid-template-columns: 30vw 20vw;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "speaker interviewers"
        "duration date";
}

.interview>.interviewee {
    grid-area: speaker;
    font-weight: bold;
    font-size: 1.2em;
}

.interview>.interviewers {
    grid-area: interviewers;
}

.interview>.audio-length {
    grid-area: duration;
}

.interview>.date {
    grid-area: date;
}

.admin-label {
    /* the span seems to keep it's horizontal space in the layout
    then rotate, so there's a lot of space between the other
    buttons and the label. */
    transform: rotate(-90deg) translateY(10px);
}

.admin-controls {
    border: 1px solid lightgray;
    border-radius: 2px;
    padding: 0.2rem;
    display: flex;
    gap: 2px;
    flex-direction: column;
    align-items: center;
}

/* editor */

#interview-editor {
    display: grid;

    gap: 1rem;
    height: calc(100vh - 64px);
    /* navbar is 64px i guess */
}

#interview-editor.right-sidebar-top-controls {
    /*default*/
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr 20vw;
    grid-template-areas:
        "audio actions"
        "transcript side";
}

#interview-editor.left-sidebar-top-controls {
    grid-template-rows: auto 1fr;
    grid-template-columns: 20vw 1fr;
    grid-template-areas:
        "actions audio"
        "side transcript";
}

#interview-editor.right-sidebar-bottom-controls {
    grid-template-rows: 1fr auto;
    grid-template-columns: 1fr 20vw;
    grid-template-areas:
        "transcript side"
        "audio actions";
}

#interview-editor.left-sidebar-bottom-controls {
    grid-template-rows: 1fr auto;
    grid-template-columns: 20vw 1fr;
    grid-template-areas:
        "side transcript"
        "actions audio";
}

#interview-audio {
    grid-area: audio;

    place-self: center;
    padding: 1rem;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#interview-audio>audio {
    width: 30vw;
}

#interview-transcript {
    grid-area: transcript;

    display: flex;
    flex-direction: column;
}

#interview-transcript>iframe {
    /* this lets the iframe grow vertically, i guess
            https://stackoverflow.com/questions/325273/make-iframe-to-fit-100-of-containers-remaining-height
            */
    flex-grow: 1;
    border: none;
    margin: 0;
    padding: 0;
}

#interview-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: center;
}

#interview-sidepanel {
    grid-area: side;

    padding: 0rem 1rem;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

#interview-sidepanel .card-panel {
    /* override materializecss default light blue*/
    background-color: white;
}