@import url("https://fonts.googleapis.com/css2?family=Fuzzy+Bubbles:wght@400;700&family=Rubik+Bubbles&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Itim&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Delicious+Handrawn&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Chewy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Risque&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Iceland&display=swap');



.rubik-bubbles-regular {
    font-family: "Rubik Bubbles", system-ui;
    font-weight: 400;
    font-style: normal;
  }
  
.title {
    text-align: center;
    margin-top: 50px;
}


.setnamewrd {
    display: flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    font-size: 30px;
    color: var(--text-color-small)
}

.loginbtn {
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    border-radius: 15px;
    font-size: 15px;
    border: none;
}

.signoutbtn {
    position: absolute;
    top: 60px;
    right: 30px;
    cursor: pointer;
    border-radius: 15px;
    border: none;
    font-size: 15px;
}

.loginpage {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5); /* shade background when modal is open */
}

.logincontent {
    position: absolute;
    background-color: white;
    padding: 20px;
    width: 250px;
    height: 250px;
    text-align: center;
    border-radius: 8px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: space-between;
}

.loginpage.show .logincontent {
    transform: scale(1);
    opacity: 1
}


.loginbody input {
    width: 90%;
    padding: 10px;
    border: 1px solid black;
    font-size: 16px;
}

.loginbody button {
    width: 90%;
    padding: 10px;
    background-color: var(--login-button-color); /* change this */
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.loginbody button:hover {
    background-color: var(--login-hover-color);
}

.closeloginpage {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: red;
    position: absolute;
    top: 5px;
    right: 5px;
}

.loginbody {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.loginusername,
.loginpassword {
    width: 90%;
    max-width: 250px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    font-family: var(--itim-font);
}

.finalloginbtn,
.createaccountbtn {
    width: 90%;
    max-width: 250px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    margin-bottom: 5px;
}

.loginwrds {
    color: var( --login-word-color);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 100px;
    text-align: center;
    margin-top: 5px;
    position: relative;
}

.wrongbtn {
    background-color: rgb(230, 40, 40);
    padding: 20px;
    border-radius: 50px;
    transform: scale(0.75)
}

.wrongbtn:hover {
    transform: scale(0.8)
}

.flipbtn {
    width: 75px;
    height: 35px;
    margin-top: 17px;
    border-radius: 15px;
    border-color: var(--border-color);
}

.correctbtn {
    background-color: rgb(36, 167, 78);
    padding: 20px;
    border-radius: 50px;
    transform: scale(0.75)
}

.correctscore{
    color: var(--correct-score-color)
}

.scorenum{
    color: var(--score-num-color)
}

.incorrectscore{
    color: var(--incorrect-score-color)
}




.correctbtn:hover {
    transform: scale(0.8);
}

.createwrd {
    display: flex;
    margin-top: 15px;
    text-align: center;
    justify-content: center;
}

.setint {
    width: 250px;
    height: 30px;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-bottom: 30px;
    border-radius: 15px;
    border: 1px solid black;
}

.termint {
    width: 400px;
    height: 30px;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    border-radius: 15px;
    border: 1px solid black;
}

.definitionint {
    width: 400px; 
    height: 30px;
    font-size: 15px;
    margin: auto;
    margin-bottom: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    border: 1px solid black;
}

.addbtn {
    width: 150px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-top: 20px;
    border-radius: 100px;
    border: none;
}

.addsetbtn {
    width: 100px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-top: 10px;
    border-radius: 30px;
    border: none;
}

.score {
    position: absolute;
    top: 25px;
    left: 50px;
}

.recycleflashcards {
    border: solid black;
    background-color: rgb(131, 199, 222);
    width: 300px;
    height: 250px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    cursor: move;
    top: 400px;
    left: 100px;
    display: none;
   
}

.closerecyclebtn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    padding: 0;
    display: flex;
    background-color: rgb(131, 199, 222);
    border: none;
}

.congratswrd {
    position: absolute;
    top: 70px;
    margin: auto;
    font-family: "Rubik Bubbles", system-ui;
    font-size: 45px;
    font-weight: 400;
    font-style: normal;
    padding: 0;
    color: rgb(233, 233, 233);
    display: inline-block;
    
      
}


.fuzzy-bubbles-bold {
    font-family: "Fuzzy Bubbles", sans-serif;
    font-weight: 700;
    font-style: normal;
}
  

.choicewrd {
    position: absolute;
    bottom: 120px;
    left: 60px;
    font-size: 20px;
    display: flex;
    text-align: center;


}

.practiseincorrectbtn {
    position: absolute;
    bottom: 60px;
    right: 20px;
    width: 160px;
    height: 45px;
    font-size: 16px;
    font: black;
    background-color: white;

}

.practiseallbtn {
    position: absolute;
    bottom: 60px;
    left: 20px;
    width: 160px;
    height: 45px;
    font-size: 16px;
    font: black;
    background-color: white;
}

/* When only the 'practise all' option is available, center that button */
.recycleflashcards.single-option .practiseallbtn {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
}


.termsinsetwrd {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px
}

.choosesetwrd {
    text-align: center;
    font-size: 25px;
    color: var(--text-color-small)
}

.expandbtn {
    top: 1740px;
    left: 80px;
    position: absolute;  
    font: 22px;
    width: 200px;
    height: 35px; 
    border-radius: 15px;
    border: none;
}

.choosesetmenu {
    position: absolute;
    top: 100px;
    right: 100px;
    width: 100px;
    color: black;
    border-radius: 10px;
}

.flashcard-container {
    width: 700px;
    height: 400px;
    perspective: 1000px;
    margin: 20px auto;
}

.flashcard-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

.flashcard-wrapper.flippedvertically {
    transform: rotateX(180deg);
}

.flashcard-wrapper.flippedhorizontally-correctbtn {
    transform: rotateY(180deg);
}

.flashcard-wrapper.flippedhorizontally-wrongbtn {
    transform: rotateY(-180deg);
} 

.flashcard-front, .flashcard-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    background: var(--main-flashcard-color);
    border-radius: 50px;
}

.flashcard-front {
    transform: rotate(0deg);
    z-index: 2;
    color: var(--flashcard-front-color)
}

.flippedvertically .flashcard-front {
    display: none;
}

.flashcard-back {
    transform: rotateX(-180deg);
    z-index: 1;
    display: none;
    color: var(--flashcard-back-color)
}

.flippedvertically .flashcard-back {
    display: flex;
}

:root {
    --cards: 4;
    --cardHeight: 400px;
    --cardTopPadding: 1.5em;
    --cardMargin: 5vw;
}

.container {
    width: 700px;
    margin: 0 auto;
}

#cards {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--cards)), var(--cardHeight);
    gap: var(--cardMargin);
    padding-bottom: calc(var(-cards) * var(--cardTopPadding));
    margin-bottom: var(--cardMargin);
}

.card,
.card-body {
    background-color: var(--main-flashcard-color);
    border-radius: 50px

}

.editflashcards {
    top: 10px;
    right: 10px;
    position: absolute;
    border-radius: 5px;
    border: none;
}

.card {
    position: sticky;
    top: 0;
    padding-top: var(--cardTopPadding)
}

.card.expanded {
    position: static !important;
    top: auto !important;
    padding-top: 0;

}

.card-body {
    position: relative;
    box-sizing: border-box;
    padding: 30px;
    height: var(--cardHeight);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
}

h2 {
    font-size: 2.5em
}

.stackedterm {
    top: 100px;
    justify-content: center;
    text-align: center;
    position: absolute;
    color: var(--flashcard-term-color);
}

.stackeddefinition {
    bottom: 100px;
    justify-content: center;
    text-align: center;
    position: absolute;
    color: var(--flashcard-definition-color);
}



.choosesetmenu2 {
    top: 850px;
    left: 50%;
    width: 100px;
    font-size: 15px;
    border-radius: 15px;
}

.edit-options {
    margin-top: 5px;
    display: flex;
    gap: 5px;
}

.pencilbtn,
.closebtn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.edit-wrapper {
    position: relative;
    display: inline-block;
}

.pencilbtn {
    background-color: #ebd38a;
    color: #000
}

.deletebtn {
    background-color: red;
    color: #fff;
}

.pencilbtn,
.deletebtn {
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

.edit-options {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    display: flex;
    gap: 5px;
}

.edit-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.edit-term-input,
.edit-def-input {
    width: 90%;
    padding: 5px;
    font-size: 1.2em;
}

.save-edit-btn,
.cancel-edit-btn {
    padding: 5px 10px;
    font-size: 1em;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    border-radius: 15px;
}

.save-edit-btn {
    background-color: #28a745;
    color: #fff
}

.cancel-edit-btn {
    background-color: #dc3545;
    color: #fff
}

.deletebtn {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.colorthemewrd {
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    padding-bottom: 45px;
    font-size: 35px;
    color: var(--text-color-small)
}

/* T Y P E  F L A S H C A R D S */
.typeflashcard-container {
    width: 700px;
    height: 400px;
    perspective: 1000px;
    margin: 20px auto;
    margin-bottom: 10px;
}

.typeflashcard-wrapper {
    width: 100%;
    height: 100%;
    background-color: var(--main-flashcard-color);
    border-radius: 50px;
}

.typeflashcardinput {
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    margin: auto;
    margin-top: 20px;
    width: 300px;
    height: 35px;
    font-size: 22px;
    margin-bottom: 10px;
    border-radius: 15px;
    border: 1px solid black;
}

/* Ensure edit inputs have a thin black border as well */
input.edit-term-input,
input.edit-def-input {
    border: 1px solid black;
    border-radius: 8px;
    padding: 6px 8px;
}

.checkandnextbtn{
    text-align: center;
}

.checktypeflashcard, 
.nextbtn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0px 5px;
    border-radius: 15px;
    width: 75px;
    height: 35px;
    border: none;
}

.correctwrd {
    justify-content: center;
    text-align: center;
    align-items: center;
    display: flex;
}

.correctdef {
    justify-content: center;
    text-align: center;
    align-items: center;
    display: flex;
}

.typescore {
    position: absolute;
    top: 850px;
    left: 50px;
}

.correct-text {
    color: green;
    font-weight: bold;
}

.incorrect-text {
    color: red;
    font-weight: bold;
}

/*C O L O R   T H E M E S */

/* default theme*/
:root {
    --backgound-color: #ffffff;
    --text-color: #000000;
    --flashcard-term-color: #000000;
    --flashcard-defintion-color: #333333;
    --main-flashcard-color: #f3f3f3;
    --flashcard-front-color: black;
    --flashcard-back-color: black;
    --login-word-color: black;
    --login-hover-color: #45a049;
    --login-button-color: #4CAF50;
    --itim-font: "Itim", serif;
    --text-score-small: #be4628;
    --border-color: black;
}

/* dark theme */
.dark-theme {
    --background-color: #060113cb;
    --text-color: #aeaec8;
    --flashcard-term-color: rgb(207, 203, 218);
    --flashcard-definition-color: rgb(207, 203, 218);
    --main-flashcard-color: #1d1d29;
    --flashcard-front-color: rgb(207, 203, 218);
    --flashcard-back-color: rgb(207, 203, 218);
    --login-word-color: black;
    --login-hover-color: rgb(71, 69, 69);
    --login-button-color: rgb(117, 112, 112);
    --text-color-small: #efebe9;
    --correct-score-color: #2bd531;
    --score-num-color: white;
    --incorrect-score-color: #882a13;
    --border-color: black;
}

/* espresso theme */
.bluebrown-theme {
    --background-color: rgba(182, 140, 92, 0.708);
    --text-color: #1E293B;
    --flashcard-term-color: #f8f1ef;
    --flashcard-definition-color: #f8f1ef;
    --main-flashcard-color: #372f2d;
    --flashcard-front-color: #f8f1ef;
    --flashcard-back-color: #f8f1ef;
    --login-hover-color: #5599ab;
    --login-button-color: #70ABAF;
    --text-color-small: #f8f1ef;
    --correct-score-color: #2bd531;
    --score-num-color: white;
    --incorrect-score-color: #882a13;
    --border-color: black;
}

/* kourosh theme */
.midnight-theme {
    --background-color: rgb(40, 50, 76);
    --text-color: #7f8ab0;
    --flashcard-term-color: #7cc1f2;
    --flashcard-definition-color: #7cc1f2;
    --main-flashcard-color: #2a455f ;
    --flashcard-front-color: #7cc1f2;
    --flashcard-back-color: #7cc1f2;
    --login-hover-color: #59548d;
    --login-button-color: #716cb8;
    --text-color-small: #7cc1f2;
    --correct-score-color: #2bd531;
    --score-num-color: white;
    --incorrect-score-color: #882a13;
    --border-color: black;
}

/* pink and purple theme */
.pinkpurple-theme {
    --background-color: #e5bddb;
    --text-color: #2eada0;
    --flashcard-term-color: rgb(124, 194, 207);
    --flashcard-definition-color: rgb(124, 194, 207);
    --main-flashcard-color: #fbf4f4;
    --flashcard-front-color: rgb(124, 194, 207);
    --flashcard-back-color: rgb(124, 194, 207);
    --login-hover-color: rgb(116, 195, 209);
    --login-button-color: #a777bc;
    --text-color-small: rgb(189, 234, 243);
    --correct-score-color: #0d9812;
    --score-num-color: white;
    --incorrect-score-color: #882a13;
    --border-color: #e0a4d2;
}

.green-theme {
    --background-color: #213f3a;
    --text-color: #2eada0;
    --flashcard-term-color: white;
    --flashcard-definition-color: white;
    --main-flashcard-color: #2b7063;
    --flashcard-front-color: white;
    --flashcard-back-color: white;
    --login-hover-color: #77bc91;
    --login-button-color: #4b7a5d;
    --text-color-small: rgb(48, 28, 19);
    --correct-score-color: #0d9812;
    --score-num-color: white;
    --incorrect-score-color: #882a13;
    --border-color: green;
}

.lavendar-theme {
    --background-color: #cab7dc ;
    --text-color: #582593;
    --flashcard-term-color: #4A345D;
    --flashcard-definition-color: #4A345D;
    --main-flashcard-color: #E5D6EB;
    --flashcard-front-color: #4A345D;
    --flashcard-back-color: #4A345D;
    --login-hover-color: rgb(228, 189, 232);
    --login-button-color: #a777bc;
    --text-color-small: #9B59E6;
    --correct-score-color: #0d9812;
    --score-num-color: white;
    --incorrect-score-color: #882a13;
    --border-color: white;
}

/* red theme */
.red-theme {
    --background-color: #592727;
    --text-color: #c02626;
    --flashcard-term-color: #5A2323;
    --flashcard-definition-color: #5A2323;
    --main-flashcard-color: #F3B1B1;
    --flashcard-front-color: #5A2323;
    --flashcard-back-color: #5A2323;
    --login-hover-color: #8b1515;
    --login-button-color: #b83a3a;
    --text-color-small: #e8cece;
    --correct-score-color: #0d9812;
    --score-num-color: white;
    --incorrect-score-color: #ec1c0d;
    --border-color: white;
}

.sandy-theme {
    --background-color: #E8E2CE;
    --text-color: #646669;
    --flashcard-term-color: #42272a;
    --flashcard-definition-color: #42272a;
    --main-flashcard-color: #B0C6CD;
    --flashcard-front-color: #42272a;
    --flashcard-back-color: #42272a;
    --login-hover-color: rgb(119, 191, 209);
    --login-button-color: rgb(103, 157, 159);
    --text-color-small: #ffffff;
    --correct-score-color: #0d9812;
    --score-num-color: white;
    --incorrect-score-color: #882a13;
    --border-color: rgb(59, 39, 39);
}

.kourosh-theme {
    --background-color: #ed8292;
    --text-color: #f4ebed;
    --flashcard-term-color: #f4e5e7;
    --flashcard-definition-color: #f4e5e7;
    --main-flashcard-color: #3B3640;
    --flashcard-front-color: #f4e5e7;
    --flashcard-back-color: #f4e5e7;
    --login-hover-color: #d36374;
    --login-button-color: #d2808c;
    --text-color-small: #64444b;
    --correct-score-color: #0d9812;
    --score-num-color: white;
    --incorrect-score-color: #882a13;
    --border-color: rgb(59, 39, 39);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.colorthemes {
    display: grid;
    grid-template-columns: repeat(5, 150px);
    grid-auto-rows: 150px;
    gap: 15px;
    justify-content: center;
}

.defaultmode      { grid-column: 1; grid-row: 1; }
.darkmode         { grid-column: 2; grid-row: 1; }
.bluebrownmode    { grid-column: 3; grid-row: 1; }
.midnightmode     { grid-column: 4; grid-row: 1; }
.pinkpurplemode   { grid-column: 5; grid-row: 1; }
.greenmode        { grid-column: 1; grid-row: 2; }
.lavendarmode     { grid-column: 2; grid-row: 2; }
.redmode          { grid-column: 3; grid-row: 2; }
.sandymode        { grid-column: 4; grid-row: 2; }
.kouroshmode      { grid-column: 5; grid-row: 2; }

/* adjusting the buttons */
.defaultmode, .darkmode, .bluebrownmode, .midnightmode, .pinkpurplemode, .greenmode, .lavendarmode, .redmode, .sandymode, .kouroshmode {
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    width: 150px;
    height: 150px;
    padding: 15px;
    margin: 10px;
    font-size: 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    border-radius: 15px;
}

.defaultmode:hover, .darkmode:hover, .bluebrownmode:hover, .midnightmode:hover, .pinkpurplemode:hover, .kouroshmode:hover {
    transform: scale(1.1);
    cursor: pointer;
}
/* Fix missing :hover on green/lavender buttons */
.greenmode:hover, .lavendarmode:hover, .redmode:hover, .sandymode:hover {
    transform: scale(1.1);
    cursor: pointer;
}
.defaultmode {
    background-color: #d5d2d2;
    color: black;
}
.bluebrownmode {
    background-color: rgba(182, 140, 92, 0.708);
    color:#1E293B;
}

/* button color */
.darkmode {
    background-color: #282828;
    color: #FFFF
}
.midnightmode {
    background-color: #191170;
    color: #d5ffff;
}
.pinkpurplemode {
    background-color: #e2add4;
    color: #2eada0;
}

.greenmode {
    background-color: #062913;
    color: #50ba80;
}

.lavendarmode {
    background-color: #b9a6ca ;
    color: #4A345D;
}

.redmode {
    background-color: #662e2e;
    color: #e8cece;
}

.sandymode {
    background-color: #e1ddcf;
    color: #89a6b6;
}

.kouroshmode {
    background-color: #e88695;
    color: #493F48;
}


/* F O N T   T H E M E S  (10 fonts so far) */ 

.choosefontwrd {
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 50px;
    margin-bottom: 20px; 
}

.choosefont:focus {
    outline: none;
}

.choosefont button {
    border: none;
    background: none;
    appearance: none;
}

/* Make font selector text/buttons white on dark, midnight, and green themes */
.dark-theme .choosefontwrd,
.midnight-theme .choosefontwrd,
.green-theme .choosefontwrd,
.kourosh-theme .choosefontwrd,
.dark-theme .choosefont button,
.midnight-theme .choosefont button,
.green-theme .choosefont button,
.kourosh-theme .choosefont button {
    color: #ffffff;
}

.choosefont{
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 20px;
    justify-content: center;
    text-align: center;

}


/* fonts from google */
.itim-regular {
    font-family: "Itim", serif;
    font-weight: 400;
    font-style: normal;
}
.noto-sans-jp-text {
    font-family: "Noto Sans JP", sans-serif;    
}
.roboto-mono-text {
    font-family: "Roboto Mono", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
.nunito-text {
    font-family: "Nunito", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}
.playfair-display-text {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 650;
    font-style: normal; 
}
.delicious-handrawn-regular {
    font-family: "Delicious Handrawn", serif;
    font-weight: 400;
    font-style: normal;
}
.lobster-regular {
    font-family: "Lobster", serif;
    font-weight: 400;
    font-style: normal;
}
.caveat-text {
    font-family: "Caveat", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}
.indie-flower-regular {
    font-family: "Indie Flower", serif;
    font-weight: 400;
    font-style: normal;
}
.archivo-narrow-text {
    font-family: "Archivo Narrow", serif;
    font-optical-sizing: auto;
    font-weight: 550;
    font-style: normal;
}
.amatic-sc-regular {
    font-family: "Amatic SC", serif;
    font-weight: 400;
    font-style: normal;
}
.luckiest-guy-regular {
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    font-style: normal
}
.pacifico-regular {
    font-family: "Pacifico", serif;
    font-weight: 400;
    font-style: normal
}
.courgette-regular {
    font-family: "Courgette", serif;
    font-weight: 400;
    font-style: normal
}
.chewy-regular {
    font-family: "Chewy", serif;
    font-weight: 400;
    font-style: normal;
}
.space-mono-regular {
    font-family: "Space Mono", serif;
    font-weight: 400;
    font-style: normal;
}
.risque-regular {
    font-family: "Risque", serif;
    font-weight: 400;
    font-style: normal;
}
.sour-gummy-text {
    font-family: "Sour Gummy", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100
}
.Iceland-regular {
    font-family: "Iceland", serif;
    font-weight: 400;
    font-style: normal;
}

/* make font buttons have the font */
.itimfont {
    font-family: "Itim", serif;
}
.notosansjapanesefont {
    font-family: "Noto Sans JP", sans-serif;
}
.robotmonofont {
    font-family: "Roboto Mono", serif;
}
.nunitofont {
    font-family: "Nunito", serif
}
.playfairdisplayfont {
    font-family: "Playfair Display", serif
}
.delicioushandrawnfont {
    font-family: "Delicious Handrawn", serif
}
.lobsterfont {
    font-family: "Lobster", serif
}
.caveatfont {
    font-family: "Caveat", serif
}
.indieflowerfont {
    font-family: "Indie Flower", serif
}
.archivonarrowfont {
    font-family:  "Archivo Narrow", serif
}
.amaticSCfont {
    font-family: "Amatic SC", serif
}
.luckiestguyfont {
    font-family: "Luckiest Guy", serif
}
.pacificofont {
    font-family: "Pacifico", serif;
}
.courgettefont {
    font-family: "Courgette", serif
}
.chewyfont {
    font-family: "Chewy", serif
}
.spacemonofont {
    font-family: "Space Mono", serif;
}
.risquefont {
    font-family: "Risque", serif
}
.sourgummyfont {
    font-family: "Sour Gummy", serif
}
.icelandfont {
    font-family: "Iceland", serif;
    /* Let it auto-flow inline with other fonts */
}
/* Josefin Sans button displays in its own font and grid slot */
.josefinsansfont {
    font-family: "Josefin Sans", sans-serif;
    /* Let it auto-flow inline with other fonts */
}

/* Contact section */
.contact-section {
    max-width: 720px;
    margin: 20px auto 40px auto;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--main-flashcard-color);
}
.contact-title {
    text-align: center;
    margin: 8px 0 16px 0;
    color: var(--text-color);
}
/* Kourosh theme: make only the contact title white */
.kourosh-theme .contact-title {
    color: #ffffff;
}
.contact-textarea {
    width: 100%;
    height: 360px;
    resize: vertical;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid black;
    background: var(--backgound-color);
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
}
.contact-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    flex-wrap: wrap; /* allow status to wrap under button */
}
.contact-sendbtn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    background-color: var(--login-button-color);
    color: white;
}
.contact-sendbtn:disabled {
    opacity: 0.6;
    cursor: default;
}
.contact-status {
    font-size: 14px;
    line-height: 1.3;
    flex: 1 1 100%;    /* take full row beneath button */
    text-align: right; /* align under the right-aligned button */
    margin-top: 6px;
    white-space: normal;
    word-break: break-word; /* wrap long words if needed */
}
.contact-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-color-small);
}

/* Font themes */
:root {
    --primary-font: "Itim", serif;
}
.notosansjapanese-theme {
    --primary-font: "Noto Sans JP", sans-serif;
}
.itim-theme {
    --primary-font: "Itim", serif;
    /* put everything else that has a font here */
}
.robotomono-theme {
    --primary-font: "Robot Mono", serif;
}
.nunito-theme {
    --primary-font: "Nunito", serif;
}
.playfairdisplay-theme {
    --primary-font: "Playfair Display", serif;
}
.delicioushandrawn-theme {
    --primary-font: "Delicious Handrawn", serif
}
.lobster-theme {
    --primary-font: "Lobster", serif
}
.caveat-theme {
    font-family: "Caveat", serif;
}
.indieflower-theme {
    --primary-font: "Indie Flower", serif
}
.archivonarrow-theme {
    --primary-font: "Archivo Narrow", serif
}
.amaticSC-theme {
    --primary-font: "Amatic SC", serif
}
.luckiestguy-theme {
    --primary-font: "Luckiest Guy", serif
}
.pacifico-theme {
    --primary-font: "Pacifico", serif
}
.courgette-theme {
    --primary-font: "Courgette", serif
}
.chewy-theme {
    --primary-font: "Chewy", serif
}
.spacemono-theme {
    --primary-font: "Space Mono", serif
}
.risque-theme {
    --primary-font: "Risque", serif
}
.sourgummy-theme {
    --primary-font: "Sour Gummy", serif
}
.iceland-theme {
    --primary-font: "Iceland", serif
}
.josefinsans-theme {
    --primary-font: "Josefin Sans", sans-serif;
}


/* Adding font to all words */
body,
.title,
.logincontent,
.loginwrds,
.choosesetmenu,
.choosesetmenu2,
.card,
button,
input {
    font-family: var(--primary-font)
}

.clarasection {
    display: flex;
    text-align: center;
    justify-content: center;

}

.clarasection-smallwords {
    /* Center and constrain the Clara blurb */
    display: block;
    max-width: 720px; /* align with .contact-section width */
    margin: 0 auto;   /* center horizontally */
    box-sizing: border-box;
    padding: 0 16px;  /* align with .contact-section inner padding */
    text-align: center;
    line-height: 1.6;
}
