/* Fonts */

/* nunito-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/nunito/nunito-sans-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* nunito-sans-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/nunito/nunito-sans-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* Styles */

        #instructions {
            display: none;
        }
        #toggleInstructions {
            cursor: pointer;
            color: var(--dark-grey);
            text-decoration: underline;
        }

:root {
    --dark-grey: #2e2e2e;
    --white-transparent: rgba(255,255,255, 0.7);
    --font: 'Nunito Sans', Arial, sans-serif;
    --violet: #5a467d;
    --green: #23d5ab;
    --dark-green: #1A9979;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
} 

body {
    -webkit-font-smoothing: antialiased;
    font-family: var(--font);    
    font-size: 18px;
    line-height: 1.4;
    color: #ffffff;
    height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: gradient 15s ease infinite;
}

h1 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 35px;
}

p {
    margin-top: 0;
    margin-bottom: 15px;
}

a,
a:visited {
    transition: color 200ms linear;
}

a:hover,
a:focus,
a:active {
    color: var(--violet);
}

input, 
textarea,
select,
button {
    font-family: inherit;
    font-size: 18px;
}

.newvote {
    color: --white-transparent;
    content: '+';
    line-height: 1;
    width: 20px;
    height: 20px;
    background-color: var(--dark-green);
    color: #ffffff;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translatey(-50%);
    cursor: pointer;
}

.container {
    max-width: 1200px;
    padding: 50px 20px;
    margin: 0 auto;
}

.intro {
    text-align: center;
}

.list-header, .list-item {
    display: flex;
    justify-content: space-between;
    padding: 13px;
}
.list-header {
    font-weight: bold;
    background-color: var(--violet);
    cursor: pointer;
    border-radius: 25px;
    margin-bottom: 5px;
    position: sticky;
    top: 0;
    margin-top: 10px;
    z-index: 10;
}
.list-header div, .list-item div {
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.list-header div {
    position: relative;
}

.list-header div:after {
    content: '\2195';
    margin-left: 7px;
}
.col-track a:after {
    content: '🔗';
    margin-left: 5px;
    color: var(--violet);
}

.list-header div:nth-child(1),
.list-item div:nth-child(1) {
    flex: 0 0 7%;
    margin-left: 30px;
}
.list-header div:nth-child(2),
.list-item div:nth-child(2) {
    flex: 0 0 7%;
}
.list-header div:nth-child(3),
.list-item div:nth-child(3) {
    flex: 1 1 auto;
    text-align: left;
}
.list-header div:nth-child(4),
.list-item div:nth-child(4) {
    flex: 0 0 8%;
}
.list-header div:nth-child(5),
.list-item div:nth-child(5) {
    flex: 0 0 8%;
}
.list-header div:nth-child(6),
.list-item div:nth-child(6) {
    flex: 0 0 10%;
}

.list-item-container {
    margin: 8px 0;
}

.list-item-container .list-item {
    background-color: var(--white-transparent);
    color: var(--dark-grey);
    border-radius: 25px;    
    position: relative;
}

.list-item-container .list-item::before {
    content: '+';
    line-height: 1;
    width: 20px;
    height: 20px;
    background-color: var(--violet);
    color: #ffffff;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translatey(-50%);
    left: 15px;
}

.vote-details {
    display: none;
    background-color: var(--white-transparent);
    color: var(--violet);
    padding: 5px 20px 15px 20px;
    margin-left: 23px;
    margin-right: 23px;
    font-size: 16px;
    column-count: 5;
    column-gap: 5px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}
.vote-details-item {
    display: flex;
    justify-content: space-between;
    background-color: var(--violet);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 5px;
}

.editable {
    color: var(--green) !important;
    font-weight: 600;
}

.button {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
}

.plus {
    content: '+';
    line-height: 1;
    width: 20px;
    height: 20px;
    background-color: var(--violet);
    color: #ffffff;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translatey(-50%);
    left: 15px;
    }

#searchForm {
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
}

#searchInput {
    width: 100%;
    max-width: 350px;
    padding: 18px 20px;
    border: none;
    background-color: var(--white-transparent);
    color: var(--dark-grey);
    outline: 0;
    text-align: center;
    font-size: 18px;
    border-radius: 50px;
    box-shadow: 0px 0px 10px 3px rgba(0,0,0,0.3);
}

@media screen and (max-width: 990px) {
    .vote-details {
        column-count: 3;
    }
}

@media screen and (max-width: 600px) {
    .vote-details {
        column-count: 2;
    }
}



/* Animations */

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}