* {
  box-sizing: border-box;
} 

img {
    height: auto; 
    text-align: center;
    max-width: 100%;
    width: 300px;
    overflow: auto;
}

body {
    background-image: url(images/cathedral.jpg);
    background-size: 600px 108vh;
    background-color: black;
    font-family: "Times New Roman", Times, serif;
    color: white;
    display: grid;
    justify-content: center; 
    align-items: center; 
    height: 100vh;
    overflow: hidden;
}

#bgmusic {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* width */
::-webkit-scrollbar {
    width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
    border-radius: 10px;
    background: white; 
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #363636; 
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: gray; 
}

.main-header,
.main-nav,
.content,
.sidebar-left,
.sidebar-right {
    background-color: black;
    overflow-x: hidden;
}

.main-header {
    grid-area: header;
    background-image: url(images/town.jpg);
    background-size: 840px 400px;
    border: white 3px ridge;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: black;
    color: white;
    border: white 3px ridge;
    height: 205px;
    padding: 25px;
    padding-top: 24px;
    overflow: hidden;
    
}

.main-nav {
    grid-area: nav;
    border: white 3px ridge;
    height: 52px;
    overflow-y: auto;
    
}

.navbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal menu items */
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 835px;
  text-align: center;
}

.navbar li {
  border-left: 1px solid white;
  border-right: 1px solid white;
}

.navbar li:first-child {
  border-left: none;
}

.navbar li:last-child {
  border-right: none;
}

.navbar li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 14px 0;
}

.navbar li a:hover {
  background-color: gray;
}


.content {
    grid-area: content;
    border: white 3px ridge;
    height: 461px;
    align-content: start;
    justify-items: center;
    display: grid;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: break-word;
}

.sidebar-left {
    grid-area: sidebarleft;
    border: white 3px ridge;
    height: 461px;
    overflow-y: hidden;
    display: grid;
    align-content: start;
    justify-items: center;
}

.sidebar-right {
    grid-area: sidebarright;
    border: white 3px ridge;
    height: 461px;
    overflow-y: hidden;
    align-content: start;
    display: grid;
    justify-items: center;
}

#navbar2 ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100px;
    background-color: black;
    border: 1px solid #555;
}

#navbar2 li a {
    display: block;
    color: white;
    padding: 5px 16px;
    text-decoration: none;
}

#navbar2 li {
    text-align: center;
    border-bottom: 1px solid white;
}

#navbar2 li:last-child {
    border-bottom: none;
}


#navbar2 li a:hover {
    background-color: gray;
    color: white;
}


.container {
    background-color: black;
    background-image: url(images/wallpaper4.png);
    background-size: 200px 200px;
    border: white 3px ridge;
    height: 785px;
    width: 885px;
    margin: 0px auto;
    padding: 20px;
    column-gap: 10px;
    row-gap: 10px;
    align-items: start;
    justify-content: center;
    display: grid;
    grid-template-columns: 1fr 465px 1fr;
    grid-template-areas: 
        "header header header"
        "nav nav nav"
        "sidebarleft content sidebarright";
}

.gridItem1 {
    border: white 1.5px dashed;       
    height: 140px;
    width: 140px;
    padding: 19px;
    background-color: black;
    margin: 3px;
    margin-top: 22px;
    margin-bottom: 0px;
}

.gridItem2 {
    border: white 1.5px dashed;       
    height: 100px;
    width: 140px;
    padding: 19px;
    background-color: black;
    margin: 3px;
    margin-top: 15px;
    margin-bottom: 16px;
    overflow: auto;
}

.gridItem3 {
    border: white 1.5px dashed;
    font-family: "Times New Roman", Times, serif;
    color: white;
    height: 410px;
    width: 425px;
    padding: 19px;
    padding-top: 10px;
    background-color: black;
    margin: 3px;
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;  
    align-items: center;  
    overflow: hidden;
}

.gridItem4 {
    border: white 1.5px dashed;
    font-family: "Times New Roman", Times, serif;
    color: white;
    height: 500px;
    width: 425px;
    padding: 19px;
    background-color: black;
    margin: 3px;
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;  
    align-items: center;  
    overflow: hidden;
}

.gridItem5 {
    border: white 1.5px dashed;
    font-family: "Times New Roman", Times, serif;
    color: white;
    height: 270px;
    width: 425px;
    padding: 19px;
    background-color: black;
    margin: 3px;
    margin-top: 22px;
    margin-bottom: 17px;
    display: flex;
    flex-direction: column;
    justify-content: center;  
    align-items: center;  
    overflow: hidden;
}

.gridItem6 {
    border: white 1.5px dashed;       
    height: 155px;
    width: 140px;
    padding: 19px;
    background-color: black;
    margin: 3px;
    margin-top: 15px;
    margin-bottom: 0px;
}

.gridItem7 {
    border: white 1.5px dashed;       
    height: 85px;
    width: 140px;
    padding: 19px;
    background-color: black;
    margin: 3px;
    margin-top: 15px;
    margin-bottom: 0px;
    overflow: auto;
}
