body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 5%;
    background-color: #ebdcb1;
    line-height: 1.7;
    font-size: 17px;
    background-image: url(Background.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#logobase {
    display: flex;
    justify-content: center;
}

#logo {
    display: block;
    min-width: 50vw;
    height: auto;
    aspect-ratio: 2985 / 1817;
    object-fit: contain;
}

h1 {
    text-align: center;
    font-size: 25px;
}

p {
    text-align: center;
}

h2 {
    text-align: center;
}

span {
    font-size: 1vw;
}
 
button {
    min-height: 100%;
    padding: 20px 0px 10px;
    border: 3px solid #17130c;
    transition: transform all 0.2s ease;
    border-radius: 4px;
    box-shadow: 3px 3px 5px rgb(0, 0, 0);
    min-width: 40vw;
    max-width: 40vw;
}

.button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 6px 6px 3px rgb(0, 0, 0);
}

#Rbutton {
    display: flex;
    justify-content: space-around;
}

footer {
    display: flex;
    justify-content: space-between;
}

.foot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(244, 176, 27, 0.9);
    border-radius: 8px;
    padding: 10px 20px 10px;
    min-height: 50px;
}

hr {
    height: 1px;
    width: 100%;
    background-color: black;
    border: none;
}

#sport {
    background-color: #1A00AE;
    color: white;
    padding: 10px 10px 10px;
    font-family: 'Times New Roman', Times, serif;
    min-width: 35vw;
    max-width: 35vw;
}

#art {
    background-color: #01895B;
    color:white;
    padding: 10px 10px 10px;
    font-family: 'Times New Roman', Times, serif;
    min-width: 35vw;
    max-width: 35vw;
}

#desc {
    margin: 10px;
    text-align: justify;
    text-indent: 40px;
    line-height: 1.5;
    font-size: 22px;
}

#boxstart {
    background-color: rgba(244, 176, 27, 0.9);
    padding: 15px 15px 25px;
    border: 3px solid #b48114;
    border-radius: 10px;
}

.headers1 {
    background: #db9e19;
    border-radius: 10px;
    min-width: 80vw;
    text-align: center;
}

#header1a {
    display: flex;
    justify-content: center;
}

.headers2 {
    background-color: white;
    border: 3px solid black;
    border-radius: 10px;
    min-width: 80vw;
    box-shadow: 0px 5px 5px;
}

.headers2a {
    display: flex;
    justify-content: center;
}

#SE1 {
    display: flex;
    justify-content: space-around;
}

#SE2 {
    display: flex;
    justify-content: space-around;
}

#SE3 {
    display: flex;
    justify-content: space-around;
}

#SE4 {
    display: flex;
    justify-content: space-around;
}

#jnBSDM p {
    text-align: start;
    text-indent: 20px;
}

#jnBSDM {
    background-color: white;
    border: 3px solid black;
    padding: 0px 20px 0px;
}

#jnBSMPAI p {
    text-align: start;
    text-indent: 20px;
}

#jnBSMPAI {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

#jnFSD p {
    text-align: start;
    text-indent: 20px;
}

#jnFSD {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

#jnMLSD p {
    text-align: start;
    text-indent: 20px;
}

#jnMLSD {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

#jnMLSMP p {
    text-align: start;
    text-indent: 20px;
}

#jnMLSMP {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

#jnSVSD p {
    text-align: start;
    text-indent: 20px;
}

#jnSVSD {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

#jnSTSD p {
    text-align: start;
    text-indent: 20px;
}

#jnSTSD {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

#jnSTSD ol strong {
    font-size: 14px;
}

.pbiasa {
    font-weight: normal;
    font-size: 16px;
}

#jnBC p {
    text-align: start;
    text-indent: 20px;
}

#jnBC {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

#jnDDSMP p {
    text-align: start;
    text-indent: 20px;
}

#jnDDSMP {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

#jnDSD p {
    text-align: start;
    text-indent: 20px;
}

#jnDSD {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

#jnSMSMP p {
    text-align: start;
    text-indent: 20px;
}

#jnSMSMP {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

#jnMDSMP p {
    text-align: start;
    text-indent: 20px;
}

#jnMDSMP {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 10px;
    margin: 10px 20px 10px;
}

#jnSBSD p {
    text-align: start;
    text-indent: 20px;
}

#jnSBSD {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

#jnMDSD p, #jnFSMP p, #jnSVSMP p {
    text-align: start;
    text-indent: 20px;
}

#jnMDSD, #jnFSMP, #jnSVSMP {
    background-color: white;
    border: 3px solid  black;
    padding: 0px 20px 0px;
}

#A1, #A2, #A3, #A4, #A5 {
    display: flex;
    justify-content: space-around;
}

#rgFSD, #rgFSMP, #rgBAND, #rgBSDM, #rgBSMPA, #rgBSMPI, #rgDDSMP, #rgDSD,  #rgMDSD, #rgMDSMP, #rgMLSD,  #rgMLSMP,  #rgSBSD, #rgSMSMP, #rgSTSD, #rgSVSD, #rgSVSMP {
    background-color: white;
    margin: 20px 0px 0px;
    padding: 0px 20px 10px;
    border-radius: 20px;
}

#rgFSD input, #rgFSD textarea, #rgFSMP input, #rgFSMP textarea, #rgBAND input, #rgBAND textarea, #rgBSDM input, #rgBSDM textarea, #rgBSMPA input, #rgBSMPA textarea, #rgBSMPI input, #rgBSMPI textarea, #rgDDSMP input,  #rgDDSMP textarea,  #rgDSD input, #rgDSD textarea,  #rgMDSD input, #rgMDSD textarea, #rgMDSMP input, #rgMDSMP textarea, #rgMLSD input, #rgMLSD textarea, #rgMLSMP input, #rgMLSMP textarea,  #rgSBSD input, #rgSBSD textarea, #rgSMSMP input, #rgSMSMP textarea, #rgSTSD input, #rgSTSD textarea, #rgSVSD input, #rgSVSD textarea, #rgSVSMP input, #rgSVSMP textarea {
    width: 80vw;
    height: 30px;
    padding: 5px;
    border-radius: 8px;
    font-family: Arial, Helvetica, sans-serif;
}

.Submit {
    min-height: 10vh;    
    background-color: rgb(230, 230, 230);
    box-shadow: 5px;
    padding: 10px;
    min-width: 60vw;
}

.BSubmit {
    display: flex;
    justify-content: center;
}

#rgFSD textarea, #rgFSMP textarea, #rgBAND textarea, #rgBSDM textarea, #rgBSMPA textarea, #rgBSMPI  textarea, #rgDDSMP textarea, #rgDSD textarea, #rgMDSD textarea, #rgMDSMP textarea, #rgMLSD textarea, #rgMLSMP textarea, #rgSBSD textarea, #rgSMSMP textarea,  #rgSTSD textarea, #rgSVSD textarea, #rgSVSMP textarea {
    border: 2px solid black;
}

input::placeholder, textarea::placeholder {
    font-family: Arial, Helvetica, sans-serif;
}

.BButton {
    margin: 0px 0px 0px;
    padding: 0px;
    min-width: 50px;
    max-height: 10%;
    font-size: 10px;
}

#messageBAND, #messageBSDM, #messageBSMPA, #messageBSMPI, #messageDDSMP, #messageDSD, #messageFSD, #messageFSMP, #messageMDSD, #messageMDSMP, #messageMLSD, #messageMLSMP, #messageSBSD, #messageSMSMP, #messageSTSD, #messageSVSD, #messageSVSMP {
    font-size: 15px;
    color: black;
}

img {
    max-width: 35vw;
    max-height: 35vh;
    border-radius: 5px;
}

.source {
    font-size: 5px;
}

.rekening, .Rnote, .ques {
    text-align: left;
    font-size: 13px;
}

.black {
    color: black;
}

#messageSVSD, #messageSVSMP {
    color: black;
}

#messageSVSD.error-message, #message.SVSMP.error-message {
    color: red;
}

.Titlejn {
    background-color: white;
    border: 3px solid black;
    border-radius: 14px;
    padding: 10px 10px 10px;
    margin: 10px 5px 10px;
    min-width: 70vw;
    max-width: 70vw;
}

.Descjn {
    background-color: white;
    border: 3px solid black;
    border-radius: 10px;
    padding: 10px 10px 10px;
    margin: 10px 5px 10px;
    min-width: 80vw;
    max-width: 80vw;
}

.ques1 {
    text-align: center;
    font-size: 16px;
    background-color: white;
    border: 3px solid black;
    border-radius: 10px;
    padding: 10px 10px 10px;
    margin: 10px 5px 10px;
    max-width: 80vw;
    min-width: 80vw;
}

.HP {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#jnDO {
    text-indent: 0px;
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.popup-box {
    background: white;
    color: black;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    animation: popupAppear 0.3s ease;
}

.popup-icon {
    background: #d1fae5;
    color: #059669;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    margin: 0 auto 15px;
}

.popup-box h2 {
    margin-bottom: 10px;
}

.popup-box p {
    line-height: 1.6;
}

.popup-box hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

.popup-box button {
    display: block !important;
    width: 100% !important;
    max-width: 160px !important;
    box-sizing: border-box !important;

    margin: 15px auto 0 !important;
    padding: 10px 15px !important;

    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    cursor: pointer;
}

.popup-box button:hover {
    background: #1d4ed8;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.registration-id {
    background: #f1f5f9;
    padding: 5px 12px 24px;
    border-radius: 8px;
    margin: 20px 0;
}

.registration-id h3 {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 5px;
}

.registration-id p {
    font-size: 13px;
    font-weight: bold;
    color: #1e293b;
    overflow-wrap: anywhere;
}

.id-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.id-container p {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: bold;
    color: #1e293b;
}

#copyIdButton {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

#copyIdButton:hover {
    background: #1d4ed8;
}

.id-container #copyIdButton {
    width: auto !important;
    min-width: 0 !important;
    max-width: fit-content !important;
    flex: 0 0 auto !important;

    padding: 6px 12px !important;
    font-size: 13px !important;
    height: auto !important;

    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;

    margin: 0px 10px 0px;
}

#successPopup .popup-box button {
    all: unset !important;

    display: block !important;
    box-sizing: border-box !important;

    width: 130px !important;
    min-width: 0 !important;
    max-width: 130px !important;

    padding: 10px 15px !important;
    margin: 20px auto 0 !important;

    background: #2563eb !important;
    color: white !important;

    font-size: 15px !important;
    text-align: center !important;

    border-radius: 8px !important;
    cursor: pointer !important;
}

/* Phone layout */
@media screen and (max-width: 600px) {

    .popup-box {
        padding: 18px !important;
        max-height: 85vh;
        overflow-y: auto;
    }

    .popup-box h2 {
        font-size: 20px;
        margin-top: 5px;
        margin-bottom: 8px;
    }

    .popup-box h3 {
        font-size: 16px;
    }

    .popup-box p {
        font-size: 13px;
        line-height: 1.4;
    }

    .popup-icon {
        width: 48px;
        height: 48px;
        font-size: 26px;
        margin-bottom: 10px;
    }

    .popup-box hr {
        margin: 12px 0;
    }

    .popup-box button {
        padding: 8px 12px !important;
        margin-top: 12px !important;
    }

    .registration-id {
        margin: 12px 0;
        padding: 10px;
    }
}
