* {
    margin: 0;
    padding: 0;
}

body {
    background-color: rgb(76, 108, 166);
    transition: 0.25s;
}

#title-container {
    display: block;
    align-items: center;
    justify-items: center;
    text-align: center;
    width: 100%;
    height: 20%;
    background-color: rgb(97, 134, 204);
}

#title {
    background-color: rgb(97, 134, 204);
    color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    text-align: center;
    font-size: 250%;
    padding-top: 20px;
    padding-bottom: 20px;
    transition-duration: 0.25s;
    display: inline-block;
    text-overflow: clip;
}

#button-hide {
    position: relative;
    margin-left: 50px;
}

#button-hide button {
    position: absolute;
    aspect-ratio: 5/3;
    top: 10%;
    transform: translateY(-50%);
    margin: 0;
    width: 65px;
    background: none;
    color: white;
    font-weight: bold;
    font-size: 115%;
    border: white solid 2px;
    border-radius: 5px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;;
    background-color: red;
    transition-duration: 0.25s;
}

#button-hide button:hover {
    background-color: rgb(192, 0, 0);
    transition-duration: 0.25s;
}

#button-reset {
    position: relative;
    margin-right: 75px;
}

#button-reset button {
    position: absolute;
    aspect-ratio: 5/3;
    top: 10%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 65px;
    background: none;
    color: white;
    font-weight: bold;
    font-size: 115%;
    border: white solid 2px;
    border-radius: 5px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;;
    background-color: rgb(51, 143, 255);
    transition-duration: 0.25s;
}

#button-reset button:hover {
    background-color: rgb(41, 114, 204);
    transition-duration: 0.25s;
}

.button-disabled {
    pointer-events: none;
}

/* Everything to do with input */

#textarea-container {
    text-align: center;
    padding-top: 40px;
    display: none;
}

#input {
    resize: none;
    border-radius: 3px;
    font-size: 110%;
    max-width: 510px;
    padding-left: 5px;
    padding-top: 5px;
    border-color: black;
    border-width: 2px;
    box-shadow: 0px 6px 5px rgb(0, 0, 0, 0.25);
}

#names-shown {
    margin-top: 40px;
    max-width: 510px;
    border-radius: 3px;
    height: 260px;
    border: 2px solid black;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    box-shadow: 0px 6px 5px rgb(0, 0, 0, 0.25);
    overflow: hidden;
}

#names-container {
    padding-left: 5px;
    padding-top: 5px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
}

#names-container div {
    font-size: 110%;
    text-align: left;
    font-family: monospace;
}

/* Everything to do with the wheel */

#wheel-area {
    position: relative;
    margin-top: 40px;
    height: 510px;
    text-align: right;
    align-content: center;
}

#wheel-wrapper {
    aspect-ratio: 1/1;
    width: 33.5%;
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
    bottom: 0;
    position: absolute;
    transform: rotate(90deg);
    transform-origin: center;
    z-index: 101;
    cursor: pointer;
    display: block;
    float: center;
    border: 5px solid white;
    box-shadow: 0 0px 20px rgb(0, 0, 0, 0.5);
    border-radius: 50%;
}

@media (min-height:800px) {
    #wheel-wrapper {
        width: 28%;
    }
}

#wheel-center {
    position: absolute;
    transform: translateX(-50%) translateY(-50%);
    width: 2cqi;
    height: 2cqi;
    border-radius: 50%;
    background: #fff;
    top: 50%;
    left: 50%;
    z-index: 50;
}

#wheel-pointer {
    position: absolute;
    transform: translateX(50%) translateY(-50%) rotate(180deg);
    height: 10%;
    line-height: 2.5cqi;
    font-size: 3cqi;
    display: inline-block;
    background: 0 0;
    top: 3.25%;
    left: 50%;
    color: white;
    z-index: 50;
    direction: ltr;
    transform: translateX(-50%) translateY(-50%) scaleX(1) scale(1.25);
    font-family: sans-serif;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
    user-select: none;
}

#wheel-spinner {
    transition-duration: 10s;
    transition-timing-function: cubic-bezier(0.6, 0, 0, 1);
    width: 100.1%;
    height: 100.1%;
    transform-origin: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#wheel-container {
    height: 100%;
    width: 100%;
    display: inline-block;
    border-radius: 50%;
    background-color: white;
    overflow: hidden;
    text-align: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

#wheel-container .triangle {
    clip-path: polygon(100% 0 , 50% 100% , 0 0 );
    transform-origin: bottom;
    height: 50%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    color:white;
    display: block;
    overflow: hidden;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    align-content: center;
}

.triangle p {
    transform: rotate(-90deg);
    color: black;
    user-select: none;
}

.square {
    height: 500px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    position: absolute;
    color:white;
    display: block;
    overflow: hidden;
    text-align: left;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.square p {
    transform: rotate(-90deg);
    color: black;
    padding-left: 60px;
    user-select: none;
}

/* Buttons area for custom fields */

#button-area {
    height: 100%;
    width: 25%;
    display: block;
    float: right;
    position: relative;
}

#button-container {
    height: 100%;
    width: 85%;
    display: block;
    float: left;
    background-color: rgb(76, 108, 166);;
    border-radius: 3px;
    border: 2px solid black;
    box-shadow: 0px 0px 10px rgb(0, 0, 0, 0.25);
}

#button-area-title {
    background-color: rgb(97, 134, 204);
    color: white;
    text-align: center;
    align-content: center;
    height: 5.85%;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.5cqi;
    border-bottom: 2px solid black;
    box-shadow: 0px 2px 10px rgb(0, 0, 0, 0.25);
    text-wrap: nowrap;
}

#buttons {
    overflow-x: hidden;
    overflow-y: auto;
}

.custom-fields {
    width: 100%;
    height: 10%;
    align-items: center;
    text-align: left;
    background-color: rgb(97, 134, 204);
    border-bottom: 2px solid black;
    border-top: 2px solid black;
    margin-top: 5%;
    display: inline-flex;
}

#custom-field-add {
    background: none;
    border: none;
    font-size: 2.5cqi;
    color: rgba(255, 255, 255, 0.85);
}

#custom-field-add-container {
    height: 15px;
    margin-top: 5%;
    display: flex;
    justify-content: center;
    align-content: center;
}


.custom-fields-name {
    margin-left: 5%;
    margin-right: 5%;
    border: 2px solid black;
    border-radius: 3px;
    max-width: 50%;
    font-size: 1.25cqi;
    font-family: Arial, Helvetica, sans-serif;
    display: inline-block;
}

.custom-fields-amount {
    display: inline-block;
    max-width: 7.5%;
    font-size: 1.25cqi;
    text-align: center;
    border: 2px solid black;
    border-radius: 3px;
}

.custom-fields-plus {
    background: none;
    border: none;
    text-align: center;
    font-size: 1.5cqi;
    color: white;
    padding-right: 1%;
}


.custom-fields-minus {
    background: none;
    border: none;
    text-align: center;
    font-size: 2cqi;
    color: white;
    padding-left: 1%;
    padding-bottom: 1%;
}

.custom-fields button:hover, #custom-field-add:hover {
    color: rgb(200, 200, 200);
    transition: 0.15s;
}

.custom-fields button:active, #custom-field-add:active {
    color: darkgray;
}

.custom-fields-remove {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1.5cqi;
    padding-left: 10%;
}

/* External links area */

#links-area {
    height: 100%;
    width: 25%;
    display: block;
    float: left;
    position: relative;
}

#links-container {
    height: 100%;
    width: 85%;
    display: block;
    float: right;
    background-color: rgb(76, 108, 166);
    border-radius: 3px;
    border: 2px solid black;
    box-shadow: 0px 0px 10px rgb(0, 0, 0, 0.25);
}

#links-area-title {
    background-color: rgb(97, 134, 204);
    color: white;
    text-align: center;
    align-content: center;
    height: 5.85%;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.5cqi;
    border-bottom: 2px solid black;
    box-shadow: 0px 2px 10px rgb(0, 0, 0, 0.25);
    text-wrap: nowrap;
}

#links {
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
    line-height: 300%;
}

.links {
    width: 85%;
    height: 10%;
    align-items: center;
    justify-content: center;
    background-color: rgb(97, 134, 204);
    border: 2px solid black;
    margin-top: 7.5%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    border-radius: 10px;
    transition-duration: 0.25s;
    color: black;
}

.links:hover {
    background-color: rgb(calc(97 - 20), calc(134 - 20), calc(204 - 20));
    color: rgb(255, 255, 255);
    transition-duration: 0.25s;
}

.links p {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.5cqi;
    user-select: none;
}

a:link { 
    text-decoration: none; 
  } 
  a:visited { 
    text-decoration: none; 
  } 
  a:hover { 
    text-decoration: none; 
  } 
  a:active { 
    text-decoration: none; 
  }

/* Elements that change bg color to current wheel color */

.bg-change-dark {
    background-color: none;
}

.bg-change-bright {
    background-color: none;
}
