/* Apply basic styles to the form elements */
@font-face {
    font-family: 'segoe_scriptregular';
    src: url('segoesc-webfont.woff2') format('woff2'),
         url('segoesc-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
}

#waiverform {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

label {
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 3px solid #ccc;
    border-radius: 15px;
    box-sizing: border-box;
}

input[type="text"]:required:valid,
input[type="email"]:required:valid,
input[type="tel"]:required:valid,
input[type="date"]:required:valid {
    border-color: #ccc; /* Restore the border color for filled required fields */
}

button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.afterminor{
    clear: both;
}

.minorRadio {
    clear: both;
    display: flex;
    align-items: baseline;
    float: left;
    margin-right: 20px;
    margin-left: 20px;
}
/* Animate the parent/guardian field and label */

#PGLabel,
#parentField {
    transition: 0.3s ease-in-out;
}


/* Styling for the text/drawing toggle */
.rocker, .Grocker {
    float: left;
    position: relative;
    width: 60px;
    height: 120px;
    margin: 0px 5px;
}

.rocker input[type="checkbox"],
.Grocker input[type="checkbox"] {
    visibility: hidden;
}

.rocker label,
.Grocker label {
    cursor: pointer;
    position: absolute;
    width: 60px;
    height: 120px;
    top: 0;
    left: 0;
    background: #ccc;
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background: rgb(85,85,85);
    background: linear-gradient(0deg, rgba(85,85,85,1) 0%, rgba(204,204,204,1) 50%, rgba(204,204,204,1) 100%); 
}

.rocker input[type="checkbox"]:checked + label,
.Grocker input[type="checkbox"]:checked + label {
    background: rgb(204,204,204);
    background: linear-gradient(0deg, rgba(204,204,204,1) 0%, rgba(204,204,204,1) 50%, rgba(85,85,85,1) 100%); 
}

.switch-top, .switch-bottom {
    transition: all 0.3s ease-in-out;
}

.rocker input[type="checkbox"] + label .switch-top,
.Grocker input[type="checkbox"] + label .switch-top {
    color: #000;
}

.rocker input[type="checkbox"] + label .switch-bottom,
.Grocker input[type="checkbox"] + label .switch-bottom {
    color: #ccc;
}

.rocker input[type="checkbox"]:checked + label .switch-top,
.Grocker input[type="checkbox"]:checked + label .switch-top {
    color: #ccc;
}

.rocker input[type="checkbox"]:checked + label .switch-bottom,
.Grocker input[type="checkbox"]:checked + label .switch-bottom {
    color: #000;
}

.rocker hr,
.Grocker hr{
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #333;
    margin: 0 0;
    padding: 0;
    width: 85%;
}


/* Signature Canvas Styling */
.participantFlex, .guardianFlex{
    position: relative;
    display: flex;
    justify-content: space-between;
}

#signatureCanvas, #typedSignature, #GsignatureCanvas, #GtypedSignature{
    float: left;
    flex: 1;
    margin-right: 5px; /* Adjust as needed */
    max-width: 100%;
    width: 100%;
    height: 200px;
    border: 3px solid #ccc;
    border-radius: 15px;
}

#typedSignature, #GtypedSignature{
    font-size: xx-large;
    font-family: 'segoe_scriptregular';
}

#clearSig, #GclearSig{
    margin: 5px auto;
    clear: both;
    display: block;
}

/* Signature Image Styling */

#signatureImage {
    max-width: 100%;
    border: 1px solid #000;
    border-radius: 5px;
    display: none;
}

/* Adjust margin and padding for the form */

#waiverform {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
}


/* css for process_form */
.final-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.final-page p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

footer {
    background-color: #f5f5f5;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9em;
    color: #777;
    border-top: 1px solid #eaeaea;
}

/* Error messages */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Ensure the object tag for the PDF is responsive */

@media screen and (max-width: 768px) {
    .rocker, .Grocker  {
        float: right;
        scale: 75%;
        rotate: -90deg;
        top: -41%;
        right: 3%;
        position: absolute;
    }

    .rocker span, .Grocker span {
        rotate: 90deg;
    }
  
    .final-page {
        margin: 20px;
        padding: 10px;
    }
    .modal-content {
        width: 85%;
    }
}

@media screen and (max-width: 480px) {
    .final-page {
        margin: 10px;
        padding: 5px;
    }

}

/* Waiver text content element */

object {
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    border: none;
}



