/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography */
html, body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #FFF;
    background-color: #FFF;
    height: 100%;
}

body{
	display: grid;
	grid-template-rows: auto 1fr auto; /* header / content / footer */
    min-height: 100vh;
    min-height: 100dvh;
    
}

/* Colors */
:root {
    --nav_bg:   #22614f;
    --nav_c: #95b1a9;
    --footer_bg: #B97955;
    --footer_c: #502107;
    --main_bg:  #FFF;
    --main_c: #22385B;
    --button_bg: #22385B;
    --button_text: #B1C1D9;
    --signin_bg: #2B4360;
    --signin_c: #657A93;
    --build_border: #B1C1D9;
    --build_focus: #22385B;
    --raft_tile_bg: #657A93;
    --raft_tile_c: #091C34;
    --raft_tile_border: #4F230B;
    --raft_tile_status: #CCC;
    --ribbon_bg: #053427;
    --ribbon_c: #95b1a9;
    --ribbon_active: #22614f;
    --raft_info_c: #22385B;
    --raft_tile_active: #B1C1D9;
}

/* Nav bar */
nav, footer{
	display: flex;
	align-items: center;
	justify-content: center; 
}

nav{
	font-size: clamp(.9rem, 3vw, 1.7rem);
	background-color: var(--nav_bg);
	color: var(--nav_c);
	height: clamp(40px, 6.5vw, 80px);
}

main{ 
	background-color: var(--main_bg);
}

footer{
	height: clamp(3rem, 5.5vh, 6rem);
	background-color: var(--footer_bg);
	color: var(--footer_c);
	border-top: 1px solid var(--footer_c);
	border-bottom: 1px solid var(--footer_c);
}

.nav-container, .footer-container {
	width: 85%;
}
.nav-container {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}

.footer-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: clamp(.9rem, 3vw, 1.7rem);
}

.logo img{
	height: clamp(30px, 6vw, 60px);
	width: auto;
	display: block;
}

.logo {
	justify-self: start;
}

.name{
	font-weight: bold;
	/*font-size: clamp(.9rem, 3vw, 1.7rem);*/
	display: inline-block;
	justify-self: center;
}

.sign-in{
	font-weight: bold;
	/*font-size: clamp(1rem, 1.5vw, 2rem);*/
	display: inline-block;
	justify-self: end;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(35px, 5.8vw, 65px);
    height: clamp(35px, 5.8vw, 65px);
    border-radius: 50%;
    background-color: var(--nav_c);
    color: var(--nav_bg);
    font-size: clamp(20px, 1.5vw, 40px);
    font-weight: 600;
    font-family: inherit;
    user-select: none;
}

.sign-in a{
	color: var(--nav_c);
	text-decoration: none;
}

.container{
	display: flex;
	flex-direction: row;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 10px;
}

/* Base styles = mobile (< 480px) already your default */

/* Small devices (large phones, 480px and up) */
@media (min-width: 480px) {
    .nav-container, .footer-container {
        width: 90%;
    }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
    .nav-container, .footer-container {
        width: 80%;
    }
    .container {
        flex-direction: row;
    }
}

/* Small laptops/desktops (1024px and up) */
@media (min-width: 1024px) {
    .nav-container, .footer-container {
        width: 75%;
    }
}

/* Large desktops (1440px and up) */
@media (min-width: 1440px) {
    .nav-container, .footer-container {
        max-width: 1200px; /* prevents it from getting absurdly wide */
        width: 75%;
    }
}

