:root {
    --font-family: consolas;
    overflow-wrap: break-word;
    box-sizing: border-box;
    margin: 0;
}

.toggle{
    display: flow-root;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    float: right;
    width: 60px;
    height: 30px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 30px;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

body{
    font-family: var(--font-family);
    background: var(--body-background);
    color: var(--body-color);
}

.sort {
    text-align: center;
    margin: auto;
    width: 80%;
    padding: 5px;
}
.sort .item {
    min-width: 75px;
}

.item {
    border-radius: 50px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-family);
    color: var(--body-color);
    text-decoration: none;
    background-color: var(--grid-background);
    margin-bottom: 10px;
    display: block;
    box-shadow: 0 0 1em var(--grid-shadow);
    transition: all .2s ease-in-out;
    

}

.item p {
    margin-left: 20px;
    width: 250px;
    height: 140px;
    overflow-x: hidden;
    overflow-y: auto;
}

.item:hover {
    box-shadow: 0 0 1em var(--accent-color);
}

.content-completed {
    background-color: var(--color-completed);
}

.item img {
    border-radius: 50px;
    max-width: 100%;
    max-height: 100%;
}

div img {
    margin: auto;
}

footer {
    margin: 20px 0;
}

h1 {
    font-size: xx-large;
    color: var(--accent-color);
}

h2, h3 {
    font-size: large;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0;
}

.button, input[type=button], input[type=submit] {
    display: block;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: bold;
    background-color: lightgray;
    border: none;
    margin: 2px 0;
    padding: 5px 10px;
    color: #3c4e7a;
    text-decoration: none;
    text-align: center;
    transition: all .2s ease-in-out;
}

input[type=button], input[type=submit] {
    width: 100%;
}

.button:hover, input[type=button]:hover, input[type=submit]:hover {
    background-color: var(--body-color);
    color: var(--accent-color);
    border: none;
    cursor: crosshair;
    scale: 1.1;
}

input[type=text], input[type=date] {
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 15px;
}

input[type=checkbox] {
    width: 15px;
    height: 15px;
}

textarea {
    display: block;
    height:150px;
    width: 95%;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 15px;
}

.full-center {
    max-width: 80%;
    margin: 20px auto;
    padding: 5px;
}

div.grid-item {
    display: block;
    padding: 10px;
    margin-left: 15px;
}

.strike {
    text-decoration-line: line-through;
}

label {
    height: 30px;
    margin-bottom: 10px;
}
.label {
    min-width: 130px;
}
@media only screen and (min-width: 600px) {

    .sort .item {
        padding: 15px;
    }

    .button, input[type=button], input[type=submit] {
        display: inline;
    }

    input[type=button], input[type=submit] {
        width: auto;
    }

    .full-center {
        width: 100%;
        margin: 0 auto;
    }

    .center {
        margin: auto;
        padding: 10px;
    }

    .content-grid {
        display: grid;
    }

    .columns3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .columns4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .columns5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .columns6 {
        grid-template-columns: repeat(6, 1fr);
    }

    .grid-item-4 {
        grid-column: span 4;
    }

    .grid-item-3 {
        grid-column: span 3;
    }

    .grid-item-2 {
        grid-column: span 2;
    }

    .grid-item-3row {
        grid-row: 1 / span 3;
    }
}


.flip-card {
    background-color: transparent;
    width: 300px;
    height: 225px;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
    color: black;
}

/* Style the back side */
.flip-card-back {
    transform: rotateY(180deg);
}

.flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 30px;
}



