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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: red;
}

input, 
button {
    margin: 0;
    border: none;
    font: inherit;
}

/* Keyframes */

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes fade-in-left {
    0% {
        opacity: 0;
        transform: translateX(-25px);
    }

    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes fade-in-right {
    0% {
        opacity: 0;
        transform: translateX(25px);
    }

    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

/*BASE Styles*/
html {
    --font-color: rgba(255, 255, 255, 0.7); 
    --box-color: rgba(29, 44, 65, 0.3);
    --box-border-color: rgba(181, 167, 167, 0.4);
    --icon-color: rgba(255, 255, 255, 0.8);
    --icon-hover-color: rgba(255, 255, 255, 0);
}

body {
    background-image: url("./anonymusmask.jpg");
    background-size: auto;
    background-position: center;
    background-position-y: -300px;

    background-color: black;
    font-family: "Anonymous Pro", monospace;
    font-weight: 900;
    font-style: normal;
    font-size: 20px;
}

.bg {

}

/* Fonts */

.anonymous-pro-regular {
    font-family: "Anonymous Pro", monospace;
    font-weight: 400;
    font-style: normal;
  }
  
  .anonymous-pro-bold {
    font-family: "Anonymous Pro", monospace;
    font-weight: 700;
    font-style: normal;
  }
  
  .anonymous-pro-regular-italic {
    font-family: "Anonymous Pro", monospace;
    font-weight: 400;
    font-style: italic;
  }
  
  .anonymous-pro-bold-italic {
    font-family: "Anonymous Pro", monospace;
    font-weight: 700;
    font-style: italic;
  }
  

/* Header */

.bg {
    position: absolute;
    z-index: -1;
}

.header {
    max-height: 300px;
    animation: fade-in 0.5s;
}

.logo {
    color: var(--icon-color);
    font-size: 50px;
    transition: all 0.4s;
}

.logo:hover {
    color: var(--icon-hover-color);
}

.nav {
    
}

.links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 25px;
}

.link {

}

.login {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.5s;
}

.login:hover {
    color: rgba(255, 255, 255, 1);
}

/* Main */

.main {

}

.boxes {
    max-width: 1200px;
    height: 100px;
    display: grid;
    margin: 130px auto 0px;
    padding: 0  25px;
    animation: fade-in 0.5s 0.5s backwards;
}

.box--1 {
    background-color: var(--box-color);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome {
    color: var(--font-color);
    font-size: 30px;
    text-align: center;
}

.logotext {
    color: rgba(255, 255, 255, 1);
    font-size: 30px;
    transition: all 0.4s;
    margin: 0 auto;
}

.logotext:hover {
    color: var(--icon-hover-color);
}


.boxes--2 {
    max-width: 1200px;
    height: 500px;
    display: grid;
    margin: 10px auto 0;
    grid-template-columns: 1fr 2fr 1fr;
    padding: 0  25px;
    column-gap: 10px;
    
}

.box--2 {
    background-color: var(--box-color);
    border-radius: 20px;
    width: 100%;
    height: 100%;
    grid-column: 1/2;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fade-in-left 0.5s 0.5s backwards;
}

.about {
    color: var(--font-color);
    margin: 10px;
}

.aboutsection {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.list-item {

}

.abouttext {
    color: var(--font-color);
    transform: rotate(30deg);
/*     text-decoration: underline; */
    text-align: center;
}

/* UmfrageForm */
.box--3 {
    background-color: var(--box-color);
    border-radius: 20px;
    width: 100%;
    height: 100%;
    grid-column: 2/3;
    animation: fade-in 0.5s 0.5s backwards;
}

canvas#resultsChart {
    width: 100% !important;
    max-height: 400px;
}

.voting-container{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.voting-form {
    height: 100%;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.question {
    color: var(--font-color);
    font-size: 35px;
    text-align: center;
}

.checkbox {
    font-size: inherit;
    color: var(--font-color);
}

.btn {
    margin-top: 20px;
    color: var(--font-color);
    border: 2px solid var(--font-color);
    border-radius: 10px;
    background-color: var(--box-color);
    transition: all 0.5s;
}

.btn:hover {
    color: white;
    background-color: black;
    border-color: white;
    cursor: pointer;
}

.box--4 {
    background-color: var(--box-color);
    border-radius: 20px;
    width: 100%;
    height: 100%;
    grid-column: 3/4;
    animation: fade-in-right 0.5s 0.5s backwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.join {
    color: var(--font-color);
    margin: 10px;
}

.joinsection {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.joinustext {
    color: var(--font-color);
    transform: rotate(-30deg);
/*     text-decoration: underline; */
    text-align: center;
}

/* Footer */

.footer {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    animation: fade-in 0.5s 1s backwards;
}

.register {
    display: block;
    color: var(--font-color);
    transition: all 0.5s;
}

.register:hover {
    color: rgba(255, 255, 255, 1);
}

/* Responsiveness */

@media(max-width: 550px) {
    .box--2 , .box--4 {
        display: none;
    }
    .box--3 {
        grid-column: 1 / 4;
    }
}

@media(max-width: 460px) {
    .boxes {
        margin-top: 70px;
    }
    .welcome {
        font-size: 20px;
    }
}