* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: Arial, sans-serif;
}

body {
   background-image: url(assets/Background.jpg);
   background-size: cover;
}

.container {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   gap: 1.5rem;
   height: auto;
   padding: 1rem;
   background-color: rgba(96, 165, 208, 0.44);
   border-radius: 10px;
}

#hider {
   visibility: hidden;
}

h1 {

   text-align: center;
   color: white;
}

p {
   color: white;
}

form {
   display: flex;
   justify-content: center;
   border: none;
   border-radius: 5px;
}

::placeholder {
   color: rgba(246, 250, 255, 0.75);
}

/* =======Login/RegisterPage========= */

.login-form,
.register-form {
   display: flex;
   flex-direction: column;
   justify-content: center;
   padding: 0.5rem;
   border: none;
   border-radius: 5px;
}

.login-form input,
.register-form input {
   padding: 0.5rem;
   margin: 0.5rem;
   border: none;
   border-radius: 5px;
   background-color: rgba(96, 165, 208, 0.72);

}

.login-button-container,
.register-button-container {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   gap: 0.5rem;
   margin-top: 1rem;
}

.login-button-container p a,
.login-button-container p a {
   font-size: 0.8rem;
}

.login-button,
.register-button {
   margin: 0.5rem 1rem;
   font-size: 1.5rem;
   border: none;
   border-radius: 5px;
   background-color: rgb(96, 165, 208, 0.72);
   padding: 0.5rem 5rem;
   color: white;
   cursor: pointer;
}

#registerLink,
#loginlink {
   text-decoration: none;
   color: rgb(8, 58, 134);
}

.login-page,
.register-page {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   height: 100vh;
   gap: 3rem;
}

.cleanbutton {
   text-decoration: none;
   color: white;
}

/* =======My Library Page========= */

.library-page {
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   align-items: center;
   height: 100vh;
   padding: 0.5rem;

}

.header {
   display: flex;
   justify-content: space-between;
   width: 100%;

}


.listicon {
   background-image: url(assets/listicon.png);
}

.tuticon {
   background-image: url(assets/tuticon.png);
}

.dutchicon {
   background-image: url(assets/dutch.png);
}

.englishicon {
   background-image: url(assets/english.png);
}

.listicon,
.tuticon,
.dutchicon,
.englishicon {
   display: flex;
   width: 1.5rem;
   height: 1.5rem;
   margin: 0rem 0.5rem;
   background-size: cover;
   display: inline-block;
}


.list {
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   align-items: center;
   height: 15rem;
   width: 12rem;
   padding: 1rem;
   gap: 1rem;
   background-color: rgba(96, 165, 208, 0.44);
   border-radius: 10px;
   cursor: pointer;
   transition: all 0.3s ease;
}

.list:hover {
   background-color: rgba(96, 165, 208, 0.64);
   transform: translateY(-5px);
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.listInfo {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   gap: 0.1rem;
}

.emptylist {
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   align-items: center;
   height: 15rem;
   padding: 1rem;
   gap: 3rem;
   border-radius: 10px;
   background-color: rgba(96, 165, 208, 0.29);
}

.listShowcase {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 1rem;
   padding: 1rem;
   height: 50vh;

}



.library-header-buttons {
   display: flex;
   justify-content: flex-end;
   gap: 0.3rem;
}



.library-buttons {
   display: flex;
   align-items: center;
   text-align: center;
   margin: 0.5rem;
   font-size: 1rem;
   border: none;
   border-radius: 5px;
   background-color: rgb(96, 165, 208, 0.72);
   padding: 0.5rem 1rem;
   color: white;
   cursor: pointer;
}

/* ======= Modal Popup ========= */

.modal {
   display: none;
   position: fixed;
   z-index: 1000;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.6);
   animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
   from {
      opacity: 0;
   }
   to {
      opacity: 1;
   }
}

.modal-content {
   background-color: rgba(96, 165, 208, 0.95);
   margin: 10% auto;
   padding: 1rem;
   border-radius: 15px;
   width: 60%;
   max-width: 20rem;
   box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
   text-align: center;
   animation: slideDown 0.3s ease;
}

@keyframes slideDown {
   from {
      transform: translateY(-50px);
      opacity: 0;
   }
   to {
      transform: translateY(0);
      opacity: 1;
   }
}

.close-btn {
   color: white;
   float: right;
   font-size: 2rem;
   font-weight: bold;
   cursor: pointer;
   transition: all 0.3s ease;
}

.close-btn:hover {
   color: #f0f0f0;
   transform: rotate(90deg);
}

#modalListName {
   color: white;
   font-size: 1.8rem;
}

.modal-language-switcher {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 0.8rem;
}

.modal-language-switcher p {
   margin: 0;
   font-weight: bold;
   color: white;
}

.modal-lang-btn {
   padding: 0.6rem 1.5rem;
   margin: 0.3rem;
   border: 2px solid white;
   border-radius: 25px;
   background-color: transparent;
   color: white;
   cursor: pointer;
   font-size: 1rem;
   transition: all 0.3s ease;
   min-width: 150px;
}

.modal-lang-btn:hover {
   background-color: white;
   color: rgba(96, 165, 208, 0.95);
   transform: scale(1.05);
}

.modal-lang-btn.active {
   background-color: white;
   color: rgba(96, 165, 208, 0.95);
   font-weight: bold;
}

.modal-action-buttons {
   display: flex;
   flex-direction: column;
   gap: 0.8rem;
   margin-top: 1.5rem;
}

.modal-button {
   padding: 0.8rem 1.5rem;
   border: none;
   border-radius: 8px;
   font-size: 1rem;
   font-weight: bold;
   color: white;
   cursor: pointer;
   transition: all 0.3s ease;
   width: 100%;
}

.play-modal-btn {
   background-color: rgba(76, 175, 80, 0.9);
   margin: 0.3rem 0;
}

.play-modal-btn:hover {
   background-color: rgba(76, 175, 80, 1);
   transform: translateY(-2px);
   box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.edit-modal-btn {
   background-color: rgba(33, 150, 243, 0.9);
}

.edit-modal-btn:hover {
   background-color: rgba(33, 150, 243, 1);
   transform: translateY(-2px);
   box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.delete-modal-btn {
   background-color: rgba(244, 67, 54, 0.9);
}

.delete-modal-btn:hover {
   background-color: rgba(244, 67, 54, 1);
   transform: translateY(-2px);
   box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.library-Footer {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 1rem;
   margin-top: 1rem;
}

.footer-buttons {
   margin: 0.5rem 1rem;
   font-size: 1rem;
   border: none;
   border-radius: 5px;
   background-color: rgb(96, 165, 208, 0.72);
   padding: 0.5rem 2rem;
   color: white;
   cursor: pointer;
}

/* ======= Create/Edit list Page ========= */

.create-list-page {
   display: flex;
   flex-direction: column;
   margin: 1rem;
   justify-content: space-between;
   align-items: center;
   gap: 1rem;
   height: 90vh;

}

.play-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.play-button:hover {
    background-color: #45a049;
}

.Correct {
    color: lime !important;
}

.Wrong {
    color: red !important;
}

#feedback {
    text-align: center;
    color: white;
    font-size: 18px;
    margin: 10px 0;
}

.createHeader {
   display: flex;
   justify-content: center;
   width: 100%;
   padding: 0.5rem;
}

.createListForm
{
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   gap: 1rem;
   width: 100%;
}

.createFooter {
   display: flex;
   flex-direction: column;
   align-items: center;
}

.createFButtonsS {
   display: flex;
}

.createButtons {
   display: flex;
   align-items: center;
   text-align: center;
   margin: 0.5rem 1rem;
   font-size: 1rem;
   border: none;
   border-radius: 5px;
   background-color: rgb(96, 165, 208, 0.72);
   padding: 0.5rem 2rem;
   color: white;
   cursor: pointer;
}

.createScroller {
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   align-items: center;
   height: 50vh;
   overflow-y: scroll;
}

.addRemoveButtons {
   display: flex;
   gap: 1rem;
   margin: 1rem 0;
}

.wordPair {
   display: flex;
   align-items: center;
   height: 5rem;
   gap: 1rem;
   border-radius: 10px;

}

.InputEN,
.InputNL {
   padding: 0.5rem;
   margin: 0.5rem;
   border: none;
   border-radius: 5px;
}

.InputEN .InputNL,
input {
   padding: 1.5rem;
   margin: 0.5rem;
   border: none;
   border-radius: 5px;
   background-color: rgba(96, 165, 208, 0.72);
}

.createHeadericons {
   display: flex;
   justify-content: center;
   gap: 15rem;
   width: 100%;
   padding: 0.5rem;
}

#scrollbar {
   overflow-y: scroll;
   scrollbar-color: rgba(96, 165, 208, 0.44) rgba(96, 165, 208, 0.44);
}

/* ================== Question Page ===================*/

.question-page{
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   align-items: center;
   min-height: 100vh;
   padding-top: 1.7rem;
   padding-bottom: 1.7rem;
}

.questHeader{
   display: flex;
   flex-direction: column;
   align-items: center;
   width: 100%;
   padding: 0.3rem;
}

.list-name{
   font-size: 2rem;
   font-weight: 700;
   color: white;
   letter-spacing: 0.2rem;
}

.scoreBox{
   background-color: rgba(64, 133, 192, 0.7);
   border-radius: 16px;
   padding: 0.35rem 0.8rem;
   margin: 0.3rem 0;
}

.score{
   font-size: 1.95rem;
   font-weight: 700;
   color: white;
}

.timer{
   font-size: 1.3rem;
   color: #e9f9ff;
}


.word{
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 0.75rem;
}

.word p{
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 0.75rem;
   background-color: rgba(64, 133, 192, 0.7);
   padding: 1rem;
   border-radius: 12px;
}

.word-card{
   background-color: rgba(64, 133, 192, 0.7);
   border-radius: 12px;
   padding: 1rem 1.4rem;
   width: 90%;
   text-align: center;
   font-size: 2.2rem;
   color: white;
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.34);
}

.answerBox{
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 0.8rem;
   width: 100%;
   max-width: 40rem;
}

.input-group{
   display: flex;
   align-items: center;
   width: 100%;
   border-radius: 12px;
   background-color: rgba(64, 133, 192, 0.7);
   padding: 0.4rem 0.6rem;
}

.input-group .listicon{
   margin-right: 0.5rem;
   width: 2.1rem;
   height: 2.1rem;
   border-radius: 50%;
   border: 1px solid rgba(255,255,255,0.8);
}

.answerInput{
   width: 100%;
   border: none;
   background: transparent;
   color: #f8fbff;
   font-size: 1.2rem;
   outline: none;
}

.answerInput::placeholder{color: rgba(246,250,255,0.75);}

.submitButton{
   margin-top: 0rem;
   height: 4rem;
   border-radius: 50%;
   border: none;
   font-size: 1rem;
   background-color: #2a81c3;
   color: white;
   cursor: pointer;
   box-shadow: 0 8px 15px rgba(0,0,0,0.28);
}

.submitButton:hover{transform: scale(1.05);}

.answer{
   display: flex;
   justify-content: center;
   align-items: center;
   border-radius: 15px;
   background-color: rgba(64, 133, 192, 0.7);
}

/*============= End Screen =================*/


.end-screen-page{
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   height: 100vh;
}



.endBox{
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   gap: 0.5rem;
   padding: 1rem;
   height: 50vh;
   width: 30vw;
   background-color: rgba(64, 133, 192, 0.7);
   border-radius: 15px;
}

.scorePercentage{
   font-size: 3rem;
   font-weight: 700;
   color: white;
}

.wordScoreList{
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   gap: 0.5rem;
   padding: 0.5rem;

}

.mainInfo{
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
}

#Wrong{
   color: #ff4d4d;
}

#Correct{
   color: #4dff4d;
}

/* Tutorial Page Styles */
video {
   border-radius: 10px;
   box-shadow: 0 4px 8px rgba(0,0,0,0.2);
   margin: 1rem 0;
   max-width: 100%;
}

button {
   margin-top: 1rem;
   padding: 0.5rem 2rem;
   border: none;
   border-radius: 5px;
   background-color: #2a81c3;
   color: white;
   cursor: pointer;
   font-size: 1rem;
   box-shadow: 0 4px 8px rgba(0,0,0,0.2);
   transition: transform 0.2s;
}

button:hover {
   transform: scale(1.05);
}


.tutorial-page{
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   height: 100vh;
   padding: 1rem;
}

.tutorialBox{
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   padding: 1rem;
   height: 80vh;
   width: 50vw;
   background-color: rgba(64, 133, 192, 0.7);
   border-radius: 15px;
}
