/* 
CSS Stylesheet for Gameful Learning Explorable Project for CS6460 - Educational Technology at Georgia Tech
Fall 2025
Author: Brett Moran
*/

body {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background: 
        linear-gradient(0.25turn, #52a7cc, #3c7f9c);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}
p {
    font-size: 1rem;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: monospace;
}

.keyword {
    border-radius: 100px;
    padding: 2px 8px 3px 8px;
    background-color: #185972;
    color: white;
}

header {
    background: 
        linear-gradient(0.25turn, #ffed4a, #3c7f9c),
        url(https://static.tumblr.com/maopbtg/a5emgtoju/inflicted.png) repeat;
    padding: 1rem 2rem;
    margin: 1rem;
    border-radius: 60px 10px;
    box-shadow: 5px 5px 1px 1px #000;
    line-height: 1.2;
}

.hero-header h2 {
    margin-top: -10px;
    color: #333333;
    
}

.act {
    background-color: #f5efb5;
    padding: 1rem 2rem 1rem 2rem;
    margin: 1rem;
    border-radius: 60px 10px;
}

.sdt-list {
    font-size: 1rem;
}

hr {
    height: 1px;
    margin: 2rem;
    background-color: #488eaa;
    border: none;
}

footer {
    background: 
        linear-gradient(0.25turn, #ffed4a, #3c7f9c),
        url(https://static.tumblr.com/maopbtg/a5emgtoju/inflicted.png) repeat;
    padding: 1rem 2rem;
    margin: 1rem;
    border-radius: 60px 10px;
    box-shadow: 5px 5px 1px 1px #000;
    line-height: 1.2;
}


.gm-choice-box {
    padding: 5px 0 5px 0;
    width: 20%;
    border: 1px solid #97937100;
    border-right: 5px solid #22495a;
    background-color: #97937122;
    border-radius: 10px;
    margin: 0;
    margin-right: 5px;
    
}
.gm-anchor {
    margin: 10px 5px;
}
.gm-span {
    background-color: #22495a;
    cursor: pointer;
    border-radius: 100px;
    padding: 5px 10px;
    transition: 
        background-color 0.1s;
}

.gm-span a {
    text-decoration: none;
    color: white;
}

.gm-span:hover {
    background-color: #3c7b96;
    transition: 
        background-color 0.2s;
}


.gm-box {
    width: 100%;
    display: flex;
}

.gm-card-box {
    border-left: 5px solid #a79600;
    background-color: #97937122;
    border-radius: 10px;
    padding: 0 10px;
    margin: 0;
    margin-left: 5px;
    width: 80%;
    box-shadow: 5px 5px 0px 0px #000;
}

/* Tab styling - Autonomy, Competence, Relatedness tab sections */
/* .gm-tab-bar is the overall bar containing the tab buttons */
.gm-tab-bar {
    display: flex;
    margin-top: 10px;
}

.gm-tab-bar button {
    flex: 1;
    padding: 10px;
    border: none;
    border: 1px solid #aaaaaa;
    border-bottom: 3px solid #aaaaaa;
    background-color: #eeeeee;
    cursor: pointer;
    border-radius: 10px;
    font-size: 1rem;
    transition: transform 0.1s ease;
}

.gm-tab-bar button:hover {
    background-color: #dddddd;
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.gm-tab {
    border-radius: 10px;
    padding: 10px 0px 10px 0px;
    display: none;
}

/* .gm-tab is the content within the tab */
.gm-tab.active {
    display: block;
    
}

/* .gm-tab-option is the tab button itself */
.gm-tab-option.active {
    background-color: #e0ca03;
    border: 1px solid #52a7cc;
    border-bottom: 3px solid #52a7cc;
    font-weight: bold;
}

.gm-tab-option.active:hover {
    background-color: #c2af01;
}

.gm-intro {
    border-radius: 10px;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #eeeeee;
    border-left: 5px solid #bbbbbb;
}

.gm-reflection {
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0px;
    background-color: #00836233;
    border-left: 5px solid #008362;
}

.gm-recipe {
    border-radius: 10px;
    padding: 20px;
    background-color: #003c8a33;
    border-left: 5px solid #003c8a;
    margin-bottom: 20px;
}

.gm-meaningful {
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0px;
    background-color: #d8a60033;
    border-left: 5px solid #d8a600;
}

.gm-shallow {
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0px;
    background-color: #49008d33;
    border-left: 5px solid #49008d;
}

.dashed-break {
    margin: 20px -20px;
    border-top: 5px dashed #488eaa;
    background-color: transparent;
}

.info-callout {
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0px;
    background-color: #00000022;
    border-left: 5px solid #000000;
}

a.gm-title-anchor-back-to-all-gms {
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: #11242c;
    padding: 4px 10px;
    border-radius: 10px;
    transition: transform 0.1s ease;
}

a.gm-title-anchor-back-to-all-gms:hover {
    background-color: #185972;
    transform: translateY(-2px);
    transition: 
        transform 0.2s ease;
    
}

.gm-section-nav {
    padding: 0;
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background-color: transparent;
    font-size: 1rem;
}

.gm-section-nav a {
    background-color: #11242c88;
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    display: inline-block;
}

#act-V-gm-links {
    display: flex;
    align-items: center;
    flex-flow: wrap;
    justify-content: center;
}

#act-V-gm-links a {
    color: white;
    text-decoration: none;
    width: 110px;
    padding: 8px 10px;
    text-align: center;
    margin: 10px 10px;
    border-radius: 10px;
    background-color: #11242c;
    transition: transform 0.1s ease;
}

#act-V-gm-links a:hover {
    color: white;
    text-decoration: none;
    border-radius: 10px;
    background-color: #185972;
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.shallow-tag {
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px 10px;
    margin: 10px 0px;
    background-color: #49008d33;
    color: #49008d;
}

.meaningful-tag {
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px 10px;
    margin: 10px 0px;
    background-color: #d8a60055;
    color: #8d6c00;
}

.reflection-tag {
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px 10px;
    margin: 10px 0px;
    background-color: #00836244;
    color: #003f2f;
}

.recipe-tag {
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px 10px;
    margin: 10px 0px;
    background-color: #003c8a33;
    color: #001e44;
}


.reflection-area {
    margin: 20px;
    border-radius: 10px;
    max-width: 100%;
}

.reflection-area label {
    font-weight: bold;
    font-size: 1.1rem;
}


/* 
Inspiration and some of the code for the reflection box style came from:
https://codepen.io/steinvc/pen/nOPLgv
*/
.reflection-box {
	overflow:hidden;
    min-height: 4rem;
    width: 82%;
	background-color:#FFF;
	color:#222;
	font-weight:normal;
    font-size: 1rem;
	resize:none;
	line-height:30px;
	padding-left:95px;
	padding-right: 15px;
	padding-top:32px;
	padding-bottom:0px;
	background-image:
        url(https://static.tumblr.com/maopbtg/E9Bmgtoht/lines.png), 
        url(https://static.tumblr.com/maopbtg/nBUmgtogx/paper.png);
	background-repeat:repeat-y, repeat;
	border-radius:12px;
    border: none;
    background-size: 100% 30px;
}


.reflection-box:focus {
    outline: none;
    box-shadow: 0px 2px 14px #000;
}


figure {
    display: table;
}

figcaption {
    display: table-caption;
    caption-side: bottom;
    text-align: center;
    font-size: 0.85rem;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
} 

.references-list > li {
    overflow-wrap: anywhere;
}

.gm-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    border-radius: 50px 10px;
    margin: 0;
}

.gm-card {
    border: 2px solid transparent;
    background-color: #003044;
    box-shadow: 5px 5px 10px 0px #333;
    border-radius: 40px 10px;
    padding: 20px 10px;
    margin: 8px;
    width: 130px;
    text-align: center;
    transition: transform 0.1s ease;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.gm-card:hover {
    background-color: #0d3e52;
    transform: translateY(-2px);
    transition: 
        transform 0.2s ease;
}

.gm-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.gm-card span {
    margin: 0;
    padding: 0;
    margin-top: 10px;
    display: block;
    font-weight: bold;
    font-size: 1.15rem;
}
.gm-card p {
    text-align: right;
    margin: 5px 0 0 0;
    font-size: 0.75rem;
    line-height: 1.2;
    vertical-align: bottom;
}

.card-divider {
    width: 90%;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 10px;
    border-top: 1px solid #aaa;
    background-color: transparent;
}

.gm-card-progress {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 0 6px 6px 0;
    gap: 6px;
}

.gm-card-progress-item {
    margin-left: 7px;
    display: flex;
    grid-template-columns: auto 1fr;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.gm-card-progress-item-header {
    display: flex;
    grid-template-columns: auto 1fr;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.gm-card-progress-item-header p {
    font-family: monospace;
    margin: 0;
    margin-right: 79px;
    font-weight: bold;
}

.gm-card-progress-item-header span {
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

.gm-card-progress-item-autonomy p {
    font-family: monospace;
    margin: 0;
    margin-right: 18px;
}
.gm-card-progress-item-competence p {
    font-family: monospace;
    margin: 0;
    margin-right: 5px;
}
.gm-card-progress-item-relatedness p {
    font-family: monospace;
    margin: 0;
    margin-right: -1px;
}


.gm-card-progress img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.act-V-gm-section {
    display: none;
}

.act-V-gm-section.active {
    display: block;   
}

.gm-card.active {
    background-color: #11242c;
    box-shadow: none;
    transform: translateY(-2px);
    transition: 
        transform 0.2s ease;
}


.tags {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.tags span {
    padding: 2px 10px;
    margin: 0;
}

.mark-progress {
    text-align: right;
    display: block;
}

.mark-progress img{
    margin-top: 10px;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.mark-progress img:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.data-buttons-container {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}   

#clear-data {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #aa3333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#clear-data:hover {
    background-color: #aa3333dd;
}

#download-data {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #008362;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#download-data:hover {
    background-color: #008362dd;
}

