/* Global */
* {
	font-family: "Quicksand", sans-serif;
}

h1, h2,  h3, h4, h5, h6 {
	font-family: "Kalam", cursive;
	font-weight: 400;
}

button {
	font-family: "Poppins", sans-serif;
	font-weight: 500;
}


/* Body */
body {
	margin: 0px;
    background-color: #f2f2f2;
}


/* Navbar */
.navbar {
    display: flex;
    background-color: #f2f2f2;
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}

.logo {
	width: 18%;
	justify-content: left;
	margin: auto;
	margin-left: 2%;
}

.logo img{
	height: 35px;
}

.nav-links {
	background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    list-style: none;
    flex-grow: 1;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 0px -1px rgb(0 0 0 / 10%);
}

.nav-links li {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 1%;
}

.nav-links li:hover {
    background-color: #FAF9F6;
}

.nav-links li a {
    display: block;

    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-links img {
    height: 40px;
    margin-bottom: 5px;
}

.user-section {
    width: 18%;
    display: flex;
    justify-content: flex-end;
    padding-right: 2%;
    position: relative;
}

.user-section a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.user-section h6 {
    text-align: center;
	margin: 10px;
	padding-top: 5%;
	color: #ff3b3b;
}

.user-section h6 span {
    font-family: "Kalam", cursive;
    font-weight: 400;
}

.user-icon {
	width: 60px;
	border: 1px solid;
	border-radius: 100%;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    width: 200px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 8px auto;
}

.user-dropdown li a {
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    padding: 12px 18px;
    margin: 8%;
    color: black;
    border: 1px #f2f2f2 solid;
    text-decoration: none;
    font-size: 100%;
    border-radius: 14px;
    transition: all 0.3s;
}

.user-dropdown li a:hover {
    border: 1px #a1a1a1 solid;
    border-radius: 14px;
}

.user-dropdown li img {
 	width: 20%;
    margin-right: 18px;
}

.user-section .toggle img {
    opacity: 0.7; 
}

.bottom-navbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: #f2f2f2;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.bottom-navbar .nav-links {
    display: flex;
    box-shadow: 0 -2px 0px -1px rgb(0 0 0 / 10%);
}

.bottom-navbar li {
	flex: 1;
}

.bottom-navbar img {
	height: 30px;
}

.bottom-navbar span {
	font-size: 14px;
}

.bottom-navbar .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.active {
	background-color: #FAF9F6;
}

@media (max-width: 1268px) {
    .user-section h6 {
        display: none;
    }
}

@media (max-width: 1068px) {
	.logo {
    	margin-left: 3%;
    }
    .logo img {
    	height: 26px;
    }
    .navbar {
        display: flex;
        flex-direction: row;
    }
    .nav-links {
        display: none;
    }
    .user-section {
    	width: 50%;
    }
    .user-section h6 {
		display: none;
	}
	.user-icon {
		width: 40px;
		margin: 12.5% 12.5% 13.5% 0%;
	}
	.bottom-navbar {
        display: block;
    }
}

@media (max-width: 468px) {
    .bottom-navbar span {
        font-size: 10px;
    }
}

@media (max-width: 368px) {
    .bottom-navbar span {
        font-size: 8px;
    }
    .bottom-navbar img {
        height: 18px;
    }
}


/* Main section */
#main-section {
    background-color: #fff;
    width: 60%;
    min-height: calc(80vh + 55px);
    margin: auto;
    padding-bottom: 50px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#main-section h1 {
	text-align: center;
}

@media (max-width: 1068px) {
    #main-section {
    	width: 100%;
    	padding-bottom: 100px;
    	min-height: 80vh;
    }
}


/* Vocabulary page */
#vocabForm {
    text-align: center;
    margin: 100px auto 50px;
    width: 500px;
}

#vocabForm .vocab-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

#vocabForm input[type="text"] {
    width: 100%;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    box-sizing: border-box;
}

#vocabForm button[type="submit"] {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ff5a5a;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 6px 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

#vocabForm button[type="submit"]:hover {
    background-color: #ff3b3b;
}

#vocabForm .vocab-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    padding: 10px 15px;
    border-radius: 15px;
}

#vocabForm .vocab-container img {
    width: 75px;
    height: auto;
    margin-right: 10px;
}

#vocabForm .vocab-container p {
    margin: 0;
    text-align: left;
    font-weight: 500;
    color: #555;
}

@media (max-width: 768px) {
    #vocabForm  {
       width: 400px;
    }
}
@media (max-width: 468px) {
    #vocabForm {
        width: 90%;
    }
}


/* Kana pages */
.kana-h1 {
	margin-top: 56px;
}

.kana-p {
    font-size: 15px;
    margin-bottom: 4%;
    font-weight: 500;
    max-width: 80%;
    text-align: center;
}

.chart {
	max-width: 80%;
	margin-bottom: 80px%;
}

.kana-section {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
    margin: 20px auto;
}

.kana-section h2 {
    font-size: 32px;
    margin: 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 12px;
    width: 475px;
    justify-items: center;
    margin-top: 18px;
}

.grid-container-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 12px;
    width: 475px;
    justify-items: center;
    margin-top: 18px;
}

.kana-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 75px;
    height: 85px;
    background-color: #f7f7f7;
    border-radius: 8px;
    font-size: 40px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    padding: 2.5%;
}

.kana-button:hover {
    background-color: #ffcc00;
}

.kana-button:active {
    transform: scale(0.95);
}

.kana-button2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 75px;
    height: 85px;
    background-color: #f7f7f7;
    border-radius: 8px;
    font-size: 40px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    border: 1px solid #e0e0e0;
    cursor: default;
    padding: 2.5%;
}

#kana-button-3col {
    width: 100px;
    height: 100px;
}

.empty {
    visibility: hidden;
    width: 65px;
    height: 85px;
}

.romaji {
    font-size: 18px;
    margin-bottom: 6px;
    color: #808080;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    width: 400px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(0);
    transition: transform 0.3s ease-in-out;
}

.modal-header {
    display: flex;
    justify-content: center;
}

.audio-button {
    background-color: #ffcc00;
    width: 40px;
    border: none;
    padding: 8px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s;
    margin-left: 10px;
}

.audio-button:hover {
    transform: scale(1.05);
}

.navigate-button {
    background-color: white;
    font-size: 24px;
    border: none;
    margin: 7.5% 2.5%;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

.navigate-button:active {
    transform: scale(0.8);
}

.flip-container {
    margin: 20px auto;
    height: 320px;
    perspective: 1000px;
}

.flipper {
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-container:hover .flipper {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.front {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.front img {
    width: 320px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.mnemonic-text {
    margin-top: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    backface-visibility: hidden;
}

.back {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotateY(180deg);
}

.back img {
    width: 320px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.practice-button {
    margin-top: 72px;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
}

@media (max-width: 486px) {
    .grid-container, .grid-container-3col {
        width: 96%;
    }
    .grid-container span, .grid-container-3col span {
        font-size: 14px;
    }
    .kana-button, .kana-button2, #kana-button-3col, .empty {
        width: 35px;
        height: 45px;
    }
    .flashcard-button {
        font-size: 12px;
    }
    .modal-content {
        height: 50%;
        width: 60%;
    }
    .front img {
        width: 75%;
    }
}

@media (max-width: 370px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .flashcard-button {
        font-size: 10px;
    }
}


/* Kana practice page */
.kana-game-container {
    margin-top: 10%;
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
}

.game-title {
    padding: 12px;
    font-size: 1.5rem;
}

.kana-display {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kana-character {
    font-size: 125px;
    color: #333;
}

.kana-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.input-label {
    font-size: 18px;
    font-weight: bold;
}

#answer-input {
    box-shadow: none;
    width: 93%;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

#answer-input:focus {
    border-color: #000;
}

.check-button {
    padding: 10px;
    font-size: 1rem;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.scoreboard {
    width: 300px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 2.5%;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
}

.scoreboard p {
    margin: 5px 0;
    font-size: 1.2em;
}

.correct-score {
    color: green;
    font-weight: 500;
}

.incorrect-score {
    color: red;
    font-weight: 500;
}

@media (max-width: 368px) {
    .kana-game-container {
        width: 75%;
    }
    .scoreboard {
        width: 70%;
    }
}


/* Kanji page */
.kanji-lesson {
    width: 95%;
    margin: 20px;
}

.kanji-lesson h3 {
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 5px;
}

.kanji-lesson p {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.kanji-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kanji-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #f7f7f7;
    border-radius: 8px;
    font-size: 30px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    border: 1px solid #e0e0e0;
}

.kanji-button:hover {
    background-color: #ffcc00;
}

.kanji-button:active {
    background-color: #ffd966;
    transform: scale(0.95);
}

.lesson-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
    width: 95%;
}

@media (max-width: 768px) {
    .kanji-button {
        width: 44px;
        height: 44px;
    }
}


/* Kanji info page */
.back-button {
    font-size: 0px;
    background-color: black;
    border: 2px solid black;
    border-radius: 100%;
    margin-right: 85%;
    position: relative;
    top: 50px;
}

.back-button:hover {
    border: 2px solid  #ffcc00;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-button img {
    width: 32px;
    transform: rotate(90deg);
}

.kanji-character h1 {
    font-size: 150px;
    color: #333;
    border: 1px solid #333;
    height: 225px;
    width: 225px;
    margin: 100px auto 0;
    cursor: default;
}

.kanji-character h1:hover {
    border: 1px solid #007BFF;
}

.kanji-meaning {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin: 24px 48px;
}

.readings {
    display: flex;
}

.readings h3 {
    background-color: white;
    color: brown;
    padding: 0;
    margin: 0;
    position: relative;
    display: inline;
    left: 150px;
    top: 32px;
    font-size: 12px;
}

.reading-box {
    width: 200px;
    font-size: 14px;
    margin: 22px 32px;
    padding: 12px 40px;
    border-radius: 25px;
    color: brown;
    text-align: center;
    background-color: #fff5cc;
    border: 1px solid #ffcc00;
}

.related-words {
    margin-top: 5%;
    width: 100%;
}

.related-words h3 {
    margin-left: 20px;
}

.related-words-p {
    font-size: 13px;
    color: gray;
    margin-bottom: 40px;
    margin-left: 20px;
}

.vocab-item {
    margin-bottom: 10px;
}

.kanji-word {
    font-size: 20px;
    color: #333;
}

.vocabulary-list {
    margin-left: 20px;
}

.vocab-item .meaning {
    font-size: 14px;
    color: #007BFF;
}

hr {
    border: 1px solid #eee;
    width: 95%;
    margin-left: 0;
}

.hr-header {
    margin-left: 20px;
}

.button-container {
    text-align: center;
    margin-top: 30px;
}

.flashcard-button {
    background-color: #fff;
    color: #007BFF;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 0 0 #e0e0e0;
    border-radius: 15px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
}

.flashcard-button:hover {
    background-color: #f5f5f5;
    border-color: #dcdcdc;
    box-shadow: 0 4px 0 0 #dcdcdc;
}

.flashcard-button:active {
    transform: translateY(4px);
    box-shadow: none;
    background-color: #f0f0f0;
    border-color: #c0c0c0;
}

#flashcard-form {
    width: 80%;
}

#flashcard-form h3 {
    margin: 0;
}

.vocabulary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    margin-right: 3%;
}

.vocab-input {
    margin: 5% 15%;
    display: flex;
    flex-direction: column;
}

.vocab-input label {
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
    font-size: 1.1em;
}

.vocab-input input {
    box-shadow: none;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 15px;
    font-size: 1em;
}

.vocab-input input:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.notes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.notes-container label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.notes-container textarea {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1em;
}

.notes-container textarea:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#flashcard-error {
    color: red;
}

.create-flashcard-error {
    color: red;
    text-align: center;
}

.hidden {
    display: none;
}

.form-buttons {
    text-align: center;
    margin-top: 18px;
}

.form-buttons button {
    margin: 1%;
}

@media (max-width: 1068px) {
    .readings {
        flex-direction: column;
        align-items: center;
    }
    .vocabulary-grid {
        margin-right: 5%;
    }
}

@media (max-width: 368px) {
    .kanji-character h1 {
        font-size: 75px;
        width: 100px;
        height: 100px;
    }
    .reading-box {
        width: 125px;
    }
    .readings h3 {
        left: 115px;
    }
    .flashcard-button {
        font-size: 12px;
    }
}


/* Flashcards */
.info-div {
    margin: 7.5%;
}

.info {
    background-color: #f9f9f9;
    color: #333;
    padding: 20px;
    border-left: 4px solid #ff6600;
    border-radius: 8px;
    font-size: 1.1em;
    max-width: 600px;
    text-align: center;
}

.flashcard-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

.flashcard-kana-section {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 333px;
    text-align: center;
    margin: 33px;
}

.flip-container {
    margin: 20px auto;
    height: 320px;
    perspective: 1000px;
}

.flipper {
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-container:hover .flipper {
    transform: rotateY(180deg);
}

.flashcard-kanji-character h1 {
    font-size: 150px;
    color: #333;
    border: 1px solid #333;
    height: 225px;
    width: 225px;
    margin: 0 auto;
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.flashcard-front {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flashcard-back {
    background-color: #fff;
    transform: rotateY(180deg);
    text-align: left;
    border-radius: 8%;
}

.flashcard-kanji-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10%;
}

.flashcard-left-column,
.flashcard-right-column {
    width: 45%;
    text-align: left;
    margin: 1%;
}

.flashcard-left-column p,
.flashcard-right-column p {
    margin: 0;
    padding: 2px 0;
}

.flashcard-left-column p:first-child,
.flashcard-right-column p:first-child {
    font-weight: bold;
    margin-bottom: 5px;
}

.flashcard-left-column,
.flashcard-right-column {
    text-align: center;
    font-size: 12px;
}

.flashcard-kanji-meaning {
    text-align: center;
    margin: 25px 6px 0;
    font-weight: bold;
    font-size: 14px;
}

.flashcard-vocabulary {
    font-size: 13px;
    text-align: left;
    width: 100%;
    margin-top: 12px;
    margin-left: 15%;
}

.flashcard-vocabulary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flashcard-vocabulary li {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.flashcard-vocabulary-meaning {
    text-align: right;
    display: inline-block;
    margin-right: 15%;
}

.flashcard-container hr {
    width: 100%;
    border: 0.5px solid #ddd;
    margin: 15px 0;
}

.flashcard-container form {
    display: inline;
}

.flashcard-container a {
    text-decoration: none;
}

.update-button, .delete-button {
    padding: 2.5%;
    border: none;
    border-radius: 5px;
    font-size: 26px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.update-button i, .delete-button i{
   display: flex;
}

.update-button {
    background-color: #4CAF50;
    color: white;
}

.delete-button {
    background-color: #f44336;
    color: white;
}

.update-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.delete-button:hover {
    background-color: #e53935;
    transform: scale(1.05);
}

.export-buttons {
    text-align: center;
    margin-top: 5%;
}

.export-buttons p {
    font-size: 24px;
    font-family: "Kalam", cursive !important;
    font-weight: 400;
    letter-spacing: 1px;
}

.export-buttons form {
    display: inline;
}

.export-button img {
    height: 36px;
}

.export-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.export-button:hover {
    transform: scale(1.1);
}

.inactive {
    opacity: 0.5;
    pointer-events: none;
}

#loadingMessage {
    display: none;
    text-align: center;
    margin-top: 18px;
}

@media (max-width: 1068px) {
    .flashcard-container {
        display: block;
    }
    .flashcard-kana-section {
        margin: 25px auto;
    }
}


/* Particles */
.particles-h1 {
    margin: 56px 0 42px;
}

.particles-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.3em;
    border-bottom: 1px solid #ddd;
}

.particles-header h3 {
    margin: 0;
    padding-left: 20px;
}

.particles-header.active-rss .dropdown-arrow {
    transform: rotate(180deg);
}

.particles-header.active-rss .dropdown-arrow {
    transform: rotate(180deg);
}

.particles-header img {
    width: 50px;
    margin-bottom: 3px;
}

.particles-item {
    width: 90%;
    cursor: pointer;
    margin-bottom: 3.75%;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    margin-left: auto;
    font-size: 15px;
}

.particles-header:hover {
    background-color: #f0f0f0;
}

.particles-description {
    font-family: "Quicksand", sans-serif;
}

.particles-h3 {
    margin: 36px 0 0 0 !important;
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 25px;
    overflow-y: auto;
}

.dropdown-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dropdown-content ul li {
    padding: 12px 0;
    font-size: 1.15em;
    border-bottom: 1px solid #ddd;
}

.dropdown-content ul li:last-child {
    border-bottom: none;
}

.dropdown-content ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.dropdown-content ul li a:hover {
    color: #007bff;
    text-decoration: underline;
}

@media (max-width: 368px) {
    .particles-header h3 {
        font-size: 18px;
    }
    .particles-header .dropdown-arrow {
        font-size: 12px;
    }
}

/* Forms */
#form-section {
    background-color: #fff;
    width: 60%;
    height: calc(100vh - 140px);
    margin: auto;
    padding-bottom: 50px;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow-y: auto;
}

.form-container {
    background: white;
    border: 2px solid #000;
    padding: 32px;
    width: 320px;
    box-shadow: 10px 10px 0 #000;
    text-align: center;
    margin: auto;
    top: 175px;
}

.form-margin-top {
    margin-top: 30px !important;
}

.form-container h2 {
    margin: 18px;
}

.input-group {
    margin-bottom: 20px;
    margin-right: 28px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    font-size: 14px;
}

.submit {
    background-color: #ffcc00;
    border: 2px solid #000;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    box-shadow: 3px 3px 0 #000;
    font-size: 16px;
}

.submit:hover {
    background-color: #ffeb3b;
}

.error {
    color: red;
    margin-top: 6px;
}

.green {
    color: green;
    font-weight: 500;
    margin-top: 6px;
}

@media (max-width: 1068px) {
    #form-section {
        width: 100%;
  }
    .form-container {
        padding: 18px;
  }
    .form-container h2 {
        display: none;
  }
}

@media (max-width: 486px) {
    #login-form, #logout-form {
        width: 66%;
    }
}


/* Profile */
.profile-container {
    padding: 75px;
    background-color: #fff;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 15px;
}

.profile-left {
    text-align: center;
}

.profile-icon {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid #ff3b3b;
}

.profile-left h2 {
    position: relative;
    bottom: 50px;
    background-color: #ff3b3b;
    font-size: 19px;
    color: #fff;
    width: 220px;
    padding: 4px 0;
    border-radius: 16px;
}

.profile-details {
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
    line-height: 24px;
}

.profile-details p {
    margin: 4px 0;
}

.profile-details i {
    font-size: 20px;
    position: relative;
    top: 5px;
}

.updateApiKey i {
    font-size: 16px;
    margin-left: 2.5px;
    top: 2.5px;
}

.profile-details strong{
    margin-right: 10px;
}

#apiKey {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

#apiKey::before {
    content: "*****";
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ff3b3b;
    width: 100%;
    height: 100%;
    color: transparent;
}

#apiKey.revealed::before {
    content: "";
    background-color: transparent;
    color: black;
}

@keyframes fadeOut {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.form-columns {
    display: flex;
    gap: 20px;
    width: 750px;
    margin: auto;
}

.form-container-profile {
    flex: 1;
    background-color: #f9f9f9;
    padding: 15px;
    margin: 60px auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-container-profile-profile h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.form-container-profile form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-container-profile label {
    font-size: 14px;
    color: #333;
}

.form-container-profile input {
    width: 66.66%;
    margin: auto;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submit-button {
    width: 66.66%;
    margin: auto;
    padding: 8px;
    font-size: 14px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #c0392b;
}

.profile-footer-container {
    text-align: center;
}

.profile-footer {
    margin: 0 1%;
    font-size: 18px;
    text-decoration: underline;
    color: #666;
    font-weight: bold;
}

@media (max-width: 868px) {
    .form-columns {
        display: block;
        width: 100%;
    }
    .profile-footer {
        margin:0 2%;
    }
}

@media (max-width: 668px) {
    .profile-header {
        flex-direction: column;
        gap: 0;
    }
    .profile-details {
        text-align: center;
    }
}

@media (max-width: 468px) {
    .form-container-profile {
        width: 100%;
    }
    .profile-details span, profile-details strong {
        font-size: 12px;
    }
}


/* Verify */
.verify-container {
    text-align: center;
    margin: 15%;
}
.verify-h {
    font-family: Arial, sans-serif !important;
    color: #333;
    font-size: 2.4rem;
    margin-bottom: 15px;
    font-weight: 400;
}
.verify-p {
    color: #555;
    font-size: 18px;
    margin: 10px 0;
}
.verify-a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}


/* Errors */
.error-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

.error-container {
    text-align: center;
    background-color: #ffffff;
    padding: 30px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.error-container h1 {
    color: #333333;
    font-size: 24px;
    margin-bottom: 10px;
}

.error-container p {
    color: #666666;
    font-size: 16px;
    margin: 8px 0;
}

#timestamp {
    font-size: 12px;
    color: #999999;
    margin-top: 15px;
}

.error-container button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ff5a5a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.error-container button:hover {
    background-color: #ff3b3b;
}
