// Copyright (C) 2021 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

.home-page {
  text-align: center;
  align-items: center;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 2em 1fr 60px;
  grid-template-areas: "." "center" "footer";

  .home-page-center {
    grid-area: center;

    .logo {
      width: var(--track-shell-width);
    }

    .home-page-title {
      font-size: 60px;
      margin: 25px;
      text-align: center;
      font-family: "Raleway", sans-serif;
      font-weight: 100;
      color: #333;
    }

    .channel-select {
      font-family: "Roboto", sans-serif;
      font-size: 1.2rem;
      font-weight: 200;
      margin-top: 3em;
      --chan-width: 100px;
      --chan-num: 2;

      input[type="radio"] {
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
        -moz-appearance: none;
        -webkit-appearance: none;
        &:nth-of-type(1):checked ~ .highlight {
          margin-left: 0;
        }
        &:nth-of-type(2):checked ~ .highlight {
          margin-left: 100px;
          background-color: hsl(54, 100%, 40%);
        }
        &:nth-of-type(3):checked ~ .highlight {
          margin-left: 200px;
          background-color: hsl(24, 80%, 42%);
        }
      }

      fieldset {
        margin: 30px auto 10px auto;
        padding: 0;
        position: relative;
        background-color: hsl(218, 8%, 30%);
        border-radius: 3px;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
        border: 0;
        width: calc(var(--chan-width) * var(--chan-num));
        height: 40px;
        line-height: 40px;
        z-index: 0;
      }

      label {
        display: inline-block;
        cursor: pointer;
        position: relative;
        width: var(--chan-width);
        height: 100%;
        color: white;
        z-index: 2;
        text-transform: uppercase;
        font-size: 16px;
        font-family: "Raleway";
        font-weight: 400;
        letter-spacing: 0.3px;
      }

      .highlight {
        width: var(--chan-width);
        height: 100%;
        position: absolute;
        background: hsla(122, 45%, 45%, 0.99);
        background-image: linear-gradient(
          rgba(255, 255, 255, 0.2),
          transparent
        );
        top: 0;
        left: 0;
        z-index: 1;
        border-radius: inherit;
        @include transition();
      }

      .home-page-reload {
        font-size: 12px;
        opacity: 0;
        color: #da4534;
        font-weight: 400;
        @include transition();
        &.show {
          opacity: 1;
        }
      }
    } // .channel-select
  } // .home-page-center

  .privacy {
    grid-area: footer;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-weight: 200;
    color: #333;
    font-size: 15px;
  }
} // .home-page
