/* General body styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    color: #333;
    margin: 0;
    padding: 0;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
h1 {
    font-size: 1.5em;
    color: #333;
}
th {
    padding: 10px;
    text-align: center;
    background-color: #4687ff;
    color: white;
}

main {
    flex: 1;
}

td {
    padding: 10px;
    text-align: center;
}

.header {
    background-color: rgb(22, 45, 255);
    text-align: center;
    padding: 10px;
    height: 10vh;
    position: fixed;
    width: 100%;
}

footer {
    background-color: rgb(22, 45, 255);
    text-align: center;
    padding: 10px;
    height: 10vh;
    
}

a {
    text-decoration: none;
}

h1 > a {
    color: white;
}

h1 > a:hover {
    color: white;
}

input[type=checkbox] {
    cursor: pointer;
    height: 20px;
    width: 20px;
    accent-color: rgb(0, 200, 0);      
}

/* Classes */
.dateentry {
    width: 90%;
    padding: 10px;
    font-size: 1.2em;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    box-sizing: border-box;
}
.dateinput-wrapper button {
    border-style: none;
    background: rgba(4, 170, 109, 0);
}
.createplan {
    background-color: lightblue;
    color: white;
    border-radius: 5px;
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;

}
.createplan:hover {
    background-color: rgb(62, 172, 209);
    color: white;
    border-radius: 5px;
}

.survey-title {
    width: 100%;
    padding: 10px;
    font-size: 1.2em;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    box-sizing: border-box;
}

.description {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    height: 80px;
    box-sizing: border-box;
}

.options-section {
    margin-top: 20px;
}

.options-header {
    font-size: 1.2em;
    /*display: flex;*/
    justify-content: space-between;
    align-items: center;
    color: #333;
}

.option-buttons {
    /*display: flex;*/
    gap: 10px;
    margin-top: 10px;
}

.option-button {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    background-color: #eef4ff;
    cursor: pointer;
    font-size: 0.9em;
}

.add-option {
    display: inline-block;
    color: #3b82f6;
    font-size: 0.9em;
    margin-top: 10px;
    cursor: pointer;
}

.info-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
    line-height: 1.5em;
}

.textinput {
    width: 100%;
    padding: 10px;
    font-size: 1.2em;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    box-sizing: border-box;
}
.save-button {
    /*display: flex;*/
    gap: 10px;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 5px;
    color: white;
    background-color: #4687ff;
    cursor: pointer;
    font-size: 0.9em;
}
.nameinput {
    width: 100%;
    padding: 10px;
    font-size: 1.2em;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    min-width: 100px;
}

.survey-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.surveyinput tr:nth-child(even){background-color: #b4b4b4;}

.surveyinput td:first-child, th:first-child {
  border-radius: 10px 0 0 10px;
}

td:last-child, th:last-child {
  border-radius: 0 10px 10px 0;
}

.surveyinput {
    border-collapse: collapse;
    border-spacing: 0;
    /*width: 100%;*/
    width: max-content;
    overflow-x: scroll;
}

.surveyinput tr:last-child {
    background-color: #f0f4f8;
    border-top: solid;
    border-color: white;
    border-width: 2px;
    border-radius: 0 10px 10px 0;
}

.functindivpart {
    padding: 10px;
    width: 33%;
    text-align: center;
    border-radius: 15px;
    background-color: lightblue;
    margin: 10px;
    box-shadow: 0px 0px 5px 1px rgb(141, 216, 241);
}

.flexcontainer {
    display: flex;
    width: 100%;
}

.verticalflex {
    flex-direction: column;
}

.horizontalflex {
    flex-direction: row;
}

/*.footertext {
    border-top:1px solid white; 
    border-bottom: 1px solid white;
}*/

.footertext > a {
    color: white;
    padding-left: 10px;
    padding-right: 10px;
}

.logoimg {
    width: 20%;
    -webkit-filter: invert(100%); /* Safari/Chrome */
    filter: invert(100%);

    float: left;
}

.titlecontent {
    background-color: white;
    color: rgb(58, 58, 58);
    border-radius: 10px;
    width: 100%;
    padding: 10px;
    margin: 10px;
}

.titlecontent h1 {
    color: black;
}

.comment {
    background-color: rgb(147, 147, 147);
}

.mostparticipants {
    background-color: lightgreen;
}

.selectcls {
        width: 100%;
        padding: 10px;
        font-size: 1.2em;
        border: 1px solid #ddd;
        border-radius: 5px;
        margin-top: 10px;
        margin-bottom: 10px;
        box-sizing: border-box;
}

#functindiv {
    text-align: center;
    color: white;
    border-radius: 10px;
}

#newplandiv {
    /*display: none;*/
    /*border-style: solid;*/
    border-radius: 10px;
    padding: 20px;
    width: 50%;

    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
#noticebox {
    display: none;
    background-color: lightgreen;
    margin: 5px;
    padding: 10px;
    width: 100%;
    border-radius: 10px;
}

#surveydisplay {
    width: 50%;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
/* Position fixed elements */
#findsurvey, .createplan {
    position: fixed;
    z-index: 100;
}

#createplanner {
    top: 20px;
    left: 20px;
}

#findsurvey {
    top: 20px;
    right: 20px;
}

#logotext {
    color: white;
    font-family: Georgia, Helvetica, sans-serif;
    font-style: oblique;
}

/* Ensure content starts below fixed elements */
main {
    margin-top: 10vh;
    /*margin-top: 80px; /* Adjust this based on the height of the fixed elements */
    padding: 20px;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    #createplanner, #findsurvey {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    main {
        margin-top: 100px; /* Increase spacing for smaller screens */
        padding: 10px;
    }

    #newplandiv {
        width: 90%; /* Adjust width for smaller screens */
    }

    h1, h2 {
        font-size: 1.2rem;
    }

    .textinput {
        font-size: 1rem;
    }
}


/*Comment Section*/
#comments {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;

    max-width: fit-content;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

#newcomment {
    margin-bottom: 20px;
    padding-right: 20px;
}

#newcomment h2 {
    margin-bottom: 10px;
    color: #333;
}

#commentername, #commenttext {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    margin-left: auto;
    margin-right: auto;
}

#commentername:focus, #commenttext:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#commentsavebtn {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#commentsavebtn:hover {
    background-color: #0056b3;
}

.comment {
    position: relative; 
    background: #f1f1f1;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment p:first-child {
    font-weight: bold;
    margin: 0;
    color: #007BFF;
}

.comment p:last-child {
    margin: 5px 0 0;
    color: #555;
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-time {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    color: #888;
}

#planlistdiv {
    flex-wrap: wrap;
    width: 100%;
}

.plancontainerclass {
    background-color: #888;
    padding: 10px;
    margin-bottom: 10px;

    width: 30%;
    min-width: 150px;
    text-align: center;
    border-radius: 15px;
    margin: 10px;
    box-shadow: 0px 0px 5px 1px rgb(141, 216, 241);
}

#loginbox {
    /*display: none;*/
    /*border-style: solid;*/
    border-radius: 10px;
    padding: 20px;
    width: 50%;
    margin-top: 20px;

    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;

    background-color: rgb(110, 110, 110);
}