h1 {
    color: #00008B;
    margin-bottom: 35px;
    text-align: left;
}

#pdtHeader {
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 34px;
    font-weight: bold;
    color: #00008B;
}


body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

header{
    position: static !important;
}


main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 3vh
    /*padding-top: 15vh;*/
}


.container {
    display: flex;
    width: 95%;
    max-width: 1500px;
    background-color: #fff;
    padding: 5px;
    padding-bottom: 5vh;
    margin-bottom: 5vh;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


.left-panel {
    flex: 5;
    margin-right: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


.right-panel {
    flex: 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.image-result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}


.image-container {
    width: 100%;
    max-width: 750px;
    min-width: 400px;
    margin-bottom: 5px;
    height: auto;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}


#displayImage {
    width: 90%;
    height: auto;
    display: none;
}


.record-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recording-elapsed-time{
    display: flex;
    justify-content: center;
    align-items: center;
}


#elapsedTime {
    margin-top: 5px;
    font-size: 20px;
    font-weight: bold;
}

.red-recording-dot{
    margin-top: 8px;
    font-size: 16px;
    color: red;
    margin-right: 10px;
    animation-name: flashing-recording-dot;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    display: none;
}


@keyframes flashing-recording-dot {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#audioPlayback {
    margin-top: 5px;
    display: none;
}


.buttons {
    display: flex;
    justify-content: center;
    width: 100%;
}

.buttons button {
    margin: 0 13px 0 0;
    padding: 12px 18px;    
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
}


.left-panel h1 {
    font-size: 35px;
    color: #00008B;
    white-space: nowrap; 
}


.right-panel h1 {
    font-size: 35px;
    color: #00008B;
    white-space: nowrap;
}

.result-container{
    flex-direction: column;
    align-items: center;
}


#resultHeader {
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 34px;
    font-weight: bold;
    color: #00008B;
}


#result {
    margin: 5px;
    text-align: center;
    padding: 0px;
    font-size: 18px;
    font-weight: bold;
    flex-grow: 1;
}

#radarChart{
    margin: 0 auto;
    text-align: center;
    display: none;
}

#resultMsg {
    font-size: 20px;
    color: #000000;
}

.result-table {
    width: 80%;
    border-collapse: collapse;
    margin: auto;
    text-align: center;
    font-size: 16px;
    table-layout: fixed;
}

.result-table th,
.result-table td {
    border: 1px solid #ddd;
    padding: 5px;
    width: 16.6%;
}

.result-table th {
    background-color: #f4f4f4;
    color: #00008B;
    font-weight: bold;
}

.result-table td {
    font-size: 16px;
    color: #333;
}

@media (max-width: 1200px){
    h1 {
        margin-bottom: 30px;
    }
    .container {
        width: 100%;
    }
    .buttons button {
        padding: 10px 16px;
        font-size: 14px;
    }
    .result-table {
        width: 90%;
        border-collapse: collapse;
        /*margin-top: 5px;*/
        margin: auto;
        text-align: center;
        font-size: 14px;
    }
    .result-table td {
        font-size: 14px;
        color: #333;
    }
}

@media (max-width: 1024px){
    h1 {
        margin-bottom: 20px;
    }
    .container {
        width: 100%;
    }
    .buttons button {
        padding: 10px 16px;
        font-size: 13px;
    }
    #result {
        font-size: 20px;
    }
    .result-table {
        width: 90%;
        border-collapse: collapse;
        /*margin-top: 5px;*/
        margin: auto;
        text-align: center;
        font-size: 14px;
    }
    .result-table td {
        font-size: 14px;
        color: #333;
    }
}

@media (max-width: 950px){
    h1 {
        margin-bottom: 15px;
    }
    .container {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    .left-panel {
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
    }
    .buttons button {
        padding: 8px 14px;
        font-size: 14px;
    }
    #result {
        font-size: 20px;
    }
    .result-table {
        width: 90%;
        border-collapse: collapse;
        /*margin-top: 5px;*/
        margin: auto;
        text-align: center;
        font-size: 13px;
    }
    .result-table td {
        font-size: 13px;
        color: #333;
    }
}

@media (max-width: 850px){
    h1 {
        margin-bottom: 10px;
        font-size: 18px;
    }
    .container{
        flex-direction: column;
        align-items: center;
    }
    .left-panel {
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
    }
    .image-container{
        min-width: 300px;
    }
    #result {
        font-size: 18px;
    }
}

@media (max-width: 700px){
    h1 {
        margin-bottom: 10px;
        font-size: 18px;
    }
    .container{
        flex-direction: column;
        align-items: center;
    }
    .left-panel {
        margin-right: 0px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
    }
    .image-container{
        max-width: 400px;
        min-width: 200px;
    }
    #result {
        font-size: 18px;
    }
}