/* defined main color palette */

:root{
    transition: 0.5s;
    --isDarkMode:false;
    --primary: #2962ff;
    --primary-light: #768fff;
    --primary-light-hover: #b6e3ff;
    --primary-dark: #0039cb;
    --primary-darker: #002171;
    --accent: #c51162;
    --accent-light: #fd558f;
    --accent-dark: #8e0038;
    --shadow-color: #a0a0a0;
    --text-color: #444444;
    --text-color-on-primary: #ffffff;
    --body-background: #f3f3f3;
    --header-height: 60px;
    --header-height-double: 120px;
    --pop-up-width: 300px;
}

/* defined style of icons used throughout the app */
.material-symbols-outlined {
    font-weight: 600 !important;
    color: white;
}

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

/* basic page styling */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    user-select: none;
}
body {
    background-color: var(--body-background);
}

a {
    text-decoration: none;
}

/* styling the upper navigation header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    box-shadow: 0 0 5px var(--shadow-color);
    background-color: var(--text-color-on-primary);
}

header nav {
    height: 60px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 350px;
    text-align: center;
}

#logo-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 60px;
}
#logo-icon {
    margin-left: 18px;
    width: 32px;
    height: auto;
}

#logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-left: 6px;
}

nav {
    height: 100%;
}

#logged-nav-list {
    height: 100%;
    list-style-type: none;
}

#logged-nav-list li {
    height: 100%;
    display: inline-block;
    padding: 18px 30px 15px;
    transition: 0.5s;
    align-self: center;
    align-content: center;
}

#logged-nav-list li a {
    font-size: 16px;
    color: var(--text-color);
    text-transform: uppercase;
}

#logged-nav-list li:hover {
    background-color: var(--primary-light-hover);
}

#logged-nav-list li:active {
    background-color: var(--primary-light);
    transition: 0s;
}

.current {
    border-bottom: 2px solid var(--primary);
}

.current a {
    color: var(--primary) !important;
}

#dark-mode-button .material-symbols-outlined,
#user-button .material-symbols-outlined {
    color: var(--primary);
}



#log-out-group {
    height: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.log-out-group-button {
    color: white;
    border-radius: 10px;
    transition: .5s;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 7px;
    margin-right: 10px;
}

#log-out-button,
#sign-in-button {
    background-color: var(--primary);
}

.log-out-group-button:hover {
    background-color: var(--primary-light-hover);
}

.log-out-group-button:active {
    background-color: var(--primary-light);
    transition: 0s;
}

#log-out-button:hover,
#sign-in-button:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}


#log-out-button:active,
#sign-in-button:active {
    background-color: var(--primary-darker);
    border-color: var(--primary-darker);
    transition: 0s;
}

label {
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
}

.pop-up-form {
    width: var(--pop-up-width);
    padding: 15px 15px 0;
    background-color: var(--text-color-on-primary);
    position: fixed;
    display: none;
    z-index: 110;
    box-shadow: 0 0 20px var(--shadow-color);
    animation: fadeIn 0.5s;
}

#sign-in-form {
    top: 0;
    right: 0;
}

#add-card-form {
    bottom: 0;
    right: 0;
}

#edit-card-form {
    bottom: 0;
    left: 0;
}

input[type=email],
input[type=password],
input[type=submit],
input[type=button],
input[type=text],
input[type=number]{
    width: 100%;
    padding: 15px;
    margin: 5px 0 15px 0;
}

input[type=submit],
input[type=button] {
    color: var(--text-color-on-primary);
    text-align: center;
    border: none;
    transition: 0.5s;
}

input[type=submit] {
    background-color: var(--primary);
}

input[type=submit]:hover {
    background-color: var(--primary-dark);
}

input[type=submit]:active {
    background-color: var(--primary-darker);
    transition: 0s;
}

input[type=button] {
    background-color: var(--accent-light);
}

input[type=button]:hover {
    background-color: var(--accent);
}

input[type=button]:active {
    background-color: var(--accent-dark);
    transition: 0s;
}

.required-field {
    color: red;
}

.server-output {
    color: red;
    font-size: 14px !important;
}

#sign-up-form li {
    font-size: 15px;
    font-style: italic;
    color: var(--text-color);
}

#sign-up-form {
    max-width: 400px;
    margin: 10px 0;
}

.animate-character
{
    text-transform: uppercase;
    background-image: linear-gradient(
            -225deg,
            hsl(0, 100%, 70%) 0%,
            hsl(30, 100%, 70%) 9%,
            hsl(60, 100%, 70%) 18%,
            hsl(90, 100%, 70%) 27%,
            hsl(120, 100%, 70%) 36%,
            hsl(150, 100%, 70%) 45%,
            hsl(180, 100%, 70%) 54%,
            hsl(210, 100%, 70%) 63%,
            hsl(240, 100%, 70%) 72%,
            hsl(270, 100%, 70%) 81%,
            hsl(300, 100%, 70%) 90%,
            hsl(330, 100%, 70%) 95%,
            hsl(360, 100%, 70%) 100%
    );
    background-clip: border-box;
    background-size: 200% auto;
    color: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textClip 4s ease-in-out infinite;
    display: inline-block;
    font-size: 180px;
}

@keyframes textClip {
    to {
        background-position: 200% center;
    }
}





#intro-div {
    width: 100%;
    height: 100vh;
    background-image: url("intro-background.jpg");
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content:center;
    flex-direction: column;
}

@supports ( -webkit-touch-callout : none) {
    .selector {
        background-attachment:scroll
    }
}

@supports not ( -webkit-touch-callout : none) {
    .selector {
        background-attachment: fixed;
    }
}

#intro-div p {
    text-align: center;
    font-size: 40px;
    color: white;
    text-shadow: 0 0 10px black;
}

#intro-buttons {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#intro-buttons div {
    padding: 15px 25px;
    margin: 0 15px 30px;
    background-color: var(--text-color-on-primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 0 10px black;
    cursor: pointer;
}


#intro-buttons div:hover {
    transition: 0.5s;
    background-color: var(--primary-light-hover);
}

#intro-buttons div:active {
    transition: 0s;
    background-color: var(--primary-light);
}

#intro-div-two {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content:center;
    flex-direction: column;
}

label[for=gdpr-input-sign-up] {
    font-weight: 400;
}

.logged-main {
    position: relative;
    top: var(--header-height);
    display: flex;
    justify-content: center;
    padding: 10px;
}

/* styling the boxed cards */

.cards-and-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.controls {
}

#control-form label {
    display: inline-block;
}


.boxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 900px;
    justify-content: center;
}

.cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 1;
}



#box1 {
    background: linear-gradient(135deg, rgb(0, 82, 255) 0%, rgb(0, 37, 111) 100%);
}
#box2 {
    background: linear-gradient(135deg, rgb(132, 0, 255) 0%, rgb(53, 0, 101) 100%);
}
#box3 {
    background: linear-gradient(135deg, rgb(255, 0, 107) 0%, rgb(111, 0, 46) 100%);
}

#box3 input {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: calc(100% - 10px);
    margin: 0 5px 0 5px;
}
#box3 label {
    color: white;
}

#box4 {
    background: linear-gradient(135deg, rgb(255, 129, 0) 0%, rgb(113, 58, 0) 100%);
}

.card-box {
    background: linear-gradient(135deg, rgb(61, 103, 231) 0%, rgb(26, 44, 99) 100%);
}

.box {
    width: 350px;
    height: 300px;
    box-shadow: 0 0 5px var(--shadow-color);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    justify-content: space-between;
    margin: 10px;
}

.test-box {
    height: min-content;
}

#reveal-button {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
}


.box-heading {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-size: 20px;
    padding: 0 10px;
    font-weight: 600;
    text-overflow: clip;
}

.box-main {
    padding: 10px;
}

.box-main p {
    color: white;
    font-size: 24px;
}

.box-main p:first-of-type {
    font-size: 50px;
    font-weight: bold;
}
.box-button {
    width: 100%;
    padding: 10px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    border: none;
    font-size: 16px;
}

.card-button {
    padding: 10px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-button span {
    margin: 0 10px;
}

.box-button .home-button-description {
    display: inline;
    color: white;
}

.box-button:hover,
.card-button:hover,
#reveal-button:hover{
    transition: 0.5s;
    background-color: rgba(255, 255, 255, 0.3);
}

.box-button:active,
.card-button:active,
#reveal-button:active{
    transition: 0s;
    background-color: rgba(255, 255, 255, 0.5);
}

.feedback-description {
    color: white;
    padding: 5px 10px;
}

#positive-feedback {
    visibility: hidden;
}

#negative-feedback {
    visibility: hidden;
}

.upper-elements {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.next-review {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.question,
.answer {
    color: white;
    margin: 10px;
    text-align: center;
    overflow: auto;
}


.question {
    font-style: italic;
    height: 50px;
}

.test-box .question {
    height: min-content;
}

.answer {
    height: 150px;
    font-weight: 800;
}

.test-box .answer {
    height: min-content;
}

#how-was-it {
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0);
}

#test-answer {
    color: rgba(255, 255, 255, 0);;
}

.no-data-div-study,
.no-data-div-cards {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 200px;
    z-index: 1;
    color: var(--text-color);
}


/* styling the plus button used to display form to create a new card */
#plus-button,
#edit-button {
    position: fixed;
    bottom: 0;
    width: 50px;
    height: 50px;
    margin: 15px;
    border: none;
    background-color: var(--accent-light);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px var(--shadow-color);
    z-index: 101;
}

#plus-button {
    right: 0;
}

#edit-button {
    left: 0;
}

#plus-button:hover,
#edit-button:hover{
    transition: 0.5s;
    background-color: var(--accent);
}

#plus-button:active,
#edit-button:active{
    transition: 0s;
    background-color: var(--accent-dark);
}
.id-button {
    cursor: pointer;
}

.tooltip {
    position: relative;
}

.tooltip-text {
    position: absolute;
    top: 0;
    left: 100%;
    transform: translateX(-50%);
    background-color: var(--text-color);
    color: var(--text-color-on-primary);
    white-space: nowrap;
    padding: 10px 15px;
    border-radius: 7px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}



/*@media (pointer:coarse) {*/
/*    .tooltip-text{*/
/*        display: none;*/
/*    }*/
/*}*/

.id-button:hover .tooltip-text{
    top: -130%;
    left: 100%;
    visibility: visible;
    opacity: 1;
    cursor: pointer;
}


.pagination {
    margin-top: 20px;
    margin-bottom: 70px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 1;
}

.pagination p {
max-width: 900px;
}

.pagination-number {
    padding: 10px;
    color: var(--text-color);

}

.pagination-number:visited {
    color: var(--text-color);
}

.current-page,
.current-page:visited{
    color: var(--accent);
    font-weight: bold;
}


/* styling the pop up displaying the username (shown upon appropriate nav button click) */
#user-pop-up {
    width: 100%;
    position: fixed;
    top: 0;
    height: 60px;
    padding: 15px 0;
    text-align: center;
    background-color: var(--primary);
    color: var(--text-color-on-primary);
    z-index: 115;
    box-shadow: 0 0 10px var(--shadow-color);
    display: none;
    animation: fadeIn 0.5s;
}

/* media queries */
@media only screen and (max-width: 900px) {
    .animate-character {
        font-size: 100px;
    }
}

@media only screen and (max-width: 720px){
    :root {
        --pop-up-width: 100%;
    }

    .header-with-nav {
        height: var(--header-height-double);
    }

    .logged-main {
        top: var(--header-height-double);
    }
}

@media only screen and (max-width: 480px) {
    #intro-div p {
        font-size: 30px;
    }

    .animate-character {
        font-size: 60px;
    }
}

/* styles for print */
@media print {
    @page {
        size: auto;
        margin: 10px;
    }

    nav {
        display: none;
    }

    #log-out-group {
        display: none;
    }

    .box {
        background-color: white;
    }

    #plus-button {
        display: none;
    }

    .animate-character {
        -webkit-text-fill-color: black;
        font-size: 100px;
    }

    #intro-div p {
        color: black;
        text-shadow: none;
    }
}