/*fonts*/
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/*icons*/
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css);

/*Free Styled Code*/

.fa-d-and-d {
    color: red;
    font-size: 20px;
}

/* Hiding the scroll bar for Safari, Chrome, IE, Edge Firefox, and Opera */
::-webkit-scrollbar {
    display: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

iframe {
    width: 384px;
    height: 216px;
    display: block;
    margin: 0 auto;
    border-width: 10px;
    border-color: #000000;
}

.fa-dice-d20 {
    color: rgb(123, 117, 142);
}

hr {
    background-color: rgb(123, 117, 142, 0.8);
    border: none;
    height: 1px;
}

h2 {
    font-family: Garamond;
    font-size: 25px;
    text-align: center;
    color: #6A0B23;
    padding: 0.625rem;
}

p {
    line-height: 1.5;
    color: #413C58;
    text-align: center;
    font-size: large;
    padding: 0.625rem;
}

body {
    font-family: 'Montserrat';
    background: linear-gradient(#ffffff, #5bbb98);
    background-size: 100% 100%;
    position: relitive;
    padding-bottom: 50px;
}

.nav-links,
.logo {
    text-decoration: none;
    color: #6A0B23;
    font-family: Garamond;
    font-size: 25px;
    font-weight: 800;
}

/*Teacher tutorial*/

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.navbar {
    font-size: 1rem;
    background-color: #F2E7C9;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.65rem;
}

.main-nav {
    list-style-type: none;
    display: none;
}

.nav-links,
.logo,
.fa-bars {
    text-decoration: none;
    color: #413C58;
}

.Logo {
    display: inline-block;
    font-size: 1.375rem;
    font-style: italic;
    font-weight: 800;
    margin-top: 0.625rem;
    margin-left: 1.25rem;

}

.Logo+h5 {
    margin-left: 1.25rem;
    font-weight: 300;
    font-style: italic;
}

.Logo .nav-links {
    transition: all .3s ease;
}

.navbar-toggle {
    position: absolute;
    top: .625rem;
    right: 1.25rem;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.8);
    font-size: 1.5rem;
}

#chkToggle {
    display: none;
}

#chkToggle:checked+ul.main-nav {
    display: block;
}

/* list items*/
ul.main-nav {
    padding-left: .5rem;
}

.main-nav li {
    margin: 1rem auto;
}

/*Phone View*/

@media screen and (min-width:768px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        padding: 0;
        min-height: 70px;
        align-items: center;
    }

    #chkToggle:checked+ul.main-nav {
        display: flex;
    }

    .main-nav {
        display: flex;
        margin-right: 1.875rem;
        justify-content: flex-end;
    }

    .main-nav li {
        margin: 0;
    }

    .nav-links {
        margin-left: 1.875rem;
    }

    .Logo:hover,
    .nav-links:hover {
        color: rgb(1255, 0, 0);
    }

    .Logo+h5 {
        display: none;
    }

    .navbar-toggle {
        display: none;
    }

    iframe {
        width: 784px;
        height: 441px;
        display: block;
        margin: 0 auto;
    }
}

footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px;
    left: 0;
    right: 0;
    position: absolute;
}

footer .fa-d-and-d {
    font-size: 15px;
}

/* Info & Sources */

@media screen and (min-width:1200px) {
    .dnd_links {
        display: flex;
    }
}

.dnd {
    background-color: whitesmoke;
    padding: 1rem .5rem;
}

.dnd h3 {
    font-family: Garamond;
    font-size: 25px;
    text-align: center;
    color: #6A0B23;
    padding: 0.625rem;
}

.dnd_links {
    flex-direction: row;
    flex-basis: 100%;
}

.dnd_link {
    display: flex;

    cursor: pointer;
}

.dnd_link+.dnd_links {
    margin: 1rem;
}

.dnd_link h4 {
    margin-left: .5rem;
    line-height: 1.5;
    padding-right: 100px;
    color: #000;
}

.dnd_link h4:hover {
    color: crimson;
}

img.thumb {
    height: 114px;
    width: 148.8px;
    border: 3px solid black;
    border-radius: 10px;
}

/*Audio*/
audio {
    background-color: #78ddb5;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

audio:hover {
    background-color: #5bbb98;
}

/*Code for D&D classes & Boxes*/

.container_races {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.container_classes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.box {
    width: 300px;
    height: px;
    margin: 10px;
    padding: 20px;
    background-color: #f2f0ea;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    background-position-x: center;
}

.box h3 {
    margin-top: 0;
    font-weight: bold;
    font-family: Garamond;
    font-size: 25px;
    text-align: center;
    color: #6A0B23;
    background-color: rgba(225, 255, 255, 0.85);
}

.box p {
    line-height: 1.5;
    color: #000000;
    font-family: 'Montserrat';
    text-align: left;
    background-color: rgba(225, 255, 255, 0.85);
}

.container_races .box:nth-child(1) {
    background-image: url('human.png');
}

.container_races .box:nth-child(2) {
    background-image: url('Elf.png');
}

.container_races .box:nth-child(3) {
    background-image: url('dwarf.png');
}

.container_races .box:nth-child(4) {
    background-image: url('halfling.png');
}

.container_races .box:nth-child(5) {
    background-image: url('gnome.png');
}

.container_races .box:nth-child(6) {
    background-image: url('half_elf.png');
}

.container_races .box:nth-child(7) {
    background-image: url('half_ork.png');
}

.container_races .box:nth-child(8) {
    background-image: url('tiefling.png');
}

.container_races .box:nth-child(9) {
    background-image: url('dragonborn.png');
}

.container_classes .box:nth-child(1) {
    background-image: url('barbarian.png');
}

.container_classes .box:nth-child(2) {
    background-image: url('bard.png');
}

.container_classes .box:nth-child(3) {
    background-image: url('cleric.png');
}

.container_classes .box:nth-child(4) {
    background-image: url('fighter.png');
}

.container_classes .box:nth-child(5) {
    background-image: url('druid.png');
}

.container_classes .box:nth-child(6) {
    background-image: url('monk.png');
}

.container_classes .box:nth-child(7) {
    background-image: url('paladin.png');
}

.container_classes .box:nth-child(8) {
    background-image: url('ranger.png');
}

.container_classes .box:nth-child(9) {
    background-image: url('rogue.png');
}

.container_classes .box:nth-child(10) {
    background-image: url('sorcerer.png');
}

.container_classes .box:nth-child(11) {
    background-image: url('warlock.png');
}

.container_classes .box:nth-child(12) {
    background-image: url('wizard.png');
}

/*Button*/

button {
    background-color: #F2E7C9;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

button:hover {
    background-color: crimson;
}