@font-face {
    font-family: 'CzechHandwriting';
    font-display: swap;
    src: url('fonts/Caveat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.view {
    display: none;
}
.view.active {
    display: block;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: #EBB862;
    color: #007BE5;
    font-size: medium;
    font-family: 'CzechHandwriting';
    align-items: center;
    justify-content: center;

}

.nav {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}
.navBtn {
    background-color: #FFF;
    font-weight: bold;
    color: #007BE5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.navBtn:hover {
    background-color: #007BE5;
    color: #FFF;
}
.navBtn:hover svg path {
    fill: #FFF;
}
.navBtn.active svg path {
    fill: #EBB862;
}

p {
    white-space: pre-wrap;
}

div {
    text-align: center;
}

h1 {
    text-align: center;
}

.checkboxDiv {
    margin-bottom: 10px;
}

button {
    font-family: inherit;
    background-color: #FFF;
    font-weight: bold;
    padding: 10px 20px;
    color: #007BE5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #007BE5;
    color: #FFF;
}

textarea {
    font-family: inherit;
    padding: 10px;
    border: 1px solid #007BE5;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 80%;
    height: 20vh;
    font-size: larger;
    color: #007BE5;
}

audio::-webkit-media-controls-panel {
    /* O_O */
    background-color: #ff841a;
}
audio::-webkit-media-controls-enclosure {
    filter: invert(1);
}
audio::-webkit-media-controls-current-time-display, 
audio::-webkit-media-controls-time-remaining-display {
    /* color: #ffffff; */
    /* text-shadow: none; */
    font-family: 'CzechHandwriting';
}


.recordDiv {
    margin: 20px 0 20px 0;
}

.saveDiv {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: medium;
    margin: 20px 0 20px 0;
}
.saveDiv div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.notesListWrapper {
    width: 80%;
    margin: 0 auto;
}
.notesList {
    padding: 0;
    margin: 0;
}
.note {
    margin: 10px 0;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #007BE5;
}
.noteHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    border-bottom: 1px solid #007BE5;
    padding: 5px 10px;
}
.notePreview {
    width: 85%;
    cursor: pointer;
}
.noteToggle {
    width: 15%;
    transition: transform 0.25s ease;
    cursor: pointer;
}

.noteBody {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
}

.noteBody.expanded {
    max-height: 500px;
    padding: 10px;
    /* flex-direction: row; */
}

.noteBody.expanded .noteText {
    width: 90%;
    text-align: left;
}

.noteActions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.noteActions div {
    cursor: pointer;
    align-items: center;
    display: flex;
    padding: 2px;
}

.audioWrapper.list {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.updateDiv {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 20px 0 20px 0;
    gap: 10px;
}