/* reset needed for browsers */
* {
    margin: 0
}

@font-face {
    font-family: 'WickedFont';
    src: url("NRFTW-font.p.otf");
}

/* Might need to do this due to importing fa.css(font awesome) */
/* div {
    display: block;
} */

.black-bars {
    /* unsure what position it should be to stay in the viewport */
    position: fixed; 
    content: ""; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: -3; /*make it behind the background image */
}

.background-image {
    position:fixed;
    top: 0;
    left: 2%;
    width: 96vw;
    height: 100%;
    background-image: url('Media/Images/Backgrounds/Possible_background_01.jpg');
    background-size: cover;
    /* background-size: contain */
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* makes it behind the body */

}

.disclaimer {
    position: relative;
    /* background-color: rgb(255, 255, 255);  */
    color: whitesmoke;
    background-color: rgb(1, 1, 1);
    box-sizing: border-box;
    border-style: solid;
    border-width: thick;
    text-align: center;
    font-size: x-large;
    opacity: .85;
    top: 0%;
    left: 2vw;
    right: 0%;
    width: 96vw;
    /* height: 17vw; let's try padding instead*/
    padding-bottom: 2%; 
    line-height: 1.5;
    z-index: 1;
}

/*---------------------------------*/
/*---------- MODAL ELEMENT --------*/
/*---------------------------------*/
.modal {
    position: absolute;
    
    top: 14%;
    left: 2.1vw;
    padding-left: 10px;

    height: 70vh;
    min-height: 800px;
    width: 60vw;
    min-width: 800px;
    max-width: 1000px;
    box-sizing: border-box;

    background-color: #0d0c0c;
    color: rgb(255, 255, 255);
    /* font-family: "Marcellus SC", 'fallback', Helvetica, Arial, sans-serif; */
    font-family: WickedFont;
    border-color: #0d0c0c;
}

.modal-content {
    /* background-image: url("Media/Images/Modal/blue-background-01.jpg"); */
    /* display: block; */
    width: 100%;
    height: 100%;
    overflow: scroll;
}

.modal video {
    border-style: solid;
    border-width: 2px;
    border-color: #000000;
    width: 90%;
    max-width: 720px;
    margin-left: calc((100% - min(90%, 720px)) / 2);
    height: auto;

    margin-top: 10px;
}

.modal-details {
    /* position: relative; */
    /* background-color: rgb(239, 232, 232); */
    /* background-image: url("Media/Images/Modal/2218.jpg"); */
    width: 100%;
    height: auto;

    margin-top: .5rem;

    /* IMPORTANT: CSS grid stuff */
    display: grid;
    grid-template-rows: 70px 70px 70px;
    grid-template-columns: 48% calc(52% - 1.2rem);
    column-gap: 1.2rem;
    row-gap: 2rem;
    /* grid end */

    /* font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; */
    font-family: WickedFont;

    text-shadow: none!Important;
    font-size: 16px;
}

.modal-details .detail-cell {
    display: grid;
    grid-template-rows: 70px;
    grid-template-columns: 140px calc(100% - 200px);
    column-gap: .5rem;
    /* shift items to the top of the cell */
    align-items: start; 

    max-width: 100%;
    
}

.detail-cell .detail-category {
    display: flex;
    align-items: center;
    vertical-align: top;

    font-size: larger;
    font-weight: 500px;
    font-family: WickedFont;
}

.detail-cell .detail-category img {
    width: 40px;
}

.detail-cell .detail-value {
    /* position: absolute; */
    
    font-size: 30px;
    font-weight: 700px;
    vertical-align: top;
    margin-left: 1rem;
    /* font-family: "Marcellus SC", 'fallback', Helvetica, Arial, sans-serif; */
    font-family: WickedFont;
}

/* This is just me being fussy */
#focus {
    margin-left: 2.4rem;
}

#weapon {
    margin-left: 1.3rem;
}

hr {
    width: 99%;
}

.modal::backdrop {
    background: rgb(0 0 0 / .5);
}
/* fuss done */
/* 
.description {
    width: 100%;
    height: 100%;
    height: 200px;
    color:antiquewhite;

    margin-top: .5rem;
    line-height: 2rem;

    font-size: x-large;
} */

/* Experimental Modal Layout */
.description {
    width: 100%;
    height: auto;
    text-align: center;
    color:antiquewhite;

    margin-top: .3rem;
    line-height: 2rem;

    font-size: x-large;
}
/*---------------------------------*/
/*------------ MODAL END ----------*/
/*---------------------------------*/


.tool-bar {
    overflow: visible;
    position: sticky;
    z-index: 3;
    background-color: rgb(0, 0, 0);
    /* background-image: url('Images/Toolbar-background/pexels-pixabay-57461.jpg'); */
    box-sizing: content-box;
    border-style: none;
    border-width: 0px thick 0px thick;
    border-color: whitesmoke;
    font-family: Arial, Helvetica, sans-serif;

    /* FLEX SETTINGS */
    display: flex; /* Use flexbox to easily align items */
    flex-wrap: wrap; /* will have multiple lines/buttons */
    align-items: center; /* Vertically center items */
    justify-content: flex-end; /* Align items to the right */
    row-gap: 1rem;
    /* FLEX SETTINGS END */

    width: 96vw;
    min-height: 30px;
    height: auto; /* THIS MIGHT NOT WORK FOR MULTIPLE ROWS*/
    top: 0;
    left: 2vw;
    padding: .7vh 0 .7vh 0;

}

.tool-bar input[type=text] {
    color: black;
    background-color: rgb(240, 248, 255);
    min-height: inherit;
    /* height: inherit;  */
    display: inline;
    
    box-sizing: border-box;
    border: none;

    overflow: visible;
    white-space: nowrap;
    float: right;
    font-size: 18px;
    font-weight: 500;
    margin-right: 2rem;

    font-family: WickedFont;
}

/*------------------------------------*/
/*---------- DROPDOWN ELEMENT --------*/
/*------------------------------------*/

.dropdown {
    position: relative;
    display: inline;
    z-index: 4; /* makes sure it displays over toolbar */

    box-sizing: border-box;

    margin-right: 2rem;

    min-height: inherit;
    /* height: inherit; */

    font-family: WickedFont;
}

.dropbutton-1 {

    background-color: whitesmoke;
    border-style:none;        

    /* text settings */
    color: rgb(240, 165, 0);
    font-weight:700;
    overflow: hidden;
    white-space: nowrap;
    font-size: large;
    text-align: center;

    /* size settings */
    min-height: inherit;
    /* height: inherit; */
    width: auto;
    box-sizing: content-box;

    /* positioning settings */
    float: right;
    padding: 0 1rem 0 .7rem;
    
    font-family: WickedFont;

    cursor: pointer;
}

/* .hidden {
    display: none !important;
} */

/* Changing this to a dialog */
.dropdown .dropdown-content{
    z-index: 5;
    position: absolute;
    top: 100%;
    left: 0;

    display: block;
    background-color: rgb(0 0 0);
    width: 155px;
    height: auto;
    box-shadow: 2px 2px 5px black;
    
    justify-content: center;

    /* Transition Settings */
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
    pointer-events: none;

    /* <dialog> settings to normalize it*/
    padding: 0;
    border: 0;

}

.dropdown-content label:first-child {
    padding-top: 15px;
}

.dropdown-content label:last-child {
    padding-bottom: 15px;
}

.dropdown-content label{
    display: flex;
    align-items: center;
    cursor: pointer;
    min-height: 20px;
    padding: 8px 10px;
    width: 100%; /* so it spans the full line of the checkbox */

    color: rgb(239, 230, 230);
    /* font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; */
    
    font-family: WickedFont;
    font-size: 20px;
    font-weight: 400;

    user-select: text;
}

.dropdown-content input[type="checkbox"] {
    margin-right: 10px;
    display: block;
    /*
    Remove the default appearance.
    */
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;

    width: 16px;
    height: 16px;
    /* creates a black edge/rim */
    border: 2px solid rgb(255, 255, 255);
    /* creates a white, inset interior/padding */
    box-shadow: inset 0 0 0 1px rgb(255, 255, 255);
    /* makes it all white when not filled in */
    background-color: white;
}

/* changes the checkbox appearance when it's been marked */
.dropdown-content input[type="checkbox"]:checked {
    /* keeps the inside black, borders black, but the area between the 2 white */
    background-color: rgb(240, 84, 0);

}

.dropdown:hover .dropdown-content,
.dropdown-content:hover
{ 
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* FOR MOBILE FUNCTIONALITY */
.dropdown-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/*------------------------------------*/
/*----------- DROPDOWN END -----------*/
/*------------------------------------*/


.loader-container {
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;

    position: fixed;
    left: calc((100vw - 150px) / 2);
    top: 50vh;
}

.loader {
    display: none;
    --size: 150px;
    width: var(--size);
    --b: 8px; 
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 1px;
    background: conic-gradient(#0000 10%,#f03355) content-box;
    -webkit-mask:
      repeating-conic-gradient(#0000 0deg,#000 1deg 20deg,#0000 21deg 36deg),
      radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b)));
    -webkit-mask-composite: destination-in;
            mask-composite: intersect;
    animation:l4 1s infinite steps(10);
  }
  @keyframes l4 {to{transform: rotate(1turn)}}

.content-area {
    position: relative;
    z-index: 1;
    /* background-color: rgb(216, 216, 216); */
    
    border-width: .75rem;
    border-style: solid;
    border-color: rgb(0, 0, 0);
    box-sizing: border-box; /* this keeps the borders and padding as calculations for the box */

    min-height: 30vh;
    /* IMPORTANT: CSS grid stuff */
    display: grid;
    /* grid-template-rows: repeat(auto-fit, 300px); */
    grid-auto-rows: 220px;
    grid-template-columns: repeat(auto-fit, 180px);
    justify-content: center;
    justify-items: center;
    align-items: normal;
    gap: 2rem;
    /* grid end */

    margin-left: 1.5vw;
    width: 97vw;
    /* padding: 2%; */
    padding-top: 4%;
    padding-bottom: 2%;
    padding-left: 10px;
    padding-right: 10px;
    

    /* transparency setting for debugging it vs the background stuff */
    opacity: .9;

    /* TODO: testing dark mode */
    background-color: rgb(1,1,1);
    /* color: antiquewhite; */
}

.icon {
    display: block;
}

figure {
    /* display: inherit; */
    max-width: 170px;
    max-height: 170px;
    /* need all 3 in conjunction to make sure word breaks occur neatly */
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    text-align: center;
    
    
    color: antiquewhite;
}


/* Every icon's/figure's image will be the same size so this is perfect */
figure img{
    /* display: inline-block; */
    width: 150px;  /* If I set the width & height to 100% that tells it to use the full 6vw/vh of the viewport*/
    height: auto; /* keep at auto that way it keeps the aspect ratio */
    max-width: 150px;
    max-height: 150px;
    border-style: solid;
    border-width: .25rem;
    
}

figcaption {
    max-width: 170px;
    max-height: 70px;
    overflow: auto;
    color: #fe9834;
    font-weight: 600;
    font-size: large;
    font-style: italic;
    font-family: "Marcellus SC", 'fallback', Helvetica, Arial, sans-serif;
}
