
/* ============================================
0. Global
============================================ */
:root   {
    --padding:20px;

    --theme-main-colour:#ffffff;
    --theme-secondary-colour:#5E1BD4;
    --theme-pale-colour:#E5DBFF;
    --theme-text-colour:#0C1216;

    --theme-yellow:#FFDE17;
    --theme-green:#cfff4b;
    --theme-red:#a82c2c;

    --theme-error:#ffb4b4;

    --theme-border-colour:#E2E2E2;

    --header-height:40px;
}

::selection {
    background: var(--theme-secondary-colour);
    color: var(--theme-main-colour);
}

body    {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-size:12px;
    font-weight: 400;
    font-style: normal;
    color:var(--theme-text-colour);
}

.flow   {
    padding-top: var(--header-height);
}

/* ============================================
1. Typography, links & lists
============================================ */

h1, h2, h3, h4, h5, h6  {
    font-weight: 700;
}

h1  {
    font-size:1.5em;
}

p   {
    line-height:1.5em;
}

ul li   {list-style-type: none;}

.section-title  {
    font-size:1em;
    font-weight:700;
    margin-bottom:calc(var(--padding) / 2);
}

/* ============================================
2. Navigation
============================================ */

header {
    position: fixed;
    height:40px;
    padding:12px var(--padding);
    background: var(--theme-main-colour);
    z-index:2;
}

header .menu-button {
    height:40px;
    width:40px;
    cursor:pointer;
}
header .menu-button div {
    position: absolute;
    top:0;
    left:0;
    height:3px;
    width:20px;
    background: var(--theme-secondary-colour);
}
header .menu-button div:nth-child(2)    {
    top:6px;
    width:12px;
}
header .menu-button div:nth-child(3)    {
    top:12px;
    width:6px;
}

header .logo    {
    width:calc(100% - 80px);
    text-align: center;
    font-size:1.1em;
    font-weight: 700;
    color: var(--theme-secondary-colour);
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}
header .logo img    {
    top:-3px;
    height:23px;
    width:auto;
}

.tab-switcher   {
    height:40px;
    border-bottom: 1px solid var(--theme-border-colour);
}
.tab-switcher div   {
    height:40px;
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    font-size: 1em;
    font-weight: 700;
    opacity:0.4;
    cursor:pointer;
}
.tab-switcher div.active    {
    border-bottom:3px solid var(--theme-secondary-colour);
    opacity:1;
}

.menu   {
    position: fixed;
    top:var(--header-height);
    width:100%;
    height:100%;
    background: var(--theme-main-colour);
    padding:calc(var(--padding) * 1.5);
    z-index:100;
}
.menu ul    {
    margin: calc(var(--padding) * 2) 0;
}
.menu ul li {
    width:100%;
    margin-bottom: 7px;
}
.menu ul li a, .menu a.logout    {
    text-decoration: none;
    color: inherit;
    font-size: 1.33em;
    font-weight: 700;
}
.menu a.logout  {
    color: var(--theme-red);
}

.menu .blurb    {
    margin-top:calc(var(--padding) * 2);
    font-size:0.9em;
    line-height:1.5em;
    opacity:0.7
}
.menu .blurb p  {
    margin-bottom: 10px;
}
.menu .blurb a  {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    margin-top:3px;
}

/* ============================================
3. Forms & buttons
============================================ */

label   {
    font-weight: 700;
    margin-bottom: 5px;
    font-size:0.9em;
    line-height:1.4em;
}
input, textarea, select   {
    border:1px solid var(--theme-text-colour);
    border-radius:5px;
    height:40px;
    padding:0 15px;
    margin-bottom:10px;
}

textarea    {
    max-height: 100px;
    min-height:100px;
    height:100px;
    padding:15px;
    font-family: inherit;
    font-size: inherit;
    font-weight:inherit;
    color:inherit;
}

.button {
    width:auto;
    height:30px;
    border-radius:15px;
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    font-size:0.9em;
    font-weight:700;
    padding:0 calc(var(--padding) / 1.5);
}
.button.filled {
    background: var(--theme-secondary-colour);
    color:var(--theme-main-colour);
    border:1px solid var(--theme-secondary-colour);
}
.button.linear  {
    border:1px solid var(--theme-pale-colour);
    color: var(--theme-secondary-colour);
}
.button.full    {
    width:100%;
}

.fixed-cta  {
    position: fixed;
    top:initial;
    bottom:0;
    height:60px;
    background:var(--theme-main-colour);
    padding:0 var(--padding);
    z-index:99;
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}
.fixed-cta .button  {
    width:100%;
    height:40px;
    border-radius:20px;
}

.media-upload-button    {
    background: var(--theme-pale-colour);
    width:70px;
    height:70px;
    border-radius:5px;
    cursor:pointer;
}

/* ============================================
4. Components
============================================ */

/* 4.1. Banners ============================ */

.add-your-club-banner   {
    height: 35px;
    background: var(--theme-yellow);
}
.add-your-club-banner p {
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    font-size:0.9em;
    height:35px;
    font-weight: 700;
}

/* 4.2. Club page ============================ */

.club-page .banner  {
    height:100px;
    background:var(--theme-border-colour);
}

.club-page .profile-picture {
    top:-40px;
    left:var(--padding);
    width:80px;
    height:80px;
    border: 3px solid var(--theme-secondary-colour);
    border-radius: 10px;
    background-color: #ffffff;
}

.club-page .buttons {
    position: relative;
    top:10px;
    width:auto;
    height:40px;
    float: right;
    margin-right:var(--padding);
}
.club-page .button.leave-a-review    {
    margin-right:5px;
}

.club-page .meta    {
    top: -20px;
    padding:0 var(--padding);
    font-size:0.9em;
}
.club-page .meta p, .club-page .meta div:nth-child(3)  {
    margin-bottom: 10px;
}
.club-page .meta p:first-child    {
    font-size: 1.25em;
    font-weight: 700;
}
.club-page .meta ul li  {
    margin:0 6px 0 0;
}

.club-page .tab-switcher    {
    margin-top:0px;
    font-size:0.95em;
}
.club-page .tab-switcher div    {
    width:33.333%;
}

.club-page .opps    {
    top:0px;
    padding:var(--padding);
}

/* 4.3. Cards ============================ */

.opp-card   {
    border: 1px solid var(--theme-border-colour);
    border-radius:10px;
    padding: calc(var(--padding) / 1.5);
    margin-bottom:10px;
    font-size:0.9em;
    line-height: 1.4em;
    cursor:pointer;
    color:inherit;
}
.opp-card .status   {
    padding-top:3px;
    width:20px;
}
.opp-card .status div  {
    width:10px;
    height:10px;
    border-radius: 10px;
}
.opp-card .status.live div  {
    background: rgb(94, 200, 94);
}
.opp-card .details  {
    width:calc(100% - 30px);
}
.opp-card p:first-child {
    font-weight: 700;
    margin-bottom: 10px;
}
.opp-card .details ul li    {
    margin:0 5px 0 0;
}

/* 4.4. View opportunity ============================ */

.opportunity    {
    padding:calc(var(--padding) * 3) var(--padding);
}

.opportunity .meta  {
    margin-bottom:var(--padding);
    font-size:0.9em;
}
.opportunity .meta ul:first-child   {
    margin-bottom:calc(var(--padding) / 3);
}

.opportunity .buttons   {
    border-bottom:1px solid var(--theme-border-colour);
    padding-bottom:calc(var(--padding) / 1.5);
}

.opportunity .club  {
    padding:var(--padding) 0;
}
.opportunity .highest-bidder {
    padding:0 0 20px 0;
    margin-bottom:var(--padding);
    border-bottom:1px solid var(--theme-border-colour);
}
.opportunity .club div:first-child, .opportunity .highest-bidder div:first-child  {
    width:40px;
    height:40px;
    border-radius:5px;
    background:var(--theme-main-colour);
    border:3px solid var(--theme-secondary-colour);
}
.opportunity .club div:last-child, .opportunity .highest-bidder div:last-child   {
    width:calc(100% - 40px);
    padding:2px calc(var(--padding) / 2);
}
.opportunity .club div:last-child > p:first-child, .opportunity .highest-bidder div:last-child > p:first-child   {
    font-size:0.95em;
    font-weight:700;
    margin-bottom:3px;
}
.opportunity .club div:last-child > a, .opportunity .highest-bidder div:last-child > a   {
    font-size:0.8em;
    text-decoration: underline;
    color: inherit;
}

.opportunity p  {
    line-height: 1.7em;
    margin-bottom:var(--padding);
}

/* 4.5. Dashboard ============================ */

.dashboard .tab  {
    padding:var(--padding) var(--padding) calc(var(--padding) * 4) var(--padding);
}
.dashboard .tab-switcher    {
    margin-top:0px;
    font-size:0.95em;
}
.dashboard .tab-switcher div    {
    width:25%;
}

.dashboard .notifications .notif    {
    color:inherit;
    opacity:0.5;
    padding:10px;
    border-radius:5px;
    margin-bottom:5px;
}
.dashboard .notifications .notif p:first-child  {
    font-size:0.9em;
    margin-bottom:5px;
}
.dashboard .notifications .notif p:last-child  {
    font-size:0.8em;
    opacity:0.6;
}
.dashboard .notifications .notif.unread {
    background:var(--theme-pale-colour);
    opacity:1;
}

.dashboard .section {
    margin-bottom:var(--padding);
}

/* 4.6. Create ============================ */

.create {
    padding:calc(var(--padding) * 3) var(--padding) calc(var(--padding) * 4) var(--padding);
}

.create .upload-row {
    margin-top: calc(var(--padding) / 2);
    margin-bottom: var(--padding);
}

.create .buttons    {
    margin: var(--padding) 0;
}

/* 4.7. Sign up ============================ */

.signup {
    padding:calc(var(--padding) * 3) var(--padding) calc(var(--padding) * 4) var(--padding);
}

.signup .selector {
    padding:15px;
    font-size:0.85em;
    border:1px solid var(--theme-border-colour);
    border-radius: 10px;
    margin-bottom:10px;
    cursor:pointer;
}
.signup .selector p:first-child {
    margin-bottom:5px;
    font-size:1.05em;
    font-weight:700;
}
.signup .selector div:first-child   {
    width:30px;
    height:30px;
}
.signup .selector div:first-child .dot   {
    width:15px;
    height:15px;
    background: var(--theme-pale-colour);
    border-radius:20px;
}
.signup .selector div:last-child   {
    width:calc(100% - 30px);
}
.signup .selector.selected {
    background: var(--theme-pale-colour);
    border:2px solid var(--theme-secondary-colour);
}
.signup .selector.selected div:first-child .dot {
    background: var(--theme-secondary-colour);
}

/* 4.8. Errors & successes ============================ */

.error  {
    background: var(--theme-error);
    padding:calc(var(--padding) / 1.5) var(--padding);
    border-radius:10px;
    margin-bottom:var(--padding);
}
.error p    {
    font-weight: 500;
    font-size:0.9em;
}

/* 4.9. Animations ============================ */

@keyframes spinningLoaderAnimation    {
    0%      {margin-bottom:0; height:20px}
    50%     {margin-bottom: 70px; height:25px}
    100%    {margin-bottom:0; height:20px}
}