@import url('https://fonts.googleapis.com/css2?family=Sniglet&display=swap');

:root {
    --transparent-text: rgb(32, 32, 32);
    --bg: rgb(161, 161, 189);
    font-size: 20px;
}

/*
    focus none for all elements
*/


html {
    overflow: clip;
}

/*
html *{
    border: 2px green solid;
}
*/

body {
    background-color: var(--bg);
}

body * {
    font-family: "Sniglet", system-ui;
    font-weight: 400;
    font-style: normal;
}

button {
    border: none;
    outline: none;
    border-radius: 12px;
}

button:hover {
    background-color: #6e9ccd;
}

h2 {
    margin-left:10px;
}

h3  {
    margin-left:25px;
}

.card_in_nav:hover {
    cursor: pointer;
}

.unsorted_cards {
    min-height: 50px;
}

.unsorted_cards:last-child {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card_in_nav {
    margin-left:40px;
    padding: 5px;

    font-size: 0.9rem;
    border: solid 1px rgba(20,20,20,12%);
    border-radius: 12px;
}

.folder_details {
    display: flex;
    flex-direction: column;
}

.space_between_card {
    width: 100%;
    height: 5px;
}

.folder {
    font-size: 1rem;
    padding-left: 10px;
}

h5  {
    margin-left:55px;
}


a {
    text-decoration: none;
    padding: 10px;

}


.logout_button {
    border: none;
    cursor: pointer;
    background-color: var(--bg);
}

nav a, nav button {
    font-size: 1rem;
    color: rgb(85, 26, 139);
}



.card_nav {
    left: 0;
    border: 1px solid black;
    border-radius: 20px;
    min-width: 15%;
    max-width: 15%;
    max-height: 90%;
    user-select: none;
    overflow-y: auto;

}

.singular_card {
    border: 1px solid black;
    height: 80%;
    width: 40%;

    border-radius: 12px;


    overflow-y: auto;
    overflow-x: clip;
}

.singular_card * {
    background-color: var(--bg);
}

.singular_card::-webkit-scrollbar {
    display: none;
}

.card_header {
    display: flex;
    height: fit-content;
    justify-content: space-evenly;
    align-items: center;
    padding: 12px;

    border-bottom: black 1px solid;

    overflow: hidden;

    width: 100%;
    box-sizing: border-box;
    gap: 20px;
}

.card_image {
    border-radius: 18px;
    height: auto;
    max-width: 100%;
    object-fit: contain;

    cursor: pointer;
}

.card_image_container {
    display: flex;
    justify-content: center;
    align-content: center;

    /* won't shrink */
    flex-shrink: 0;
    max-width: 50%;
}

.card_margin {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: start;
}

.card_titles {
    display: flex;
    flex-direction: column;
    align-items: start;
    align-self: start;

    flex: 1;
    /* long words no longer go over the container */
    min-width: 0;
}

.card_type_select {
    font-style: italic;
    color: var(--transparent-text);
    opacity: 1;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    border: none;
    outline: none;

    flex-grow: 0.9;

    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    cursor: pointer;
}

.card_type_select option {
    font-style: italic;
}


#card_container {
    height: 100vh;
    display: flex;
    flex-direction: row;
    overflow: clip;
    box-sizing: border-box;

    gap: 2px;
}

.card_name {
    width: 100%;
    font-size: 30px;
    padding: 0;

    max-height: 100px;

    box-sizing: border-box;

    white-space: normal;
    word-wrap: break-word;

    field-sizing: content;

    resize: none;
    overflow-y: auto;

}

.section {
    display: flex;
    flex-direction: column;
}

.section_name {
    font-size: 24px;
    margin-left: 5px;
}

.section_content {
    font-size: 16px;
    field-sizing: content; /* box is exactly as big as its content */
    resize: none;
}


.add_section {
    text-align: center;
    width: 100%;
    border: 1px black solid;
    cursor: pointer;
}

.section_content, .section_name {
}

.section_content::placeholder, .section_name::placeholder, .card_name::placeholder {
    color: var(--transparent-text);
    font-style: italic;
}

.card_name::placeholder {
    text-decoration: underline;
}

input, textarea, input:focus, textarea:focus{
    border: none;
    outline: none;
}


textarea {
    padding: 20px
}

.section_name_row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.basic_row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.basic_column {
    display: flex;
    flex-direction: column;
    align-items: start;
}


.nav_separator {
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(5, 5, 5, 0.65), transparent);
    width: 100%;
}