@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
body {
    font-weight: 300;
    color: #333;
    line-height: 1.6;
    padding: 0px;
    margin: 0px;
    background-color: #cdcdcd;
}
body * {
    font-family: "Poppins", sans-serif !important;
}

h1 {
    color: #444;
    font-weight: 700;
    text-align: center;
    font-size: 36px;    
    margin-bottom: 60px;
    margin-top: 45px;

}

textarea {
    width: calc(100% - 20px);
    min-height: 30vh;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
}

input {
    margin-bottom: 10px;
    padding: 10px;
    width: calc(100% - 20px);
    border-radius: 5px;
    border: 1px solid #ddd;
    
}

select {
    margin-bottom: 10px;
    padding: 10px 6px;
    width: calc(100% - 0px);
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
}
option {
    background-color: #fff;
}

button {
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

#response-container {
    margin-top: -35px;
    background-color: #fff;
    padding: 20px 0;
    border-radius: 5px;
}
summary{
    margin-left: 5px;

}
#response-container p {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
}

#response-container input[type="text"] {
    margin-top: 10px;
}

#changes{
    background-color: #fff;
    padding: 20px;
    width: calc(100% - 40px);
    border-radius: 5px;
    min-height: 50px;
    height: 5vh;
}

#input-form{
    display: flex;
    justify-content: space-between;
    flex-flow: column;
    min-height: calc(100vh - 340px);
}

#main_button{
    width: 100%;
    font-size: 16px;
    padding: 15px;
    letter-spacing: 1.1px;
    margin-top: 40px;
}

.toast {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 30px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden; /* Add this */
    transition: opacity 0.5s ease-in-out, top 0.5s ease-in-out;
}
#loading p, #loading_changes p{
    text-align: center;
    background-color: #fff;
}
#back, #forward{
    cursor: pointer;
    font-size: 23px;
    font-weight: 400;
}

#navigation-buttons{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -10px;
    display: none;
}
#response_label{
    margin: 0px 25px;
}

.response{
    margin-top: 20px;
    background-color: #fff;
    padding: 20px;
    width: calc(100% - 40px);
    border-radius: 5px;
    border: none;
    resize: none;
    display: none;
}
.response.active{
    display: block;
}

#print-button {
    display: block;
    margin-top: 20px;
}
#print-button {
    display: block;
    margin-top: 20px;
}
main{
    min-height: calc(100vh - 180px);
    height: auto;
    padding: 20px 80px;
    width: calc(100% - 100px);
    margin: 70px auto 30px auto;
    background-color: #fff;
    max-width: 1100px;
    border-radius: 15px;
}
#modal_button{
    margin-left: 20px;
    margin-bottom: 28px;
    font-size: 12px;
    float: left;
    cursor: pointer;
    text-decoration: underline;
}

.modal{
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: calc(100% - 0px);
    height: calc(100% - 0px);
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    height: calc(100vh - 0px);
}

#team_table h2, #team_table a{
    display: inline-block;
    margin-right: 20px;;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    overflow-x: auto;
}



.styled-table .styled-cell {
    border: 1px solid #a8a8a8;
    padding: 8px;
    text-align: center;
}
.styled-table .styled-row:nth-child(even) .styled-cell{
    background-color: #f2f2f2;
}
.styled-table .styled-row:nth-child(even) .styled-cell{
    background-color: #fafafa;
}

.styled-table tr:nth-of-type(1) {
    background-color: #444;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

details > div{
    padding-left: 20px;
    padding-right: 20px;
}
.modal_content{
    background-color: #fefefe;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #888;
    width: calc(100% - 100px);
    border-radius: 5px;
    position: relative;
    height: calc(100vh - 150px);
}
.modal_content textarea{
    height: calc(100vh - 620px);
}
.modal span{
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
}

.dot-flashing {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 1px;
    border-radius: 50%;
    background-color: #333;
    position: relative;
}


#loading .dot-flashing:nth-of-type(1) {
    animation: dot-flashing 0.7s 0s infinite;
}
#loading .dot-flashing:nth-of-type(2) {
    animation: dot-flashing 0.7s 0.1s infinite;
}
#loading .dot-flashing:nth-of-type(3) {
    animation: dot-flashing 0.7s 0.2s infinite;
}

#loading_changes .dot-flashing:nth-of-type(1) {
    animation: dot-flashing 0.7s 0s infinite;
}
#loading_changes .dot-flashing:nth-of-type(2) {
    animation: dot-flashing 0.7s 0.1s infinite;
}
#loading_changes .dot-flashing:nth-of-type(3) {
    animation: dot-flashing 0.7s 0.2s infinite;
}

@keyframes dot-flashing {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
}



body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    margin: 0;
}

main {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

label {
    font-weight: 500;
    margin-top: 15px;;
    margin-bottom: 5px;
    display: block;
    color: #34495e;
}

input[type="text"], select {
    width: 100%;
    padding: 12px 15px;
    margin: 0 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

input[type="text"]:focus, select:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

button {
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    box-shadow: 0 0px 15px rgba(52, 152, 219, 0.4);
}

a {
    color: #3498db;
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    transition: color 0.3s ease;
    text-decoration: underline; 
    cursor: pointer;
}

a:hover {
    color: #2980b9;
}

details {
    font-size: 14px;
    color: #7f8c8d;
}

@media (max-width: 1440px) {
    main {
        width: 80vw;
        padding: 20px 40px;
    }
}
@media (max-width: 800px) {
    main {
        width: calc(100vw - 120px);
        padding: 20px 20px;
    }
}
