/* Screen-reader only utility — visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@font-face {
    font-family: 'Formula1Bold';
    src: url('fonts/Formula1-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

.container {
    text-align: center;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    background-color: #1a1a1a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.header {
    margin-bottom: 10px;
}

.pilot {
    font-size: 3.5em;
    font-family: 'Formula1Bold';
    margin-bottom: 0px;
    margin-top: 20px;
    font-style: italic;
    text-align: center;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    overflow: hidden;
    width: 100%; 
    height: 70px;
}

.logo-radio {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 50px;
    margin-right: 10px;
    margin-top: -15px;
    cursor: pointer;
}

.radio {
    font-size: 3em;
    color: white;
    font-family: 'Formula1Bold';
    margin: 0;
    font-style: italic;
    margin-top: -10px;
}

.divider {
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, #828282, #1a1a1a);
}

.pilot-divider {
    margin-bottom: 10px;
    width: 100%;
    height: 5px;
}


.content {
    margin-top: 15px;
    margin-bottom: 20px;
}


.message {
    padding-right: 20px;
    padding-left: 20px;
    width: calc(100% - 40px);
    font-size: 1.5em;
    font-style: italic;
    font-family: 'Formula1Regular';
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    field-sizing: content;
}

.message.white {
    color: white;
}

.message.left-align {
    text-align: left;
}

.message.right-align {
    text-align: right;
}

footer {
    font-size: 0.75em;
    color: gray;
    text-align: center;
    margin-top: 10px;
    padding-bottom: 20px;
}

.bar-container {
    display: flex;
    align-items: flex-end;
    background-color: #1a1a1a; /* Background color for the container */
    padding-bottom: 10px;
    padding-left: 50px;
    padding-right: 50px;
    overflow: hidden;
}

.bar {
    width: 10px; /* Adjust as needed */
    margin: 0 2px; /* Space between bars */
}

.bar1 { height: 50px; }
.bar2 { height: 70px; }
.bar3 { height: 80px; }
.bar4 { height: 30px; }
.bar5 { height: 60px; }
.bar6 { height: 40px; }


/* https://chriscoyier.net/2023/09/29/css-solves-auto-expanding-textareas-probably-eventually/ */
.grow-wrap {
    /* easy way to plop the elements on top of each other and have them both sized based on the tallest one's height */
    display: grid;
    padding-right: 20px;
    padding-left: 20px;
    margin-bottom: 10px;
  }
  .grow-wrap::after {
    /* Note the weird space! Needed to preventy jumpy behavior */
    content: attr(data-replicated-value) " ";
  
    /* This is how textarea text behaves */
    white-space: pre-wrap;
  
    /* Hidden from view, clicks, and screen readers */
    visibility: hidden;
  }
  .grow-wrap > textarea {
    /* You could leave this, but after a user resizes, then it ruins the auto sizing */
    resize: none;
  
    /* Firefox shows scrollbar on growth, you can hide like this. */
    overflow: hidden;
  }
  .grow-wrap > textarea,
  .grow-wrap::after {
    /* Identical styling required!! */
    width: 100%;
    max-width: 100%;
    font-size: 1.5em;
    font-family: 'Formula1Regular';
    font-style: italic;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    /* text-align: center; /* Align text to center to match h1 */
    padding: 0;
    line-height: 1.5;
    padding-right: 30px;
   /* overflow: hidden; /* Prevent scrollbars */
  
    /* Place on top of each other */
    grid-area: 1 / 1 / 2 / 2;
  }

.editDialogButtons {
    display: block;
    margin-top: 15px;
    cursor: pointer;
}

@media (max-width: 550px) {
    .bar.hide-mobile {
        display: none;
    }


    .pilot {
        font-size: 2.5em;
        height: 50px;
    }

    .radio {
        font-size: 2em;
    }

    .logo {
        height: 35px;
    }

    .bar-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bar {
        width: 9px;
        margin: 0 1px;
    }

    .bar1 { height: 37px; }
    .bar2 { height: 52px; }
    .bar3 { height: 60px; }
    .bar4 { height: 22px; }
    .bar5 { height: 45px; }
    .bar6 { height: 30px; }

    .message {
        font-size: 0.95em;
    }

    .grow-wrap > textarea,
    .grow-wrap::after {
        font-size: 0.95em;
    }
}
