/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ----------my styles-------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Sage Grotesk';
    src: url('./fonts/SageGrotesk.woff2') format('woff2'),
        url('./fonts/SageGrotesk.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Remove default link styling */
a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: inherit;
}

a:focus {
    outline: none;
}

body {
    font-family: 'Sage Grotesk', 'Courier New', monospace, Arial, sans-serif;
    background: #181818;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    transition: opacity 0.2s;
    z-index: 10;
}

.menu-btn:hover {
    opacity: 0.7;
}

.menu-btn img {
    filter: invert(1);
}

.container {
    background: #fff;
    border-radius: 20px;
    padding: 18px 18px 32px;
    width: 100%;
    max-width: 90%;
    min-height: 580px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-template-rows: auto auto 1fr auto;
    gap: 12px;
    grid-template-areas:
        "featured header"
        "featured sidebar"
        "featured sidebar"
        "bottom bottom";
}

/* Featured Module */
.featured {
    grid-area: featured;
    background: #1a1a1a;
    color: #fff;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    text-align: left;
}

.featured:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
}

.featured:active {
    transform: translateY(0);
}

.featured h1 {
    font-size: 2rem;
    font-weight: 100;
    margin: 0;
    margin-bottom: 15vh;
    color: #fff;
    font-family: 'Sage Grotesk', 'Courier New', monospace, Arial, sans-serif;
}

.featured h2 {
    font-size: 2.9rem;
    font-weight: 200;
    border-bottom: 2px solid #fff;
    padding-bottom: 14px;
    margin-bottom: 8px;
    color: #fff;
    font-family: 'Sage Grotesk', 'Courier New', monospace, Arial, sans-serif;
}

.featured p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
    font-family: 'Sage Grotesk', 'Courier New', monospace, Arial, sans-serif;
}

/* Sidebar */
aside {
    grid-area: sidebar;
    border-radius: 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 15px;
}

.sidebar-header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 15vh;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.2s;
    align-self: center;
    flex-shrink: 0;
}

.back-btn:hover {
    opacity: 0.7;
}

.back-btn img {
    width: 50px;
    height: 40px;
    display: block;
}

.sidebar-nav-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    font-family: inherit;
    padding: 8px;
    transition: opacity 0.2s;
    text-align: left;
    width: 100%;
    display: block;
}

.sidebar-nav-btn:hover {
    opacity: 0.7;
}

/* Module Buttons */
.module-btn {
    background: #ffffff;
    border: 3px solid #000;
    border-radius: 28px;
    padding: 40px;
    display: flex;
    align-items: center;
    font-size: 4.5rem;
    font-weight: 300;
    min-height: 140px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.module-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.module-btn:active {
    transform: translateY(0);
}

aside .module-btn {
    min-height: 10vh;
    font-size: 1.8rem;
}

.bottom-modules {
    grid-area: bottom;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bottom-modules .module-btn {
    min-height: 80px;
    font-size: 1.8rem;
    font-weight: 300;
}

/* Responsive */
@media (max-width: 1220px) {
    .container {
        display: grid;
        grid-template-columns: 3fr 1fr;
        grid-template-rows: auto auto 1fr auto;
        gap: 12px;
        grid-template-areas:
            "featured header"
            "featured sidebar"
            "featured sidebar"
            "bottom bottom";
        padding: 24px;
    }

    .featured h1 {
        font-size: 3rem;
    }

    .featured h2 {
        font-size: 2rem;
    }

    .module-btn {
        font-size: 1.8rem;
    }

    .bottom-modules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "featured"
            "sidebar"
            "bottom";
        padding: 24px;
    }

    .featured h1 {
        font-size: 3rem;
    }

    .featured h2 {
        font-size: 2rem;
    }

    .module-btn {
        font-size: 1.8rem;
    }

    .bottom-modules {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 400px) {
    .container {
        height: auto;
    }
}

@media (min-width: 768px) {
    .container {
        min-height: 500px;
        /* height: 90%; */
        overflow: hidden;
    }
}