html {
    width: 100%;
    height: 100%;
}

body {
    font-family: "IBM Plex Mono", monospace;
    margin: 0;
    display: flex;
    width: 100%;
    height: 100%;

    background-color: #E3E3E3;
}

* {
    box-sizing: border-box;
}

#sidePanel {
    position: relative;
    height: 100%;
    width: 20%;
    background-color: #222222;
    display: flex;
    flex-direction: column;
}

#welcomeHeading {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 1.2em;
    font-weight: 400;
    text-align: center;
    height: 5%;
}

#addButton {
    color: #FFFFFF;
    font-size: 1em;
    font-weight: 400;
    text-align: center;
    height: 5%;
    width: 100%;
    margin: 0;
    border: none;
    background-color: #D545EB;
}

#addButton:hover,
#viewEntriesButton:hover {
    background-color: #FFFFFF;
    color: #222222;

}


#viewEntriesButton {
    color: #FFFFFF;
    font-size: 1em;
    font-weight: 400;
    text-align: center;
    height: 5%;
    width: 100%;
    margin: 0;
    border: none;
    background-color: #222222;
}

#logoutButton {
    position: relative;
    margin-top: auto;
    /* Pushes the logout button to the bottom */
    height: 10%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logoutButton button {
    width: 50%;
    height: 30%;
    border: none;
    background-color: #D545EB;
    color: #FFFFFF;
    border-radius: 5px;
}

#logoutButton button:hover {
    background-color: #FFFFFF;
    color: #222222;
}

.login_overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login_form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: fit-content;
    background-color: #222222;
    padding: 50px;
    border-radius: 10px;
}

.login_form h1 {
    color: #FFFFFF;
    margin: 0;
    padding-bottom: 20px;
}

.login_form input {
    width: 250px;
    height: 40px;
    padding: 5px;
    margin-bottom: 10px;
}

#loginInput {
    border: none;
    background-color: #D545EB;
    border-radius: 5px;
    font-size: 1em;
    color: #FFFFFF;
    font-weight: 700;
}

#loginInput:hover {
    background-color: #FFFFFF;
    color: #222222;
}

main {
    margin: 0;
    height: 100%;
    width: 100%;
    padding: 2.5%;
}

#addTab,
#viewEntries {
    display: block;
    width: 100%;
    height: 100%;
    padding: 1.5%;
    background-color: #FFFFFF;
}

#form {
    width: 95%;
    margin: auto;
}

#form label {
    font-size: 1.2em;
    font-weight: 500;
    margin: 0 5px 0 0;
}

#year_input,
.title_input {
    width: 150px;
    height: 28px;
    font-size: 1em;
    color: #222222;
    padding: 2px;
    margin: 10px 10px 0 0;
}

.get_image,
#get_music {
    height: 28px;
    font-size: 1em;
    color: #222222;
    padding: 2px;
    margin: 10px 10px 0 0;
}

#get_entry {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 1.2em;
    margin: 5% 5%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #D545EB;
    color: #FFFFFF;
}

#get_entry:hover {
    background-color: #E3E3E3;
    color: #FFFFFF;
}

.get_page {
    width: 250px;
    height: 200px;
    font-size: 1em;
    color: #222222;
    padding: 2px;
    margin: 10px 10px 0 0;
}

#year_case {

    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: calc(100% - 7.5%);
    width: 100%;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#addTab h1,
#viewEntries h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 7.5%;
    margin: 0;
    text-align: center;
    background-color: #D545EB;
    color: #FFFFFF;
}


#paragraph_container,
#image_container,
#date_container,
#music_container,
#heading_container {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    height: fit-content;
    width: fit-content;
}

.upperLayer {
    display: flex;
    flex-direction: row;
}

#addTab #count p {
    margin: 0;
}

.changeColor {
    background-color: #E3E3E3 !important;
    color: #222222 !important;
}

.year_content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    height: 12.5%;
    padding: 10px;
    margin: 0 auto;
}

.year_content:hover {
    background-color: #E3E3E3;
}

.year_content p {
    padding: 0 30px;
    font-size: 1.3em;
    font-weight: 600;
}

.year_content form {
    padding: 0 30px;
    font-size: 1em;
}

.year_content button {
    font-size: 1em;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    color: #FFFFFF;
}

.deleteButton_bef {
    background-color: #EB4545;
}

.editButton {
    background-color: #D545EB;
}

.year_content button:hover {
    background-color: #FFFFFF;
    color: #222222;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    background-color: #88888836;
  }

  #delForm{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #askTab {
    position: relative;
    background: white;
    border: 1px solid #ccc;
    padding: 20px;
    width: 300px;
    height: 200px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    pointer-events: auto; /* Allow clicks when shown */
    align-items: center;
    justify-content: center;
  }

  .active {
    display: flex !important;
  }

  .askButton{
    font-weight: 700;
    font-family: "IBM Plex Mono", monospace;
    width: 40%;
    height: 20px;
    padding: 20px;
    margin: 10px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 5px;
  }

  .askButton:hover{
    background-color: #ccc !important;
    color:#222222;
  }

  #noButton{
    background-color: #555;
  }

  #deleteButton{
    background-color: #D545EB;
  }

  #buttonDiv{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }