html {
    height: 100%;
}

body {
    width: 100%;
    height: 100hv;
    margin: 0;
    /*align-items: center; this will make the content a square, with edges up and bottom*/ 
    background-color: #a4b5ff;
    color: #000000;
    font-family: Tahoma;
    font-size: 16px;
}

.centercontent {
    height: 100%;
    display: flex;
    justify-content: center;
}
.container {
    height: 100%;
    
    width: 80%; /* You can adjust this width as needed */
    max-width: 1200px; /* Maximum width to keep it from getting too wide on large screens */
    padding: 20px;
    background-color: #7b8cdb; /* Just for visual differentiation */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Form */
form {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}


/* Helper */
.spacer {
    clear: both;
    box-sizing: border-box;
}


/* buttons */
.buttondisable {
    filter: invert(65%);
}

#submitbutton {
    cursor: pointer;
    padding: 10px 20px; /* Increased padding for a bigger button */
    font-size: 20px; /* Increased font size */
    border: none; /* Removes default border */
    border-radius: 8px; /* Optional: rounds the corners of the button */
}
#submitbutton:hover {
    background-color: #0056b3; /* Darker shade for hover effect */
}
.button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px; /* Adjust as needed for spacing */
}

.centertext {
    text-align: center;
}

h2,h3 {
    text-align: center;
}

.textarea-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.textarea-label{
    align-self: flex-start; /* Aligns the label to the start of the container */
}


video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
.aspect-ratio-16-9 {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* Video recording controls */
.videocontrols {
    width: 100px; /* Set a specific width for the buttons */
    height: 70px; /* Set a specific height for the buttons */
    background-color: #cae4ff;
    border: none;
    color: white;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex; /* Display button contents as a flexbox */
    justify-content: center; /* Center contents horizontally */
    align-items: center; /* Center contents vertically */
    text-align: center;
}

.videocontrols img {
    max-width: 65%;
    max-height: 65%;
    text-align: center;
    margin: auto;
    width: auto; /* Make the image fill its container */
    height: auto; /* Make the image fill its container */
    display: block; /* Remove any extra space around the image */
}

.columncontainer {
    display: flex;
}

.columnleft {
    width: 100%;
    border: 3px solid black;
}
.columnright {
    width: 100%;
    border: 3px solid black;
}

/* Video recording iframe */

iframe {
    display:block;
    margin: auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}




/* Likert stuff */
.likert {
    --likert-rows: 5;
    margin: auto;
    text-align: center;
    display: inline-grid;
    max-width: 900px;
    grid-auto-rows: 1fr;
    gap: 1em;
    grid-template-columns: repeat(var(--likert-rows), minmax(0, 1fr));
}

@media only screen and (max-width: 680px) {
    .likert {
        grid-template-columns: minmax(0, 400px);
        justify-content: center;
    }
}

input, label {
    display: block;
    margin: 0.5rem 0;
  }

.likert input {
    max-width: 250px;
    position: fixed;
    opacity: 0;
    pointer-events: none;
}

.likercontainer{
    margin: 30px auto;
    text-align: center;
}
.likert span {
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: #dcdcdc;
    transition: background .2s ease-in-out;
}

.likert input:checked + span {
    outline: black auto 1px;
    background: transparent;
}

.likert input:focus + span {
    outline: auto 1px; /*-webkit-focus-ring-color*/
}

.likert span:hover {
    background: #f1f1f1;
    outline: lightgrey auto 0.5px;
}


/* Table display stuff */
table {
    border-collapse: collapse;
    margin: 20px 0;
    table-layout: auto; /* Allows columns to adjust to their content */
    width: auto; /* Adjusts the table width to the content */
}

th, td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
    word-wrap: break-word; /* Ensures content wraps and doesn't overflow */
}

th {
    background-color: #f2f2f2;
}