
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

a{
    text-decoration: none;
    color:inherit
}

:root{
    --smoothBrown :rgb(191, 173, 163, 0.3);
}

body{
    height:100svh;
    background-color: rgb(222, 222, 222, 0.2);
    
}

.main-wrapper{
    display:grid;
    grid-template: 0.5fr 1fr 4fr 0.5fr / 1fr 4fr 1fr;
    height: 100%;

}
.header{
    grid-column: 1 / -1;
}


.add-BookContainer{
    grid-area: 2 / 1 / 2/ -1;
    justify-items: center;
    color:rgb(99, 98, 96);
    align-self: centers
}

.header{
    display:flex;
    justify-content: space-between;
    background-color:rgb(240, 224, 192, 0.4);
    height: fit-content;
    nav>ul{
        list-style: none;
        display:flex;
        gap:3rem;
    }

    nav{
        margin-right:2rem;
    }



}



.icons{
    width:40px;
    height:40px;
    transition: 0.3s ease-in-out;
}

.icons:hover{
    transform: scale(1.4) ;
}

.page-brand{
    display:flex;
    align-items: center;
    gap:1rem;
    font-size: large;
    font-weight: bold;
    color: #d99a3c;

    img{
        filter: invert(98%) sepia(4%) saturate(7479%) hue-rotate(317deg) brightness(88%) contrast(96%);
    }
}

.dialogButtonContainer{
    display: flex;
    justify-content: center;
    gap:1rem;
    align-items: center;
    flex-wrap: wrap;
    margin:2px;
    align-self: center;
    p{
      text-align: center;
        font-size:1.6em;;
        font-family: cursive;

    }
}

.addBook-btn,.closeDialog-btn, .submit-form-btn{
    font:bold;
    font-size: medium;
    font-weight: 500;
    height: 2rem;
    border-radius: 20px;

    background-color:#d9ac3cdf;
    color: rgb(255, 255, 255);
    font-family:Georgia, 'Times New Roman', Times, serif;
    padding:1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;}

.submit-form-btn:hover, .addBook-btn:hover, .closeDialog-btn:hover{
    background-color:rgba(139, 166, 233, 0.5);
    color:black;
}

#addBookDialog{
    width:500px;
    height: fit-content;
    border:2px dotted brown;

    .closeDialog-btn{
        border-radius: 100px;
        font-size:small;
        width: 1rem;
        justify-self: flex-end;
        margin-left: auto;
        border-color: aliceblue;
    }
 
}

#addBookDialog[open]  {
  animation: fadein 0.4s ease-out forwards;
}
#addBookDialog[close]{
  animation: fadeout 0.4s ease-in backwards;
}


@keyframes fadein {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    scale:(1);
  }
  to {
    opacity: 0;
    scale:(0.45);
  }
}


   
.addBookForm{
    display: flex;
    flex-direction: column;
    font-size: large;
   
    gap:5px;
    font-family: monospace;
    legend{
        align-self: center;
    }

    .book-status-radio{
      border-color:brown ;

    }

    
}

.submit-form-btn{
    font-family:Georgia, 'Times New Roman', Times, serif;
    text-shadow: 10px grey;
    letter-spacing: 0.1em;
    font-size: larger;
    
}

.main{
    grid-column: 1 / span 3 ;
    .main-label{
    text-align: center;
    color: rgb(111, 116, 116);  
      
    }

    .main-label{
        font-size: 2.2rem;
        font-weight: bolder;
        color:#523f2b
    }

    .mainContent{
        justify-content: start;
        display: grid;
        background-color: rgb(233, 206, 206, 0.2);
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap:1rem;

    }
}






li{
    list-style: none;
}

.card{
    background-color: var(--smoothBrown);
    display:flex;
    font-size: 1.5rem;
    font-family: monospace;
    flex-direction: column;
    gap:1rem;
    justify-content: flex-start;
    padding:1rem;
    border-radius: 2rem;
    border-left: .5rem solid #77b684;
    margin:1rem;
    width: max(340px, 15%);
    background-image: url("icons/bookbg.jpg");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    
    h3{
        font-size: 2rem;
        align-self: center;
        color: #000000;
    }
    .book-delete-btn{
      display:flex;
      gap:1rem;
        width:fit-content;
        align-self: flex-end;
        margin:0 2rem 2rem 0;


    }
   
    .bookStateP{
        background: linear-gradient(to right, #ff0000, #ff7f00, #0000ff, #4b0082, #8b00ff, #ff0000);
        background-clip: text;
        color: transparent;
        opacity: 1;
        transition:  2s ease-in-out all;
    }

  

}

.book-delete-btn{

    border:none;
    background-color: transparent;
    .deleteicon{
        width:3rem;
        filter: invert(71%) sepia(89%) saturate(820%) hue-rotate(336deg) brightness(91%) contrast(87%);
    
    }

}

.footer{
    width: 100%;
    height: auto;
    align-self: flex-end;
    grid-column: 1/ -1;
    background-color: #d6c4b1;
    display:flex;
    justify-content: center;
    align-items: center;
    color:#6d4e2ff8;
    font-family: monospace;
    transition: 0.6s all ease-in-out;


    
    .footer-link{
        display:flex;
        transition: 0.2s all ease-in-out;
        gap:0.3rem;
        transition: 0.2s all ease-out;

        .icons.github {
            transition: 0.2s all ease-out;
        }

        .icons.github:hover{
            transform: rotate(360deg);
        }
    }

    .footer-link:hover{
        transform: scale(1.3);
        
    }
}s





input, input[type="radio"] {
  border: 2px solid #ccc;
  transition: border-color 0.3s all ease; 
}

input:hover, input[type="radio"]:hover, input[type="radio"]:focus {
    accent-color: #a76851;
    border-color: rgba(207, 42, 222, 0.5);;
}

input:user-invalid, input[type="radio"]:user-invalid{
    border-color: rgb(221, 31, 31);
}



.bookInfoContainer{
  margin-left: 2rem;
}


.closeDialog-btn{
  align-self: flex-end;
}
