/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* 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;
}

:root {
  --bg-color: rgb(205, 205, 205);
  --text-color: black;
  --button-bg-color: black;
  --button-bg-hover-color: rgb(60, 60, 60);
  --button-text-color: white;

  --input-border-color: #c8cccb;
  --input-bg-color: #f2f5f4;
  --input-text-color: #4d4f4f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: rgb(46, 46, 46);
    --text-color: rgb(205, 205, 205);
    --button-bg-color: rgb(222, 222, 222);
    --button-bg-hover-color: rgb(255, 255, 255);
    --button-text-color: rgb(90, 90, 90);

    --input-border-color: #555557;
    --input-bg-color: #232324;
    --input-text-color: #c4c4cb;

    /* --form-input-placeholder: #555557; */
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding-top: 60px;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

a {
  color: var(--text-color);
}

.strikethrough {
  text-decoration-line: line-through;
}

/* Menubar */

.menuBar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--text-color);
  background-color: var(--bg-color);
}

.menuBar a {
  text-decoration: none;
  color: var(--text-color);
}

.artworks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 80vw;
  padding: 20px;
}

.artworksFull {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100vw;
  padding: 20px;
}

.filterBar {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 20vw;
  height: calc(100% - 60px);
  padding: 20px 20px 20px 0;
  overflow-y: scroll;
}

.filterButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filterButton {
  cursor: pointer;
  padding: 10px;
  border: 1px solid var(--text-color);
  border-radius: 30px;
  background-color: var(--bg-color);
  transition: all 0.3s ease;
  text-decoration: none;
  color: black;
}

.filterButton:hover {
  background-color: rgb(220, 220, 220);
}

h2 {
  position: relative;
}

h2 .filterButton {
  position: absolute;
  top: -4px;
  margin-left: 10px;
  font-size: 12px;
  font-weight: normal;
}

/* Welcome Page */

.centeredContent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  gap: 60px;
  height: 100%;
}

.centeredContent .headerWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.centeredContent h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 52px;
  text-align: center;
  font-weight: 400;
}

.centeredContent h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 32px;
  text-align: center;
  font-weight: 400;
}

.centeredContent a {
  align-self: center;
  display: block;
  width: max-content;
  padding: 16px 28px;
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  text-align: center;
  font-weight: 400;
  text-decoration: none;
  color: var(--button-text-color);
  background-color: var(--button-bg-color);
  transition: all 0.3s ease;
}

.centeredContent a:hover {
  background-color: var(--button-bg-hover-color);
}

/* Vote Page */

.threeArtworksOnDisplay {
  display: flex;
  justify-content: center;
  align-self: center;
  height: 100%;
}

.threeArtworksOnDisplay .centerizer {
  display: flex;
  justify-content: space-evenly;
  align-self: center;
  width: 100%;
}

.threeArtworksOnDisplay .artworkWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

.threeArtworksOnDisplay .artworkImage {
  height: 60vh;
  aspect-ratio: 10 / 14;
}

.threeArtworksOnDisplay .artworkVoteButtons {
  display: flex;
  justify-content: center;
  align-self: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.threeArtworksOnDisplay .voteButton {
  flex-grow: 1;
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  text-align: center;
  font-weight: 400;
  text-decoration: none;
  color: var(--button-text-color);
  background-color: var(--button-bg-color);
}

.threeArtworksOnDisplay .voteButton:hover {
  background-color: var(--button-bg-hover-color);
}

@media (max-width: 600px) {
  .threeArtworksOnDisplay .artworkWrapper:nth-child(n + 2) {
    display: none;
  }
}

/* Sign in */

.signIn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.signIn h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  text-align: center;
  font-weight: 400;
  margin-bottom: 30px;
}

.signIn > * {
  width: 400px;
}

.signIn form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.signIn .field,
.signIn .actions {
  display: flex;
  flex-direction: column;
  /* gap: 4px; */
}

.A_Button {
  cursor: pointer;
  flex-grow: 1;
  display: block;
  width: 100%;
  padding: 12px 20px;
  /* margin-top: 20px; */
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  text-align: center;
  font-weight: 400;
  text-decoration: none;
  color: var(--button-text-color);
  background-color: var(--button-bg-color);
}

.A_Button:hover {
  background-color: var(--button-bg-hover-color);
}

.A_Label {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.A_Input {
  width: 100%;
  height: 52px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--input-border-color);
  background: var(--input-bg-color);

  font-size: 16px;
  font-weight: 500;
  line-height: 20px;

  color: var(--input-text-color);
  text-align: center;

  &:focus {
    outline: none;
  }
}

@media (max-width: 600px) {
  .signIn > * {
    width: calc(100% - 40px);
  }
}

@media (max-width: 600px) {
  .hiddenOnMobile {
    display: none;
  }
}

.links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 140%;
}

.artworkImage {
  text-decoration: none;
}

.adminImageShow {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 20px;

  .leftSide {
  }

  .rightSide {
    width: 400px;
    line-height: 140%;

    div {
      margin: 10px 0;
    }
  }
}

.editionBar {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 20vw;
  height: calc(100% - 60px);
  padding: 20px 20px 20px 0;
  overflow-y: scroll;
  line-height: 140%;

  section {
    padding-bottom: 20px;
  }

  h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 4px;
  }

  h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
  }

  a {
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

.artworkImageWrapper {
  position: relative;
}

.artworkWatchToggle {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  color: white;
  border-radius: 5px;
}

.artworkInEdition {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px;
}
