body {
    background-color: #f5ffff;
    color: rgb(0, 0, 0);
    font-family: "Belgrano", serif;
    font-weight: 400;
    font-style: normal;
}

/* ---- Set up site grid ---- */
.wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    grid-template-rows: auto;
    grid-template-areas:
        "header header"
        "nav nav"
        "main aside"
        "footer footer";
    grid-gap: 4px;
}

header {
    grid-area: header; 
    color: #fff;
    padding: 0px;
    height: 80px;
}

/* ---- Border width for light areas ---- */
nav, main, aside {
    border-style: solid;
    border-width: 1px;
}

nav {
    grid-area: nav;
    padding: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 10px;
}


main {
    grid-area: main;
}

aside {
    grid-area: aside;
    background-color: var(--aside-bg);
    color: var(--text-color);
}

footer {
    grid-area: footer;
}

.nav-links {
    display: flex;
    justify-content: center;  /* Centers the items horizontally */
    align-items: center;      /* Aligns items vertically */
    gap: 5px;                 /* Adds space between items */
    padding: 0;               /* Ensures no padding */
    margin: 0;                /* Removes any unwanted margin */
}


/* Grid for Front Images */
.homeimages {
    display: grid;
    grid-template-columns: 250px 250px;
    grid-template-rows: auto;
    grid-template-areas: 
        "free haiku"
        "limerick acrostic";
    grid-gap: 20px;
    width: 520px;
    margin: auto;
    padding: 5px;
}

.free { grid-area: free; }
.haiku { grid-area: haiku; }
.limerick { grid-area: limerick; }
.acrostic { grid-area: acrostic; }


/* Preserve spacing and line breaks */
.preserve-spacing {
    white-space: pre-line;
    font-size: 15px;
    color: black;
}

/* ---- General formatting ---- */
.box {
    padding: 20px;
    border-radius: 10px;
}

h1 {
    font-family: "Roboto Condensed", serif;
    font-size: 300%;
    padding-left: 150px;
    margin: auto;

    

/* -- Transform to vertically center heading */
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    -webkit-tranform:translateY(-50%);
    -ms-transform: translateY(-50%);

}

/* Image Styling */
img.roundleft{
    box-shadow: 1px 0px 10px #000;
    float: left;
}

.allround {
    border-radius: 20px;
    box-shadow: 1px 0px 10px #000;
}

/* --- Link Formatting --- */
/* Centered Text */
.centered {
    text-align: center;
}

/* Hover Text Formatting */
.hvrbox, .hvrbox * {
    box-sizing: border-box;
}

.hvrbox {
    position: relative;
    display: inline-block;
    overflow: hidden;
    max-width: 100%;
    border-radius: 20px;
    height: auto;
}

.hvrbox img {
    max-width: 100%;
}

.hvrbox .hvrbox-layer_bottom {
    display: block;
}

.hvrbox .hvrbox-layer_top {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
    transition: all 0.4s ease-in-out 0s;
}

.hvrbox:hover .hvrbox-layer_top,
.hvrbox.active .hvrbox-layer_top {
    opacity: 1;
}

.hvrbox .hvrbox-text {
    text-align: center;
    font-size: 18px;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hvrbox .hvrbox-text_mobile {
    font-size: 15px;
    border-top: 1px solid rgb(179, 179, 179);
    margin-top: 5px;
    padding-top: 2px;
    display: none;
}

.hvrbox.active .hvrbox-text_mobile {
    display: block;
}

/* Hidden Box Formatting */
#hidden {
    display: none;
}

/* Poem Type Formatting */
.poemtype {
    font-size: 150%;
    font-weight: bold;
    padding-right: 15px;
    color: var(--text-color);
}

/* Info Box Styling */
.info {
    border-style: solid;
    border-width: 1px;
    background-color: var(--main-bg); /* Matches the main background color */
    border-color: var(--border-color); /* Uses the site's border color */
    padding: 10px;
    width: 85%;
}

/* Show/Hide Styling */
.showhide {
    background-color: var(--main-bg); /* Matches the navigation background color */
    font-style: italic;
    padding: 2px 5px;
}

.showhide:hover {
    color: var(--link-hover); /* Uses the site's link hover color */
    background-color: var(--dropdown-hover-bg); /* Matches the dropdown hover background color */
}

a:link {
    color: white;
    font-weight: 670; /* Makes the text bold */
}

a:visited {
    color: white;
    font-weight: 670; /* Makes the text bold */
}

a:hover {
    color: #d9b4fc; /* Keeps hover color as specified */
    font-weight: 670; /* Makes the text bold */
}

/* Top Navigation */
nav a {
    text-decoration: none;
}

nav a:link, nav a:visited {
    color: white;
    font-weight: 670; /* Makes the text bold */
}

nav a:hover {
    color: #000;
    font-weight: 670; /* Makes the text bold */
}

/* ---- Drop Down Menu ---- */

.dropbtn {
    background-color: #6dd7fd;
    color: rgb(0, 0, 0);
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

  /* Dropdown Content (Hidden by Default) */
  /* https://www.w3schools.com/css/css_dropdowns.asp */

.littlearrow {
    font-size: 75%;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: #3e8e41;
} 

/* ---- Google form Styling --- */

iframe{
    width: 85%;
    height: 754px;
    margin: auto;
    border: 0;
}