@font-face {
    font-family: "Avenir-Black";
    src: url('/fonts/Avenir-Black.ttf');
}

@font-face {
    font-family: "Avenir-Heavy";
    src: url('/fonts/Avenir-Heavy.ttf');
}

@font-face {
    font-family: "Avenir-Light";
    src: url('/fonts/Avenir-Light.ttf');
}

@font-face {
    font-family: "Avenir-Medium";
    src: url('/fonts/Avenir-Medium.ttf');
}

@font-face {
    font-family: "CaslonsEgyptian";
    src: url('/fonts/CaslonsEgyptian-Book.otf');
}

html, body {
    height: 100%; /* Take up the whole space */
    margin: 0; /* removes default browser margin around the page (So we can add our own later)*/
    padding: 0; /* removes default browser padding (So we can add our own later)*/
    overflow: hidden; /* Ban scolling */
    font-family: Avenir-Black;
    background-color: #435764;
    color: #FFF;
}

/* Have a container to hold all of our stuff */
.container {
    display: flex; /* Easy align for child elements */
    flex-direction: column; /* Stacks children vertiacally */
    justify-content: center; /* Main axis alignment (becuase flex-direction is column, the main axis is vertical) */
    align-items: center; /* Cross axis alignment (As the main axis is vertical, the cross-axis is horizontal) */
    height: 100%; /* GIVE ALL THE BODY SAPCE */
    padding-bottom: 5rem; /* Let's not touch the edge of the page with components */
    padding-top: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box; /* Include padding & border in container's total size */
}

.logo-container {
    display: flex; /* Easy align for child elements */
    height: 17%; 
    width: auto;
    margin-top: 2rem;   
    justify-content: center; /* Main axis alignment (becuase flex-direction is column, the main axis is vertical) */
    align-items: center;
}

.logo {
    max-height: 90%; /* Give it a max height (scales) */
}

.question-container {
    display: flex; /* Easy align for child elements */
    height: 55%;
    width: 100%;
    margin-bottom: 1rem; 
    justify-content: center; /* Main axis alignment (becuase flex-direction is column, the main axis is vertical) */
    align-items: center;
}

.questionImage {
    max-width: 80%;
    height: 100%;
    object-fit: contain;
}

.text-input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10%;
    width: 100%;
    margin-bottom: 2rem; /* Spacing on bottom (like a newline) */
}

.text-box {
    font-size: 2rem;
    padding: 1.2rem; /*controls buffer between text and componetn */
    width: 80%;
    text-align: center;
    border-radius: 50vh; /* Give me the ROUND corners */
    max-width: 1000px;
    font-family: Avenir-Light;
    border-style: none;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; /* Remove default */
  height: 5vh;
  width: 5vh;
  display: block;
  background-image: url('/images/CancelButton.png');
  background-repeat: no-repeat;
  background-size: 5vh;
}

.button-container {
    display: flex;
    gap: 2rem; /* Gap between components */
    flex-direction: row;
    justify-content: center; /* flex-direction is row: main axis is horizontal - algin horizontally */
    align-items: center; /* Cross-axis is vertial, align vetically */
}
.btn {
    font-size: 2.5rem;
    font-weight: bold;
    padding: 1rem /* Top/bottom */ 4rem; /* Left/Right */
    cursor: pointer;
    width: 100%;
    text-align: center;
    user-select: none; /* Blocks the text from being highlighted */
    background-color: #EBBE1E; /* whittard gold */
    color: #435764;
    font-family: Avenir-Light;
    border-style: none;

    /* Glide into property transition (smooth flow)
        Breaking down:
            - all: move all properties (idk why you would want to not do that)
            - 025s: duration (in seconds)
            - ease: timing function. Starts slow, speeds up, slows down at end */
    transition: all 0.5s ease;
}

.is-disabled {
    pointer-events: none; /* blocks clicks */
    cursor: not-allowed;
    opacity: 0.7;
    background-color: darkgrey;
}

/*OnClick event*/
.btn:active {
    transform: scale(0.96); /* Shrink on click (so the user can see it's been clicked)*/
}

.btn-is-disabled {
    pointer-events: none;   /* blocks clicks */
    cursor: not-allowed;
    opacity: 0.3;
}

.conditions {
    font-family: Avenir-Light;
    height: auto;
    width: 100%;
    height: auto;
    position: absolute;
    bottom: 10px;
    text-align: center;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  width: 100%; /* Set a default minimum width */
  /*margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  /*left: 50%; /* Center the snackbar */
  bottom: 50px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 50px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 50px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 50px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 50px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}