/* General Formatting */
body {
    color: #000;
    font-family: "Belgrano", serif;
    font-weight: 400;
    font-style: normal;
}

/* Grid Setup */
.wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: auto;
    grid-template-areas:
        "header header"
        "nav nav"
        "main aside"
        "footer footer";
    grid-gap: 4px;
}

header, nav, main, aside, footer {
    padding: 20px;
    border-radius: 10px;
}

/* Header */
header {
    grid-area: header;
    background-color: #cbe8ba; /* pale green */
    color: #262b22;
    height: 84px;
}

/* Navigation */
nav {
    grid-area: nav;
    background-color: #73b092;
    color: #262b22;
    padding: 10px;
    display: flex;
    justify-content: center;  /* Centers the nav items horizontally */
    align-items: center;      /* Aligns nav items vertically */
}

/* Main Content */
main, aside {
    background-color: #cbe8ba; /* pale green */
    color: #262b22;
}

footer {
    grid-area: footer;
    background-color: #cbe8ba; /* pale green */
    color: #262b22;
}

/* 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; }

/* Navigation Links */
.nav-links {
    display: flex;
    justify-content: center;  /* Centers the items horizontally */
    align-items: center;      /* Aligns items vertically */
    gap: 5px;                 /* Adds space between items */
}

/* Toggle Font Button */
#toggleFont {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: black;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: auto;
}

#toggleFont:hover {
    background-color: #45a049;
}

/* OpenDyslexic Font */
@font-face {
    font-family: 'OpenDyslexic';
    src: url('/12/bayleymiller/Website/Practice v2/fonts/OpenDyslexic-Regular.woff2') format('woff2'),
         url('/12/bayleymiller/Website/Practice v2/fonts/OpenDyslexic-Regular.woff') format('woff'),
         url('/12/bayleymiller/Website/Practice v2/fonts/OpenDyslexic-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.dyslexia-font {
    font-family: 'OpenDyslexic', sans-serif !important;
}

/* Preserve spacing and line breaks */
.preserve-spacing {
    white-space: pre-line;
    font-size: 15px;
    color: black;
}

/* Heading Formatting */
h1 {
    font-size: 300%;
    padding-left: 150px;
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
}

h2, h3, p {
    color: #000;
}

/* Image Styling */
img.roundleft {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    box-shadow: 1px 0px 10px #000;
    float: left;
}

.allround {
    border-radius: 20px;
    box-shadow: 1px 0px 10px #000;
}

/* 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: black;
}

/* Info Box Styling */
.info {
    border-style: solid;
    border-width: 1px;
    background-color: #97ffa3;
    border-color: #cbe8ba;
    padding: 10px;
    width: 85%;
}

/* Show/Hide Styling */
.showhide {
    background-color: #47ae56;
    font-style: italic;
    padding: 2px 5px;
}

.showhide:hover {
    color: #fff;
    background-color: #75d27e;
}

/* Link Formatting */
a:link { color: #000000; }
a:visited { color: #333 }
a:hover { color: #73b092; }

/* Top Navigation */
nav a {
    text-decoration: none;
}

nav a:link, nav a:visited {
    color: #000000;
}

nav a:hover {
    color: #73b092;
}

/* Drop Down Menu */
.dropbtn {
    padding: 16px;
    font-size: 16px;
    background-color: #cbe8ba;
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
    text-align: center;
    margin: 0;
}

/* Dropdown Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.littlearrow {
    font-size: 75%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #92d294;
}

/* Contact Form Styling */
iframe {
    width: 120%;
    height: 754px;
    margin: auto;
    border: 0;
}
